Pinecone
Managed vector database for production RAG.Setup
Usage
Configuration
| Option | Description |
|---|---|
api_key | Pinecone API key |
environment | Pinecone environment |
index_name | Index name |
Pinecone vector store for PraisonAI
pip install pinecone-client
export PINECONE_API_KEY=your_api_key
from praisonai.persistence.factory import create_knowledge_store
store = create_knowledge_store(
"pinecone",
api_key="your_api_key",
environment="us-east-1"
)
# Create index
store.create_collection("documents", dimension=384)
# Insert and search
store.insert("documents", [doc])
results = store.search("documents", query_embedding, limit=5)
| Option | Description |
|---|---|
api_key | Pinecone API key |
environment | Pinecone environment |
index_name | Index name |