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:
| Parameter | Type | Default | Description |
|---|---|---|---|
vector_store_type | string | "CognitiveSearchVectorStore" | Identifier of the Azure Cognitive Search class wrapper. |
service_name | string | None | Name of your Azure AI Search service. |
api_key | string | None | Admin API key for authenticating requests. |
index_name | string | None | Target 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
)