Skip to main content

llama-index vector_stores astra integration

Project description

Astra DB Vector Store

A LlamaIndex vector store using Astra DB as the backend.

Usage

Pre-requisite:

pip install llama-index-vector-stores-astra-db

A minimal example:

from llama_index.vector_stores.astra_db import AstraDBVectorStore

vector_store = AstraDBVectorStore(
    token="AstraCS:xY3b...",  # Your Astra DB token
    api_endpoint="https://012...abc-us-east1.apps.astra.datastax.com",  # Your Astra DB API endpoint
    collection_name="astra_v_table",  # Table name of your choice
    embedding_dimension=1536,  # Embedding dimension of the embeddings model used
)

More examples and references

A more detailed usage guide can be found at this demo notebook in the LlamaIndex docs.

Note: Please see the AstraDB documentation here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_vector_stores_astra_db-0.5.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_vector_stores_astra_db-0.5.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_vector_stores_astra_db-0.5.0.tar.gz
Algorithm Hash digest
SHA256 31219385cdc387ad7af7cc4fc6002d50b0cecfe3a228493013c752299fa291b6
MD5 ccc19966ffe1f8a934cca775fbffd3e4
BLAKE2b-256 3831756227fe47fde28340634ac3beaf348a141c3e85503c2767186b9c154a57

See more details on using hashes here.

File details

Details for the file llama_index_vector_stores_astra_db-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_vector_stores_astra_db-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9bb73edf45350c5131cab7e530242c1bb0dbc7add8f2426b9397371666f9966
MD5 1e21cfe34cb669ae8b196659319d3dc4
BLAKE2b-256 d521a7405f1884052ff640e1478b300e449fb98263ab014965b1cd2d6608fc50

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page