Pre-built Agents
RAG Powered Agents
Advanced Configuration
Vector Databases
Azure Cognitive Search

Vector Store: Azure AI Search

Azure AI Search (formerly Azure Cognitive Search) is an enterprise search service providing vector storage, hybrid search, and semantic ranking capabilities on Microsoft Azure cloud.


1. Configuration Parameters

Specify Azure AI Search parameters in the vector_store_params dictionary:

ParameterTypeDefaultDescription
vector_store_typestring"CognitiveSearchVectorStore"Identifier of the Azure Cognitive Search class wrapper.
service_namestringNoneName of your Azure AI Search service.
api_keystringNoneAdmin API key for authenticating requests.
index_namestringNoneTarget index identifier in your search service instance.

2. Configuration Example

from aih import ChatBot
 
azure_search_config = {
    "vector_store_type": "CognitiveSearchVectorStore",
    "service_name": "my-azure-search-resource",
    "api_key": "your_azure_search_admin_key",
    "index_name": "aih-azure-index"
}
 
chatbot = ChatBot.pdf_chat(
    input_files=["./policy_docs.pdf"],
    vector_store_params=azure_search_config
)