agentleFS
MicrosoftKnown publishermicrosoft/agent-framework/python/packages/azure-ai-search/AGENTS.md

agent-framework / azure-ai-search

AGENTS.md14k starsChanged 10 months agoMITView on GitHub

Integration with Azure AI Search for RAG (Retrieval-Augmented Generation) and vector storage. The package depends on azure-search-documents>=12.0.0,<13, which spans both channels, and auto-detects which build is installed — there is no api_version parameter: The provider never pins an api-version; the installed build picks its own default, so newer releases work without code changes (single source of truth = the install). Capability gating keys off _preview_agentic_features_available — whether the preview build's agentic symbols (KnowledgeRetrieval{Low,Medium}ReasoningEffort, KnowledgeRetrievalOutputMode) can be imported. Agentic output mode…

  • Reads credentials
  • Installs packages

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 3 mentionsApr 2026: 5 mentionsMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-framework repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-framework

The biggest 5 of 31 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 31

Talked about on GitHub, Bluesky and Hacker News (31 times).

On GitHub · 17

12 more on GitHub

On Bluesky · 10

5 more on Bluesky

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not migrate/refactor the existing ContextProvider as part of vector connector work.

    line 65
  2. Distinctive:

    Write serialization validates all keys and vector elements once before upload.

    line 67
  3. Very specific:

    Keep the package exports and core agent_framework/azure/__init__.py / __init__.pyi synchronized.

    line 84
  4. Distinctive:

    Read the package README for supported field annotations, operation options, score units, null/missing restrictions, ownership, and …

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Azure AI Search Package (agent-framework-azure-ai-search)

Integration with Azure AI Search for RAG (Retrieval-Augmented Generation) and vector storage.

Main Classes

  • AzureAISearchContextProvider - Context provider that retrieves relevant documents from Azure AI Search
  • AzureAISearchSettings - TypedDict settings for Azure AI Search configuration
  • AzureAISearchCollection - Experimental async vector/index collection with batch CRUD and native search
  • AzureAISearchStore - Experimental collection factory, index lifecycle, and index alias operations

API versions: stable vs preview

The package depends on azure-search-documents>=12.0.0,<13, which spans both channels, and auto-detects which build is installed — there is no api_version parameter:

ChannelInstallSDKData-plane api-version (chosen by the SDK)
Stable / GApip install azure-search-documents12.0.02026-04-01
Previewpip install --pre azure-search-documents12.1.0b22026-08-01-preview

The provider never pins an api-version; the installed build picks its own default, so newer releases work without code changes (single source of truth = the install).

Capability gating keys off _preview_agentic_features_available — whether the preview build's agentic symbols (KnowledgeRetrieval{Low,Medium}ReasoningEffort, KnowledgeRetrievalOutputMode) can be imported. Agentic output mode (answer_synthesis) and extended reasoning effort (low/medium) ship only in the preview build; on a stable build the provider omits them (extractive + minimal) and raises an actionable ValueError (citing the installed version) if they are explicitly requested. Semantic mode is unaffected.

Agentic query-time user identity is also preview-only. It is gated by _query_source_authorization_available; when enabled, query_source_credential supplies a per-request Azure AI Search token through the x-ms-query-source-authorization header. Both sync and async Azure token credentials are supported, starting with azure-search-documents>=12.1.0b1.

Usage

from agent_framework.azure import AzureAISearchContextProvider

provider = AzureAISearchContextProvider(
    endpoint="https://your-search.search.windows.net",
    index_name="your-index",
)
agent = Agent(..., context_provider=provider)

Import Path

from agent_framework.azure import AzureAISearchContextProvider
# or directly:
from agent_framework_azure_ai_search import AzureAISearchContextProvider

Vector connector

_vector_store.py is the single vector connector implementation module: concrete SDK/settings and filter-condition helpers, then AzureAISearchCollection, then AzureAISearchStore. Both classes use core registration, codecs, batch CRUD, and SearchResults. Collection _prepare_filter owns support guards and OData translation for both filtered get and search; _validate_operation_options rejects unsupported options before I/O. Codec/filter/query helpers precede _inner_upsert, _inner_get, _inner_delete, _inner_search, and result extraction. Store administration precedes its close methods. Do not migrate/refactor the existing ContextProvider as part of vector connector work.

Write serialization validates all keys and vector elements once before upload. Upload preflight accounts for SDK JSON escaping, spacing, action metadata, and the batch envelope, rejecting a single oversized document before any batch I/O. It retains batch boundaries, not copies of serialized vector payloads. Numeric write validation follows the configured EDM storage type; query vectors follow the service's floating-point query contract instead of integer storage limits. New vector schemas default to retrievable unless explicitly disabled or unstored. Both constructors validate query credentials before resolving connection settings or creating owned clients.

Both constructors create owned clients through _create_index_client, reusing AzureAISearchSettings and the public AF load_settings / SecretString API with the AZURE_SEARCH_ prefix. Explicit settings override the selected .env file, which overrides the process environment. env_file_path and env_file_encoding are supported on both. Injected clients bypass settings entirely and reject explicit connection/file overrides; store-created collections reuse its resolved client without another load. The store tracks open collections in insertion order with constant-time removal. A collection's private close callback removes its registration and is cleared even when client cleanup fails; store shutdown still attempts all remaining owned clients without closing borrowed credentials.

Keep the package exports and core agent_framework/azure/__init__.py / __init__.pyi synchronized. Read the package README for supported field annotations, operation options, score units, null/missing restrictions, ownership, and stable/preview capability gates. Preview gates check SDK capabilities and the actual outgoing API version before transport; never silently drop query identity or thresholds.

Service tests require dedicated AZURE_SEARCH_VECTOR_TEST_* settings and explicit opt-in; SDK mocks are not evidence of live-service behavior.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.