- Using astra cli or manually grabbing from the Astra UI, populate a .env file with the following items:
OPENAI_API_KEY=<key> ASTRA_DB_APPLICATION_TOKEN=<token> ASTRA_DB_ID=<id> ASTRA_DB_KEYSPACE="vector" ASTRA_DB_REGION="us-east1" ASTRA_DB_SECURE_BUNDLE_PATH=<path on your system>
- Create a "vector" keyspace in your database using the Astra UI
python -m pip -i requirements.txt
- Run the population command with
python populate.py
- this will take a while - Run the query with `python query.py <word_count> "" Example: python query.py 50 "How did Juliet die?"
-
Notifications
You must be signed in to change notification settings - Fork 0
datastaxdevs/python_vector_shakespeare
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published