openai-cookbook/examples/vector_databases/cassandra_astradb
2024-01-25 11:59:05 -06:00
..
sources Add Astra DB (/Cassandra) to vector databases with example notebooks (#655) 2023-08-29 10:27:49 -07:00
Philosophical_Quotes_AstraPy.ipynb Misc updates (#1022) 2024-01-25 11:59:05 -06:00
Philosophical_Quotes_cassIO.ipynb Misc updates (#1022) 2024-01-25 11:59:05 -06:00
Philosophical_Quotes_CQL.ipynb Misc updates (#1022) 2024-01-25 11:59:05 -06:00
README.md Cassandra / Astra DB demo notebooks: adapt to OpenAI 1.0, add support for Astra DB HTTP API, and other upgrades (#853) 2023-11-14 13:37:27 -08:00

RAG with Astra DB and Cassandra

The demos in this directory show how to use the Vector Search capabilities available today in DataStax Astra DB, a serverless Database-as-a-Service built on Apache Cassandra®.

These example notebooks demonstrate implementation of the same GenAI standard RAG workload with different libraries and APIs.

To use Astra DB with its HTTP API interface, head to the "AstraPy" notebook (astrapy is the Python client to interact with the database).

If you prefer CQL access to the database (either with Astra DB or a Cassandra cluster supporting vector search), check the "CQL" or "CassIO" notebooks -- they differ in the level of abstraction you get to work at.

If you want to know more about Astra DB and its Vector Search capabilities, head over to datastax.com.

Example notebooks

The following examples show how easily OpenAI and DataStax Astra DB can work together to power vector-based AI applications. You can run them either with your local Jupyter engine or as Colab notebooks:

Use case Target database Framework Notebook Google Colab
Search/generate quotes Astra DB AstraPy Notebook Colab
Search/generate quotes Cassandra / Astra DB through CQL CassIO Notebook Colab
Search/generate quotes Cassandra / Astra DB through CQL Plain Cassandra language Notebook Colab

Vector similarity, visual representation

3_vector_space