/vector_db

Vector embeddings using serverless Astra DB

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

vector_db (windows)

Vector embeddings using serverless NoSQL Astra DB from DataStax.

  1. Sign up for an account with DataStax and crate a vector DB. Make sure to save your DB credentials.

  2. Install the virtual environment

  • make sure pip is up-to-date and running py -m pip install --upgrade pip and py -m pip --version

  • install virtualenv py -m pip install --user virtualenv

  • create a virtual environment py -m venv env

  • activate a virtual env. The (env) will show in front of your command line. .\env\Scripts\activate

  1. Install packages pip install cassio datasets langchain openai tiktoken

  2. Run your script