Back to Llama Index

YugabyteDB Vector Store

llama-index-integrations/vector_stores/llama-index-vector-stores-yugabytedb/README.md

0.14.21759 B
Original Source

YugabyteDB Vector Store

A LlamaIndex vector store using YugabyteDB as the backend.

Usage

Pre-requisite:

bash
pip install llama-index-vector-stores-yugabytedb

A minimal example:

python
from llama_index.vector_stores.yugabytedb import YBVectorStore

vector_store = YBVectorStore.from_params(
    host="localhost",
    user="yugabyte",
    password="yugabyte",
    port=5433,
    load_balance="True",
    database="yugabyte",
    table_name="test_table",
    schema_name="test_schema",
    embed_dim=1536,
)

Note: Please see the YugabyteDB psycopge2 driver documentation for more yugabytedb specific parameters here.