agent-framework-azure-ai-search
Azure AI Search integration for Microsoft Agent Framework.
What it is and what it does
This package integrates Azure AI Search into the Microsoft Agent Framework, enabling retrieval-augmented generation (RAG) for agent applications. It offers two retrieval modes: Semantic Mode performs fast hybrid search combining vector and keyword matching with semantic ranking, while Agentic Mode supports multi-hop reasoning over Knowledge Bases for complex queries that require iterative refinement. The package automatically detects which version of azure-search-documents is installed and adapts its behavior accordingly—stable builds use extractive output with minimal reasoning, while preview builds unlock advanced features like answer synthesis and extended reasoning effort levels.
The integration handles query-time user identity by forwarding caller-specific Azure AI Search authorization tokens, enabling document-level access control when the index uses permission fields. It supports both API key and managed identity authentication, and configuration is typically done via environment variables. The package is in active development (beta status) and requires Python 3.10 or later.
Use it for:
- Build RAG agents that retrieve context from Azure AI Search indexes using hybrid vector + keyword search with semantic ranking.
- Implement multi-hop reasoning agents that iteratively refine queries against Knowledge Bases to answer complex questions.
- Enforce document-level access control in agent queries by passing user-specific credentials to retrieve only authorized results.
- Migrate between stable and preview Azure AI Search API versions without code changes—just update the install command.
- Integrate Azure AI Search retrieval into larger agent-framework applications for context-aware decision-making.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides RAG (Retrieval Augmented Generation) context providers for Azure AI Search, supporting both semantic hybrid search and agentic multi-hop reasoning modes within the Microsoft Agent Framework.
Yes. The package is actively maintained, has no known vulnerabilities, and offers low install friction. It's permissively licensed (MIT) and supports current Python versions. The integration is well-suited if you're building agents that need RAG capabilities with Azure AI Search, especially if you require either semantic hybrid search or multi-hop reasoning. The auto-detection of API versions is a practical design choice that reduces maintenance burden.
Install
agent-framework-azure-ai-search on PyPI
pip
pip install agent-framework-azure-ai-searchuv
uv add agent-framework-azure-ai-searchpoetry
poetry add agent-framework-azure-ai-searchInstalling agent-framework-azure-ai-search
Before you install
Low install friction with a pure-Python wheel. The package is actively maintained with a recent release and no known vulnerabilities. It requires agent-framework-core and azure-search-documents as runtime dependencies; the latter auto-detects its own API version, so no pinning is needed in code.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install agent-framework-azure-ai-search --pre
from agent_framework_azure_ai_search import AzureAISearchContextProvider
context_provider = AzureAISearchContextProvider(
endpoint=search_endpoint,
credential=application_credential,
mode="agentic",
knowledge_base_name=knowledge_base_name,
)
Requires Python 3.10 or later. Preview features (agentic output modes and extended reasoning) require azure-search-documents>=12.1.0b1 installed with --pre flag.
Verify before relying
- Whether the package's Knowledge Base multi-hop reasoning scales to typical enterprise query complexity and latency requirements.
- Performance characteristics and cost implications of semantic ranking vs. agentic modes for typical workloads.
- Compatibility and integration patterns with other agent-framework components beyond what the excerpt covers.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — agent-framework-core, azure-search-documents |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 477,949/month — #6,441 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agent_framework_azure_ai_search-1.0.0b260813-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
azure-search-documentsClient library for querying, indexing, and…
unclear · top 5,000 on PyPI
agent-framework-azure-aiIntegrates Azure AI Foundry memory capabilities…
permissive · top 15,000 on PyPI
llama-index-vector-stores-azureaisearchIntegrates Azure AI Search as a vector store…
permissive · top 15,000 on PyPI
redisvlRedisVL is a Python client for building AI…
permissive · top 5,000 on PyPI
llama-index-embeddings-azure-openaiIntegrates Azure OpenAI's embedding models with…
permissive · top 15,000 on PyPI
h2ogptePython client for querying and managing…
unclear · top 15,000 on PyPI
needle-pythonPython client library for the Needle API,…
permissive · top 15,000 on PyPI
langchain-milvusIntegrates LangChain with Milvus vector…
permissive · top 15,000 on PyPI
agent-framework-redisAdds Redis-backed persistent memory and…
permissive · top 15,000 on PyPI
strands-agents-toolsProvides ready-to-use tools for AI agents to…
permissive · top 5,000 on PyPI