Skip to content

Commit fe51faa

Browse files
Merge pull request #7601 from MicrosoftDocs/main
Auto Publish – main to live - 2025-10-10 05:05 UTC
2 parents 183411d + 5eea09d commit fe51faa

File tree

1 file changed

+39
-20
lines changed

1 file changed

+39
-20
lines changed

articles/search/agentic-knowledge-source-overview.md

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,71 @@
11
---
2-
title: Create a knowledge source
2+
title: What is a knowledge source
33
titleSuffix: Azure AI Search
4-
description: Learn how to create a knowledge source for agentic retrieval workloads in Azure AI Search.
4+
description: Learn about the knowledge source object used for agentic retrieval workloads in Azure AI Search.
55
manager: nitinme
66
author: HeidiSteen
77
ms.author: heidist
88
ms.service: azure-ai-search
9-
ms.topic: how-to
10-
ms.date: 10/01/2025
9+
ms.topic: concept-article
10+
ms.date: 10/09/2025
1111
---
1212

13-
# Create a knowledge source
13+
# What is a knowledge source?
1414

1515
[!INCLUDE [Feature preview](./includes/previews/preview-generic.md)]
1616

1717
A knowledge source wraps a search index with extra properties for agentic retrieval. It's a required definition in a knowledge agent. We provide guidance on how to create specific knowledge sources, but generally, you can:
1818

19-
+ Create multiple knowledge sources as top-level resources on your search service.
19+
+ Create a knowledge source as a top-level resource on your search service. Each knowledge source points to exactly one index, and that index must [meet the criteria for agentic retrieval](agentic-retrieval-how-to-create-index.md).
2020

21-
+ Reference one or more knowledge sources in a knowledge agent. In an agentic retrieval pipeline, it's possible to query against multiple knowledge sources in single request. Subqueries are generated for each knowledge source. Top results are returned in the retrieval response.
21+
+ Reference one or more knowledge sources in a knowledge agent. In an agentic retrieval pipeline, it's possible to query against multiple knowledge sources in a single request. Subqueries are generated for each knowledge source. Top results are returned in the retrieval response.
2222

23-
Make sure you have at least one knowledge source before creating a knowledge agent. The full specification of a knowledge source and a knowledge agent is in the [REST API reference](/rest/api/searchservice).
23+
+ Use a knowledge source definition to generate a full indexer pipeline (data source, skillset, indexer, and index) that works for agentic retrieval. Instead of creating multiple objects manually, information in the knowledge source is used to generate all objects, including a populated and searchable index.
2424

25-
## Key points about a knowledge source
25+
Make sure you have at least one knowledge source before creating a knowledge agent. The full specification of a knowledge source and a knowledge agent is in the [preview REST API reference](/rest/api/searchservice/operation-groups?view=rest-searchservice-2025-08-01-preview&preserve-view=true).
2626

27-
+ Creation path: first create a knowledge source, then create a knowledge agent. Deletion path: update or delete knowledge agents, delete knowledge sources last.
27+
## Working with a knowledge source
2828

29-
+ A knowledge source, its index, and the knowledge agent must all exist on the same search service.
29+
+ Creation path: first create a knowledge source, then create a knowledge agent.
30+
31+
+ Deletion path: update or delete knowledge agents to remove references to a knowledge source, and then delete the knowledge source last.
3032

31-
+ Each knowledge source points to exactly one index, and that index must [meet the criteria for agentic retrieval](agentic-retrieval-how-to-create-index.md).
33+
+ A knowledge source, its index, and the knowledge agent must all exist on the same search service.
3234

33-
+ For each knowledge source, the knowledge agent provides extra properties for query execution. [KnowledgeSourceReference](/rest/api/searchservice/knowledge-agents/create-or-update#knowledgesourcereference?view=rest-searchservice-2025-08-01-preview&preserve-view=true) properties affect query planning. [KnowledgeAgentOutputConfiguration](/rest/api/searchservice/knowledge-agents/create-or-update#knowledgeagentoutputconfiguration?view=rest-searchservice-2025-08-01-preview&preserve-view=true) properties affect query output.
35+
+ For each knowledge source, the knowledge agent provides extra properties for query execution. [`"knowledgeSources"`](/rest/api/searchservice/knowledge-agents/create-or-update#knowledgesourcereference?view=rest-searchservice-2025-08-01-preview&preserve-view=true) properties affect query planning. [`"outputConfiguration"`](/rest/api/searchservice/knowledge-agents/create-or-update#knowledgeagentoutputconfiguration?view=rest-searchservice-2025-08-01-preview&preserve-view=true) properties affect query output.
3436

3537
## Supported knowledge sources
3638

3739
Here are the knowledge sources you can create in this preview:
3840

39-
+ [Search index knowledge source (an existing index)](agentic-knowledge-source-how-to-search-index.md)
40-
+ [Blob knowledge source](agentic-knowledge-source-how-to-blob.md)
41+
+ [`"searchIndex"`](/rest/api/searchservice/knowledge-sources/create-or-update#searchindexknowledgesource?view=rest-searchservice-2025-08-01-preview&preserve-view=true) wraps an existing index
42+
+ [`"azureBlob"`](/rest/api/searchservice/knowledge-sources/create-or-update#azureblobknowledgesource?view=rest-searchservice-2025-08-01-preview&preserve-view=true) generates an indexer pipeline that pulls from a blob container
4143

42-
A platform-specific knowledge source like the blob knowledge source includes specifications for generating an entire indexing pipeline that provides all extraction, enrichment and transformations over blob content, and a viable index. You can modify the pipeline and rerun the indexer, but you can't rename the objects.
44+
A platform-specific knowledge source like the blob knowledge source includes specifications for generating an entire indexing pipeline that provides extraction, skillset processing, and a viable index. You can modify the pipeline and rerun the indexer, but you can't rename the objects.
4345

4446
> [!NOTE]
45-
> `WebKnowledgeSource` (also referred to as `WebParameters` in REST APIs) isn't currently available in the 2025-08-01-preview.
47+
> `WebKnowledgeSource` (also referred to as `WebParameters` in REST APIs) isn't currently operational in the 2025-08-01-preview.
48+
49+
## Create a knowledge source
50+
51+
You must have [**Search Service Contributor** permissions](search-security-rbac.md) to create objects on a search service. You also need **Search Index Data Contributor** permissions to load an index if you're using a knowledge source that creates an indexer pipeline. Alternatively, you can [use an API admin key](search-security-api-keys.md) instead of roles.
52+
53+
You must use the REST API or an Azure SDK preview package to create a knowledge source. There's no portal support at this time. The following links provide instructions for creating a knowledge source:
54+
55+
+ [How to create a search index knowledge source (wraps an existing index)](agentic-knowledge-source-how-to-search-index.md)
56+
+ [How to create a blob knowledge source (generates an indexer pipeline)](agentic-knowledge-source-how-to-blob.md)
57+
58+
After the knowledge source is created, you can reference it in a knowledge agent.
59+
60+
## Use a knowledge source
61+
62+
Properties on the [*knowledge agent*](agentic-retrieval-how-to-create-knowledge-base.md) determine whether and how the knowledge source is used.
63+
64+
+ [`"knowledgeSources"`](/rest/api/searchservice/knowledge-agents/create-or-update#knowledgesourcereference?view=rest-searchservice-2025-08-01-preview&preserve-view=true) array specifies the knowledge sources available to the knowledge agent and informs the query logic.
4665

47-
## Control knowledge source usage
66+
+ [`"outputConfiguration"`](/rest/api/searchservice/knowledge-agents/create-or-update#knowledgeagentoutputconfiguration?view=rest-searchservice-2025-08-01-preview&preserve-view=true) properties affect query output.
4867

49-
Properties on the knowledge agent determine whether and how the knowledge source is used. The [KnowledgeSourceReference](/rest/api/searchservice/knowledge-agents/create-or-update#knowledgesourcereference?view=rest-searchservice-2025-08-01-preview&preserve-view=true) array specifies the knowledge sources available to the knowledge agent.
68+
The knowledge agent uses the [retrieve action](agentic-retrieval-how-to-retrieve.md) to send queries to the index specified in the knowledge source.
5069

5170
### Use multiple knowledge sources simultaneously
5271

@@ -57,7 +76,7 @@ When you have multiple knowledge sources, set the following properties to bias q
5776

5877
Retrieval instructions are sent as a user-defined prompt to the large language model (LLM) used for query planning. This prompt is helpful when you have multiple knowledge sources and want to provide guidance on when to use each one. For example, if you have separate indexes for product information, job postings, and technical support, the retrieval instructions might say "use the jobs index only if the question is about a job application."
5978

60-
The `alwaysQuerySource` property overrides `retrievalInstructions`. You should set `alwaysQuerySource` to false when providing retrieval instructions.
79+
The `alwaysQuerySource` property overrides `retrievalInstructions`. Set `alwaysQuerySource` to false when providing retrieval instructions.
6180

6281
### Attempt fast path processing
6382

0 commit comments

Comments
 (0)