Registry /
llm-agents / llama-index-vector-stores-lancedb
Install & Compatibility
Where this runs
tested against v0.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 24.1s · import 0.000s · 716MB
725MB installed
● package 725MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
LanceDBVectorStore
✓ from llama_index.vector_stores.lancedb import LanceDBVectorStore
✗ from llama_index.vector_stores.lancedb import LanceDBVectorStore
Minimal working example: connect to LanceDB, create a vector store, build an index, and query.
import lancedb
from llama_index.core import SimpleDirectoryReader, StorageContext, VectorStoreIndex
from llama_index.vector_stores.lancedb import LanceDBVectorStore
# Create LanceDB connection and table
uri = "data/sample-lancedb"
db = lancedb.connect(uri)
table_name = "my_table"
table = db.create_table(table_name, data=[{"vector": [0.0]*768, "text": "placeholder"}], mode="overwrite")
# Initialize vector store
vector_store = LanceDBVectorStore(uri=uri, table_name=table_name)
# Create storage context
storage_context = StorageContext.from_defaults(vector_store=vector_store)
# Load documents and build index
documents = SimpleDirectoryReader("data").load_data()
index = VectorStoreIndex.from_documents(documents, storage_context=storage_context)
# Query
query_engine = index.as_query_engine()
response = query_engine.query("What is LanceDB?")
print(response)
Upgrade
Version history
0.5.0latest on PyPI · released Mar 12, 2026
Audit
Dependencies
llama-index-corerequiredCore LlamaIndex abstractions (BaseNode, VectorStoreQuery)
lancedbrequiredLanceDB Python SDK