File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
articles/ai-services/agents Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,18 @@ zone_pivot_groups: selection-azure-ai-search
17
17
::: zone pivot="overview-azure-ai-search"
18
18
Use an existing Azure AI Search index with the agent's Azure AI Search tool.
19
19
20
- > [ !NOTE]
21
- > Azure AI Search indexes must meet the following requirements:
22
- > - The index must contain at least one searchable & retrievable text field (type Edm.String)
23
- > - The index must contain at least one searchable vector field (type Collection(Edm.Single))
24
- > - The index must use a vector profile/integrated vectorization
25
20
26
21
## Search types
22
+ You can specify the search type for your index by choosing one of the following
23
+ - Simple
24
+ - Semantic
25
+ - Vector
26
+ - Hybrid (Vector + Keyword)
27
+ - Hybrid (Vector + Keyword + Semantic)
27
28
28
- ** Index without semantic configuration**
29
- - By default, the Azure AI Search tool runs a hybrid search (keyword + vector) on all text fields.
30
- <br >
31
29
32
- ** Index with semantic configuration **
33
- - By default, the Azure AI Search tool runs hybrid + semantic search on all text fields.
30
+ ** Indexes without a specified search type **
31
+ - By default, the Azure AI Search tool runs a hybrid search (keyword + vector) on all text fields
34
32
35
33
## Usage support
36
34
Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ conn_id = "/subscriptions/<your-subscription-id>/resourceGroups/<your-resource-
130
130
131
131
# Initialize agent AI search tool and add the search index connection ID and index name
132
132
# TO DO: replace <your-index-name> with the name of the index you want to use
133
- ai_search = AzureAISearchTool(index_connection_id = conn_id, index_name = " <your-index-name>" )
133
+ ai_search = AzureAISearchTool(index_connection_id = conn_id, index_name = " <your-index-name>"
134
+ query_type = " <select-search-type>" )
134
135
```
135
136
# [ C#] ( #tab/csharp )
136
137
``` csharp
@@ -143,7 +144,7 @@ ToolResources searchResource = new ToolResources
143
144
{
144
145
AzureAISearch = new AzureAISearchResource
145
146
{
146
- IndexList = { new IndexResource (connection .Id , " <your-index-name>" ) }
147
+ IndexList = { new IndexResource (connection .Id , " <your-index-name>" , " <select-search-type> " ) }
147
148
}
148
149
};
149
150
```
You can’t perform that action at this time.
0 commit comments