Skip to content

Commit

Permalink
Merge pull request #3 from VectorInstitute/fix-readme
Browse files Browse the repository at this point in the history
Fix manage_data.py command in readme
  • Loading branch information
amrit110 authored Sep 26, 2024
2 parents 2bf6e95 + cfb91e6 commit e31e7ed
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 e31e7ed

Please sign in to comment.