Skip to content

Commit

Permalink
update ollama doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzaizai2k committed Nov 28, 2024
1 parent 8b17d15 commit a431aa6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ For LDAP authentication using FastAPI, explore the following resources:
## Set up Ollama

- ollama: https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image
- ollama github: https://github.com/ollama/ollama

1. To install Ollama on docker: follow the instruction here based on your hardware (the OS asn CPU or GPU): https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image
2. Run this command to download the model
``` bash
docker exec -it ollama ollama run llama3.1:8b
```

- All the models available [here](https://ollama.com/search)


## Illegal instruction using lang ch in Paddle
Expand Down
10 changes: 5 additions & 5 deletions src/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,23 +193,23 @@ def upload_many_files(folder_path: str, user_uuid: str, number_of_images: int):
root_url = f"http://{config['IES_host']}:{config['IES_port']}" #localhost


img_path = "test/images/007_2.png"
img_path = "test/images/1_1.jpg"
user_uuid = "gauss"
# user_uuid = "2111_1111_1111_1111"
invoice_uuid = "67334a87523c36e276c8e507"
invoice_uuid = "673984b99476e17028e485ad"
invoice_info = {"land": "Laos",}

# test_excel()
file_name = os.path.basename(img_path)

# test_upload_invoice(img_path=img_path, user_uuid=user_uuid, file_name=file_name)
test_upload_invoice(img_path=img_path, user_uuid=user_uuid, file_name=file_name)

# Example usage:
upload_many_files(folder_path="test/images", user_uuid="gauss", number_of_images=5)
# upload_many_files(folder_path="test/images", user_uuid="gauss", number_of_images=5)

# res, _ = test_get_invoices(user_uuid=user_uuid, invoice_type=None, created_at='desc', invoice_uuid=invoice_uuid)
# print(res.json()["invoices"][0]['invoice_info'])
# _, invoice_ids = test_get_invoices(user_uuid=None, invoice_type=None, created_at='desc', invoice_status='not extracted', limit=20)
# _, invoice_ids = test_get_invoices(user_uuid=None, invoice_type=None, created_at='desc', invoice_status='completed', limit=30)
# test_modify_invoice(invoice_uuid=invoice_uuid, user_uuid=user_uuid, new_invoice_info=invoice_info)
# test_delete_invoice(invoice_uuid=invoice_uuid, user_uuid=user_uuid)
# test_get_frontend_defines(root_url=root_url)
Expand Down

0 comments on commit a431aa6

Please sign in to comment.