An open API service indexing awesome lists of open source software.

https://github.com/datastaxdevs/nodejs-vector-shakespeare


https://github.com/datastaxdevs/nodejs-vector-shakespeare

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# Shakespeare sample vector application for DataStax NodeJS driver

1. Using astra cli or manually grabbing from the Astra UI, populate a .env file with the following items:
```
OPENAI_API_KEY=
ASTRA_DB_APPLICATION_TOKEN=
ASTRA_DB_ID=
ASTRA_DB_KEYSPACE="vector"
ASTRA_DB_REGION="us-east1"
ASTRA_DB_SECURE_BUNDLE_PATH=
```
2. Create a "vector" keyspace in your database using the Astra UI
3. `npm install`
4. Run the population command with `python populate.js` - this will take a while
5. Run the query with `python query.js ""
Example: python query.py 50 "How did Juliet die?"