File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
articles/ai-services/agents Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,19 @@ Use an existing Azure AI Search index with the agent's Azure AI Search tool.
21
21
> Azure AI Search indexes must meet the following requirements:
22
22
> - The index must contain at least one searchable & retrievable text field (type Edm.String)
23
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
24
+ > - The index is assumed to be configured properly
25
25
26
26
## Search types
27
+ You can specify the search type for your index by choosing one of the following
28
+ - Simple
29
+ - Semantic
30
+ - Vector
31
+ - Hybrid (Vector + Keyword)
32
+ - Hybrid (Vector + Keyword + Semantic)
27
33
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
34
32
- ** Index with semantic configuration **
33
- - By default, the Azure AI Search tool runs hybrid + semantic search on all text fields.
35
+ ** Indexes without a specified search type **
36
+ - By default, the Azure AI Search tool runs a hybrid search (keyword + vector) on all text fields
34
37
35
38
## Usage support
36
39
Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ conn_id = "/subscriptions/<your-subscription-id>/resourceGroups/<your-resource-
136
136
137
137
# Initialize agent AI search tool and add the search index connection ID and index name
138
138
# TO DO: replace <your-index-name> with the name of the index you want to use
139
- ai_search = AzureAISearchTool(index_connection_id = conn_id, index_name = " <your-index-name>" )
139
+ ai_search = AzureAISearchTool(index_connection_id = conn_id, index_name = " <your-index-name>"
140
+ query_type = " <select-search-type>" )
140
141
```
141
142
# [ C#] ( #tab/csharp )
142
143
``` csharp
@@ -149,7 +150,7 @@ ToolResources searchResource = new ToolResources
149
150
{
150
151
AzureAISearch = new AzureAISearchResource
151
152
{
152
- IndexList = { new IndexResource (connection .Id , " <your-index-name>" ) }
153
+ IndexList = { new IndexResource (connection .Id , " <your-index-name>" , " <select-search-type> " ) }
153
154
}
154
155
};
155
156
```
You can’t perform that action at this time.
0 commit comments