Skip to content

Commit

Permalink
Fix manage_data.py command in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rjavadi committed Sep 26, 2024
1 parent 2bf6e95 commit cfb91e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ docker run -it --network health-rec_app-network -v <data_dir_with_json_files>:/d
Then we can run the following commands to upload the data to the vector database:

```bash
python3 health_rec/manage_data.py --create <collection_name>
OPENAI_API_KEY=$YOUR_OPENAI_API_KEY python3 health_rec/manage_data.py --load <collection_name> --data-dir /data --load-embeddings
python3 health_rec/manage_data.py --list
python3 health_rec/manage_data.py create --name <collection_name>
OPENAI_API_KEY=$YOUR_OPENAI_API_KEY python3 health_rec/manage_data.py load --name <collection_name> --data-dir /data --load-embeddings
python3 health_rec/manage_data.py list
```

Careful while loading embeddings, it uses the OpenAI API, and hence make sure the data you want to use is correct. Test with a small amount of data first.
Expand Down

0 comments on commit cfb91e6

Please sign in to comment.