LanceDB
Embedded vector database with columnar storage.Setup
Quick Start (Agent with Knowledge)
Use LanceDB as a knowledge store with an agent:Advanced Usage (Direct Store)
Configuration
| Option | Description |
|---|---|
path | Data directory path |
LanceDB embedded vector store for PraisonAI
pip install lancedb
from praisonaiagents import Agent
agent = Agent(
name="Assistant",
instructions="You are a helpful assistant with access to documents.",
knowledge=["./docs/guide.pdf"]
)
agent.chat("What does the guide say?")
from praisonai.persistence.factory import create_knowledge_store
store = create_knowledge_store("lancedb", path="./lance_data")
store.create_collection("documents", dimension=384)
store.insert("documents", [doc])
results = store.search("documents", query_embedding, limit=5)
| Option | Description |
|---|---|
path | Data directory path |