Pre-built Agents
RAG Powered Agents
Advanced Configuration
Vector Databases
Pinecone

Vector Store: Pinecone

Pinecone is a managed, cloud-native vector database designed for fast vector search with low query latency. It provides fully managed indices without infrastructure overhead.


1. Configuration Parameters

To connect to Pinecone, configure the vector_store_params dictionary as follows:

ParameterTypeDefaultDescription
vector_store_typestring"PineconeVectorStore"Identifier of the Pinecone vector store class.
api_keystringNoneYour Pinecone API key.
environmentstringNonePinecone cluster environment (e.g. "us-west1-gcp").
index_namestringNoneTarget index name created in your Pinecone dashboard.

2. Configuration Example

Here is a Python example configuring a ChatBot with Pinecone:

from aih import ChatBot
 
pinecone_config = {
    "vector_store_type": "PineconeVectorStore",
    "api_key": "your_pinecone_api_key",
    "environment": "gcp-starter",
    "index_name": "aih-chats-index"
}
 
chatbot = ChatBot.docx_chat(
    input_files=["./policy.docx"],
    vector_store_params=pinecone_config
)