This Python library called LlamaAstra, an extension to LlamaIndex, allows you to seamlessly connect to DataStax's Astra Databases. It empowers your applications with the capabilities to perform vector search, generate and execute custom queries.
The library also provides tools to auto-generate CQL queries from natural language and ingest data into your Astra Database.
- Connect to Astra Databases: Simply provide your client and connection details and establish a seamless connection to your Astra Database.
- Vector Search: Directly perform vector search on your Astra Database.
- Custom Query Search: Execute any CQL queries on your Astra Database.
- Automatically Generate Queries from Natural Language: The library can auto-generate CQL queries based on user's natural language input.
- Ingest Data: Easily ingest data into your Astra Database.
Check the source code of the library here.
You need to have Python installed (preferably Python 3.6 or higher). Libraries like openAI, llama_index, IPython and the cassandra-driver also need to be installed.
git clone https://github.com/rickdat/Astra-LlamaIndex
pip install cassandra-driver, openai, llama-index
Import the library as shown below:
from astra-llamaindex-library import SimpleAstraReader
Code explanation can be found here
To get started, please visit our code examples here.
If you encounter any issues, please report them at our issue tracker.