You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/agentic-knowledge-source-overview.md
+26-11Lines changed: 26 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: HeidiSteen
7
7
ms.author: heidist
8
8
ms.service: azure-ai-search
9
9
ms.topic: how-to
10
-
ms.date: 10/01/2025
10
+
ms.date: 10/09/2025
11
11
---
12
12
13
13
# Create a knowledge source
@@ -16,37 +16,52 @@ ms.date: 10/01/2025
16
16
17
17
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:
18
18
19
-
+ Create multiple knowledge sources as top-level resources on your search service.
19
+
+ Create a knowledge source as top-level resources 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).
20
20
21
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.
22
22
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.
24
+
23
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 [REST API reference](/rest/api/searchservice).
24
26
25
-
## Key points about a knowledge source
27
+
## Working with a knowledge source
26
28
27
-
+ Creation path: first create a knowledge source, then create a knowledge agent. Deletion path: update or delete knowledge agents, delete knowledge sources last.
29
+
+ Creation path: first create a knowledge source, then create a knowledge agent.
28
30
29
-
+A knowledge source, its index, and the knowledge agent must all exist on the same search service.
31
+
+Deletion path: update or delete knowledge agents to remove references to a knowledge source, and then delete knowledge sources last.
30
32
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.
32
34
33
35
+ 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.
34
36
35
37
## Supported knowledge sources
36
38
37
39
Here are the knowledge sources you can create in this preview:
38
40
39
-
+[Search index knowledge source (an existing index)](agentic-knowledge-source-how-to-search-index.md)
+[Search index knowledge source (wraps an existing index)](agentic-knowledge-source-how-to-search-index.md)
42
+
+[Blob knowledge source (generates an indexer pipeline)](agentic-knowledge-source-how-to-blob.md)
41
43
42
44
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.
43
45
44
46
> [!NOTE]
45
47
> `WebKnowledgeSource` (also referred to as `WebParameters` in REST APIs) isn't currently available in the 2025-08-01-preview.
46
48
47
-
## Control knowledge source usage
49
+
## Create a knowledge source
50
+
51
+
You must have [permissions](search-security-rbac.md) to create objects on a search service (**Search Service Contributor**), and also permissions to load an index if you're using a blob knowledge source (**Search Index Data Contributor**). You can also [use an API admin key](search-security-api-keys.md).
52
+
53
+
You must use the REST API or an Azure SDK preview package to create a knowledge source. There's no portal supported at this time. The following links provide instructions for creating a knowledge source:
54
+
55
+
+[Search index knowledge source (wraps an existing index)](agentic-knowledge-source-how-to-search-index.md)
56
+
+[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* 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.
48
63
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.
64
+
The knowledge agent uses the [retrieve action](agentic-retrieval-how-to-retrieve.md) to send queries to the index specified in the knowledge source.
50
65
51
66
### Use multiple knowledge sources simultaneously
52
67
@@ -57,7 +72,7 @@ When you have multiple knowledge sources, set the following properties to bias q
57
72
58
73
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."
59
74
60
-
The `alwaysQuerySource` property overrides `retrievalInstructions`. You should set`alwaysQuerySource` to false when providing retrieval instructions.
75
+
The `alwaysQuerySource` property overrides `retrievalInstructions`. Set`alwaysQuerySource` to false when providing retrieval instructions.
0 commit comments