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

Vector Store: Weaviate

Weaviate is a cloud-native, open-source vector search engine. It is the default vector database configuration utilized in the AI-Horizon platform for storing semantic embedding chunks generated by the RAG pipelines.


1. Configuration Parameters

To connect to Weaviate, pass your configuration within the vector_store_params dictionary:

ParameterTypeDefaultDescription
vector_store_typestring"WeaviateVectorStore"Name of the Weaviate wrapper class.
urlstring"http://localhost:8080"Endpoint URL of your Weaviate instance.
api_keystringNoneOptional API key authentication header.
index_namestringNoneClass index name in Weaviate (defaults to a generic session id class name).

2. Configuration Example

Here is how you specify Weaviate parameters during agent initialization:

from aih import ChatBot
 
weaviate_config = {
    "vector_store_type": "WeaviateVectorStore",
    "url": "https://your-weaviate-instance.weaviate.network",
    "api_key": "your_weaviate_wcs_key",
    "index_name": "DocumentationIndex"
}
 
chatbot = ChatBot.pdf_chat(
    input_files=["./handbook.pdf"],
    vector_store_params=weaviate_config
)