What is a knowledge source?

Note

Foundry IQ (Azure AI Search) provides direct indexing and query APIs alongside higher-level knowledge source and knowledge base APIs for managed retrieval. Use the Azure portal, REST APIs, or Azure SDKs to configure these capabilities, or connect agents to knowledge bases in the Microsoft Foundry portal.

Important

Features or capabilities marked (preview) in this article are in Public Preview and are subject to the Supplemental Terms of Use for Microsoft Azure Previews. For preview terms specific to Foundry IQ (Azure AI Search), see Preview functionality.

A knowledge source is a top-level resource on your Foundry IQ (Azure AI Search) service that defines the content used in an agentic retrieval pipeline. Each knowledge source is either indexed or remote, which determines how the content is ingested, processed, and queried. Knowledge sources are required components of a knowledge base.

Reference multiple knowledge sources in a knowledge base. Ordinary minimal retrieval queries all candidate sources, while low and medium effort can select a subset. The response combines the most relevant results from the queried sources.

The number of configured sources and the number selected during retrieval are separate limits.

Supported knowledge sources

Foundry IQ supports the following knowledge sources for agentic retrieval workloads.

Kind Description Indexed or remote
Search index Wraps an existing index. Indexed
Azure blob Generates an indexer pipeline from a blob container. Indexed
Azure SQL Generates an indexer pipeline from an Azure SQL table or view. Indexed
File Uploads files directly to Foundry IQ. Indexed
OneLake Generates an indexer pipeline from a lakehouse. Indexed
Indexed SharePoint Generates an indexer pipeline from SharePoint sites. Indexed
Remote SharePoint (preview) Retrieves content from SharePoint. Remote
Fabric Data Agent (preview) Retrieves answers and embedded resources from a Microsoft Fabric data agent. Remote
Fabric Ontology (preview) Retrieves entity- and relationship-based answers from a Microsoft Fabric ontology. Remote
MCP server (preview) Retrieves live, tool-backed results from an external MCP server. Remote
Work IQ (preview) Retrieves organizational intelligence from Work IQ. Remote
Web Retrieves real-time grounding data from Microsoft Bing. Remote

Indexed knowledge sources

An indexed knowledge source points to a search index that meets the criteria for agentic retrieval. Content is ingested into the index before query time through one of three paths:

  • Bring your own index: Use a search index knowledge source to wrap an existing index on your Foundry IQ service.

  • Direct file upload: Use a file knowledge source to upload files directly to Foundry IQ. The service processes the files and stores extracted content in a generated search index, with no external storage or indexer pipeline required.

  • Auto-generated indexer pipeline: For blob, OneLake, and indexed SharePoint knowledge sources, Foundry IQ automatically creates a complete indexer pipeline from your external data source. The pipeline includes a data source, skillset, indexer, and index that's populated and chunked. For Azure SQL, each row becomes a logical document, and the service creates a skillset only when you configure embeddingColumns.

In 2026-11-01-preview, use topic graph to augment vector retrieval for an existing searchIndex knowledge source. Bind a prepared, populated, compatible topic index through the searched vector field's topic graph profile.

For generated indexers, source-change polling and automatic continuation of unfinished ingestion are separate. Direct file upload doesn't use an indexer polling schedule.

Queries run locally on your Foundry IQ service using full-text (keyword), vector, or hybrid queries.

Because an indexed knowledge source has a backing search index, references can include service-generated citation URLs that resolve to their documents in the index. Remote knowledge sources have no backing index, so they don't return citation URLs.

Remote knowledge sources

A remote knowledge source connects directly to an external platform. Content is never ingested into Foundry IQ. Instead, it's retrieved at query time via each platform's native APIs. The agentic retrieval engine makes the API call and surfaces results alongside any indexed knowledge sources in the same response.

Depending on the platform, remote connections reach content either over the public internet (such as Bing) or within your Microsoft tenant (such as SharePoint and Fabric).

SharePoint architecture choices

Choose how content reaches your application before deciding how many sites or pipelines to configure.

Approach Choose it when Ownership and permissions
Indexed SharePoint knowledge source You want a managed ingestion path that creates a searchable copy of selected SharePoint content. Configure source selection and contentExtractionMode through the knowledge-source API. Enable the supported document-permission flow separately; ingestion access doesn't grant end users access to every indexed item.
SharePoint indexer plus a search index knowledge source You need to control the index schema, indexing schedule, or enrichment pipeline. Configure and maintain the indexing resources, then connect the populated index to a knowledge base. Preserve required permission fields and originating-site context, including on derived chunks.
Remote SharePoint knowledge source (preview) You want retrieval through Microsoft 365 without creating a SharePoint content index in Foundry IQ. Retrieval uses the Copilot Retrieval API and the user's SharePoint permissions. Check the remote source's licensing, filtering, and content limitations.
Custom ingestion plus a search index knowledge source Your ingestion or transformation requirements aren't met by the built-in paths. Your application owns extraction, change and deletion handling, and permission synchronization. Uploading content doesn't automatically preserve SharePoint permissions; implement a supported document-permission flow.

Use one indexed pipeline for content that shares an index schema and management requirements. Use separate pipelines and indexes when content needs independent schemas, processing, or governance. A shared index still requires document-level permissions when users have different access.

Indexed content reflects completed ingestion and permission synchronization, not a live check of every source item. Review SharePoint permission synchronization. For larger site scopes, follow SharePoint group-permission topology guidance rather than assuming a site count applies to every permission configuration.

Indexed SharePoint is available with REST API 2026-10-01; remote SharePoint remains in preview. A knowledge base combining indexed and remote sources must use an API version that supports every referenced source kind. Don't assume the stable October API supports remote SharePoint.

For managed indexed ingestion, choose minimal or standard content extraction in the indexed SharePoint configuration. For a directly configured enrichment pipeline, compare multimodal extraction options. Extraction capabilities depend on the source asset and processing path; files, list items, and modern pages have different content representations.

Unified ranking

For both indexed and remote knowledge sources, all retrieved content flows through the same ranking pipeline. Results are scored for relevance, merged across queries, and reranked before returning in the retrieval response.

Working with knowledge sources

Knowledge sources are independent objects that you create and manage separately from knowledge bases. Keep the following in mind:

  • Create a knowledge source before you create a knowledge base. Knowledge bases reference knowledge sources by ID, so the knowledge source must exist first.

  • To delete a knowledge source, first update or delete any knowledge bases that reference it. You can then delete the knowledge source.

  • A knowledge source and its knowledge base must exist on the same Foundry IQ service.

  • GET and LIST responses can redact or omit secrets. To recreate resources with valid target authentication and dependencies, follow Safe backup, restore, and cloning.

Creating knowledge sources

Creation support in the Azure portal, Microsoft Foundry portal, REST API, and Azure SDKs varies by knowledge source kind. For per-kind instructions, see the links in Supported knowledge sources.

By using REST API 2026-11-01-preview, embedding and chat ingestion models support Azure API Management (APIM) Premium v2 endpoints. Content Understanding extraction doesn't support APIM endpoints.

Ingest sensitivity labels (preview)

For blob, indexed OneLake, and indexed SharePoint knowledge sources, you can ingest Microsoft Purview sensitivity labels by setting ingestionPermissionOptions to include sensitivityLabel. Follow all the prerequisites before you set this value. After they're synchronized to the index, labels are surfaced in retrieve responses and used to enforce document-level access at query time. For more information, see Enforce permissions at query time (preview).

If your indexed knowledge source uses a chunked index, such as with integrated vectorization or a custom Text Split skill, you must also map the sensitivity label to each chunk row via index projections in the skillset. Otherwise, chunk-level references in retrieve responses won't be returned if they have labels in the source document.

Surface document-embedded images (preview)

For blob, indexed OneLake, and indexed SharePoint knowledge sources, you can configure an assetStore in the knowledge source's ingestionParameters to persist images that are embedded in your source documents. When you also enable image serving on the knowledge base, the retrieve action injects those images into the answer synthesis prompt so the LLM can reason over diagrams, charts, and extracted image content. For more information, see Surface document-embedded images in agentic retrieval (preview).

Don't configure assetStore and ingestionPermissionOptions on the same knowledge source. Image serving isn't supported when ingestionPermissionOptions is configured.

Restrict ingestion to a private network

Private ingestion is generally available in REST API 2026-10-01 for Blob and ADLS Gen2, indexed Azure SQL, and indexed OneLake knowledge sources on eligible Dedicated services. Approved shared private links can protect eligible source connections and Azure dependencies. Follow the configuration and tier requirements for each path and any separate preview requirements.

Serverless doesn't support private indexer execution or outbound Search shared private links. Use network security perimeter configuration for supported public-endpoint access controls. A perimeter doesn't create a private connection or enable private execution.

SharePoint Online isn't a shared private link target, so the source connection remains public.

networkAccessMode remains create-time-only. For eligible Blob, ADLS Gen2, and SQL sources, see Change networking after knowledge source creation for the interim indexer override and its limitations.

Use automatic per-language analyzers (preview)

Blob, indexed OneLake, and indexed SharePoint knowledge sources support automatic per-language analyzers for multilingual content. When enabled, Foundry IQ detects each source document's language and automatically applies a matching Microsoft language analyzer. You don't specify an analyzer in the knowledge source definition or in a query.

Enable this preview feature with minimal content extraction and ingestionParameters.aiServices. The linked connector instructions provide the shared setup, supported languages, fallback behavior, billing, and verification steps. This managed option differs from assigning language analyzers to fields in an index you configure yourself.

Using knowledge sources

After you create a knowledge source, reference it in a knowledge base. The knowledge base determines which knowledge sources to query. The following sections describe options for controlling which sources are included and how the engine selects among them.

Always query a knowledge source

Set alwaysQuerySource to true on the source's knowledgeSourceParams entry in a retrieve request. This request-level setting is supported in 2026-10-01; it isn't a stored property on the knowledge source. For request behavior and source-selection controls, see Retrieve with the GA REST API.

Stored and request settings

Three configuration surfaces are separate:

Surface Examples
Stored knowledge source searchIndexParameters.baseFilter; webParameters.language, market, count, and freshness. Existing search index settings include searchIndexName, sourceDataFields, searchFields, and semanticConfigurationName.
KB membership Each knowledgeSources entry contains only name.
Retrieve request A knowledgeSourceParams entry specifies knowledgeSourceName, matching kind, and options such as alwaysQuerySource, failOnError, reference controls, rerankerThreshold, and maxOutputDocuments.

A request filterAddOn combines with a nonempty stored baseFilter using AND. Request web options override stored web values. See Retrieve parameters.

For file ingestion options and version support, see File support and limits.

Use the retrieval reasoning effort to control LLM usage

Retrieval reasoning effort controls query planning. Ordinary minimal retrieval skips model-based planning. In 2026-11-01-preview, a knowledge base configured with Microsoft Retriever 1 can use it for Minimal planning with exactly one semantic intent containing the complete question. With multiple semantic intents, Minimal skips Microsoft Retriever 1 planning and merges ordinary Minimal results for each intent. A knowledge base with only Microsoft Retriever 1 supports extractive output, not external answer synthesis. At low and medium, an LLM plans queries and selects sources, and medium runs deeper retrieval. See Set the retrieval reasoning effort.

The following factors inform selection at low and medium effort:

  • The name of the knowledge source.

  • The description of an index (for indexed knowledge sources).

  • The retrievalInstructions specified in the knowledge base definition or the retrieve action. Retrieval instructions guide which knowledge sources the LLM selects or skips. They work like a prompt: you can specify brevity, tone, and formatting.