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

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_astra_db-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7792e546a1f1d0ebaf22aee30d5f95e58a7626c58a1b78feab9dad437a034135
MD5 b1c32cc71d9d0fdbc3f151915c92897c
BLAKE2b-256 aeefa413054f8195b114ab4676a131fc54075e94f3a44bd18b06438ea831c165

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_astra_db-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7e03c04091b763c53d0b4a4d733f798a975bc8ef88c307af6755e1cca90299f
MD5 b637833771ac1a63cd66adaf5d9bc599
BLAKE2b-256 cfa39a9191be78adab91335790fa83394439f3ee185076bf7356fc37806bac99

See more details on using hashes here.

Supported by

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