Vector embeddings using serverless NoSQL Astra DB from DataStax.
-
Sign up for an account with DataStax and crate a vector DB. Make sure to save your DB credentials.
-
Install the virtual environment
-
make sure pip is up-to-date and running
py -m pip install --upgrade pip
andpy -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
-
Install packages
pip install cassio datasets langchain openai tiktoken
-
Run your script