Registry /
llm-agents / llama-index-vector-stores-azureaisearch
Install & Compatibility
Where this runs
tested against v0.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 5.118s · 242.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 18.4s · import 4.750s · 239MB
253MB installed
● package 253MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AzureAISearchVectorStore
✓ from llama_index.vector_stores.azureaisearch import AzureAISearchVectorStore
✗ from llama_index.vector_stores import AzureAISearchVectorStore
The vector store class is nested under the azureaisearch submodule; direct import from vector_stores package fails.
AzureAISearchIndex
✓ from llama_index.vector_stores.azureaisearch import AzureAISearchIndex
Correct import path; no common wrong pattern known.
Minimal setup to create an AzureAISearchVectorStore using DefaultAzureCredential.
import os
from llama_index.vector_stores.azureaisearch import AzureAISearchVectorStore
from azure.identity import DefaultAzureCredential
# Use environment variables for credentials
endpoint = os.environ.get('AZURE_SEARCH_ENDPOINT', 'https://mysearch.search.windows.net')
credential = DefaultAzureCredential()
vector_store = AzureAISearchVectorStore(
search_or_index_endpoint=endpoint,
credential=credential,
index_name='my-index',
embedding_dimensionality=1536
)
# Then integrate with LlamaIndex StorageContext
Errors
Common errors & fixes
ImportError: cannot import name 'AzureAISearchVectorStore' from 'llama_index.vector_stores'
Wrong import path: the class is in a submodule, not directly in vector_stores.
fixUse 'from llama_index.vector_stores.azureaisearch import AzureAISearchVectorStore'.
azure.core.exceptions.ServiceRequestError: ... The request failed due to connection failure
Azure AI Search endpoint is unreachable or credentials are missing/incorrect.
fixVerify AZURE_SEARCH_ENDPOINT environment variable and that DefaultAzureCredential is configured.
azure.core.exceptions.HttpResponseError: (InvalidRequest) ... The request is invalid.
Index schema mismatch (e.g., missing vector configuration or field type).
fixCheck that the Azure AI Search index has a vector field with correct dimensionality and HNSW configuration.
Upgrade
Version history
0.5.0latest on PyPI · released Mar 12, 2026
Audit
Dependencies
llama-index-corerequiredCore LlamaIndex library for index and query engine abstractions
azure-search-documentsrequiredAzure SDK for interacting with Azure AI Search (cognitive search)
azure-identityoptionalAzure authentication (DefaultAzureCredential, etc.)