Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Get Started with Microsoft Agent Framework Azure AI Search

Please install this package via pip:

pip install agent-framework-azure-ai-search --pre

Azure AI Search Integration

The Azure AI Search integration provides context providers for RAG (Retrieval Augmented Generation) capabilities with two modes:

  • Semantic Mode: Fast hybrid search (vector + keyword) with semantic ranking
  • Agentic Mode: Multi-hop reasoning using Knowledge Bases for complex queries

API versions: stable vs preview

The integration auto-detects which build of azure-search-documents is installed — there is nothing to configure in code:

Channel Install Data-plane api-version (chosen by the SDK)
Stable pip install azure-search-documents (>=12.0.0) 2026-04-01
Preview pip install --pre "azure-search-documents>=12.1.0b1" 2026-05-01-preview

The provider never pins an api-version; the installed build selects its own, so newer releases work without code changes.

Agentic output modes (answer_synthesis) and extended reasoning effort (low/medium) ship only in the preview build. When a stable build is installed, the provider uses extractive output with minimal reasoning effort and raises an actionable error if a preview-only option is explicitly requested. Switching channels is a single change — the install — with no code edits.

Query-time user identity

Agentic retrieval can forward a caller-specific Azure AI Search authorization token when the index uses permission fields for document-level access control. Pass a sync or async Azure token credential for the caller via query_source_credential; the provider requests the Azure AI Search resource scope and forwards the token on each Knowledge Base retrieval request. This capability requires azure-search-documents>=12.1.0b1, installed with pip install --pre "azure-search-documents>=12.1.0b1".

context_provider = AzureAISearchContextProvider(
    endpoint=search_endpoint,
    credential=application_credential,
    mode="agentic",
    knowledge_base_name=knowledge_base_name,
    query_source_credential=user_credential,
)

Basic Usage Example

See the Azure AI Search context provider examples which demonstrate:

  • Semantic search with hybrid (vector + keyword) queries
  • Agentic mode with Knowledge Bases for complex multi-hop reasoning
  • Environment variable configuration with Settings class
  • API key and managed identity authentication

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_framework_azure_ai_search-1.0.0b260827.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file agent_framework_azure_ai_search-1.0.0b260827.tar.gz.

File metadata

  • Download URL: agent_framework_azure_ai_search-1.0.0b260827.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agent_framework_azure_ai_search-1.0.0b260827.tar.gz
Algorithm Hash digest
SHA256 281be76afc5baeb6d97ef133b645bb3a4bad3befd1f7f6fcc447644f66206432
MD5 106b0a21fd3d11a473f5b721fdcf318c
BLAKE2b-256 f1ed68601adfcb56bc705282a65236ae1f686c95c8b93583ee5e9c6f485145a0

See more details on using hashes here.

File details

Details for the file agent_framework_azure_ai_search-1.0.0b260827-py3-none-any.whl.

File metadata

  • Download URL: agent_framework_azure_ai_search-1.0.0b260827-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agent_framework_azure_ai_search-1.0.0b260827-py3-none-any.whl
Algorithm Hash digest
SHA256 3d71ccee6fef80f0c62429547b3c1b70a3b433fcb587c8ab9d0afbe346f625a3
MD5 6516451bfe5761fc61637d6997979a70
BLAKE2b-256 5b9e46cfe04f0beb5b845f60585110aaca3d7f6b5b1313782ba4359f8c016e42

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0b260827 This release

2 files

0.0.0a1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page