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.4.1.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.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_vector_stores_astra_db-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a2bf9d088ff28cd1252d37e886c7c3d4c1edbd6b8d10e9b2d52b3a4d3b7c92f1
MD5 d115ac99af0c6fdc4624e3d646d02009
BLAKE2b-256 b0e8f2c5a6118f01c185d1c5d18a2b9af23f8c48cd7e7268f632167dbeb61815

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_vector_stores_astra_db-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5e1c62507d536cf07696b9d4aa9be928983fa4fb2766523891808555d40028d
MD5 ad42e0fd2b9381d0f6b3306898efa0ce
BLAKE2b-256 a1ae4a29281e0d7939370c87767a337b8c0ef0eb1a4b3143058580434719c0b1

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