AzureAISearch: Problems with Setup and Citations #118
Replies: 1 comment
-
Recommendation: This looks like the azure_ai_search tool is still missing some functionality compared to file_search. You might want to file feedback with Microsoft about exposing field selection parameters and improving citation metadata handling for better parity with the file_search experience. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
we moved from a file search tool, to an AzureAISearchTool and now face some issues. While the search is good, we wonder how the search result is returned to the agent. Let's look at the metadata of a FileSearch tool call in AIFoundry:
{ "name": "file_search", "context": { "trace_id": "thread_vPnz5fB1vQiiSjs0PzDXU0T6", "span_id": "call_bzgwiiU0Vsdk2rzjTGMhCAqW", "thread_id": "thread_vPnz5fB1vQiiSjs0PzDXU0T6" }, "kind": "Tool", "parent_id": "step_TXcQvWzIKIvTBJilRdFG0wZb", "start_time": "2025-08-01T08:17:14.000Z", "end_time": "2025-08-01T08:17:15.000Z", "status": { "status_code": "Ok", "description": "completed" }, "attributes": { "span_type": "Tool", "id": "call_bzgwiiU0Vsdk2rzjTGMhCAqW", "type": "file_search", "file_search": { "ranking_options": { "ranker": "default_2024_08_21", "score_threshold": 0 }, "results": [ { "file_id": "assistant-id", "file_name": "fileName - 1.pdf", "score": 0.01666666753590107, "attributes": {}, "content": [ { "type": "text", "text": "REDACTED" } ] }, { "file_id": "assistant-id", "file_name": "fileName - 1.pdf", "score": 0.016393441706895828, "attributes": {}, "content": [ { "type": "text", "text": "REDACTED" } ] } ] }, "output": [ { "file_id": "assistant-id", "file_name": "fileName - 1.pdf", "score": 0.01666666753590107, "attributes": {}, "content": [ { "type": "text", "text": "REDACTED" } ] } ] } }This has a nice, structured response. However, if I compare that to the metadata of an AzureAISearch call:
{ "name": "azure_ai_search", "context": { "trace_id": "thread_q6w2pvVFUpQxqnXL06RUWmfx", "span_id": "call_hZaZpiLVOo1jeIZ70g4p1rr4", "thread_id": "thread_q6w2pvVFUpQxqnXL06RUWmfx" }, "kind": "Tool", "parent_id": "step_kkusDWUD469XL2K0dwAsyfrV", "start_time": "2025-08-01T08:19:00.000Z", "end_time": "2025-08-01T08:19:01.000Z", "status": { "status_code": "Ok", "description": "completed" }, "attributes": { "span_type": "Tool", "id": "call_hZaZpiLVOo1jeIZ70g4p1rr4", "type": "azure_ai_search", "azure_ai_search": { "input": "search term", "output": { "summary": "Retrieved 2 documents.", "metadata": { "urls": ["doc_0", "doc_1"], "titles": ["doc_0", "doc_1"], "get_urls": [ "REDACTED?api-version=2024-07-01&$select=ChunkId,Content,Source", "REDACTED?api-version=2024-07-01&$select=ChunkId,Content,Source" ], "ids": ["REDACTED", "REDACTED"], "command": "search", "query_type": "simple", "top_k": 5, "filter": true } } }, "output": { "summary": "Retrieved 2 documents.", "metadata": { "urls": ["doc_0", "doc_1"], "titles": ["doc_0", "doc_1"], "get_urls": [ "REDACTED?api-version=2024-07-01&$select=ChunkId,Content,Source", "REDACTED?api-version=2024-07-01&$select=ChunkId,Content,Source" ], "ids": ["REDACTED", "REDACTED"], "command": "search", "query_type": "simple", "top_k": 5, "filter": true } } } }it seems like there is no content returned, just urls.
Now I've got a couple of questions:
Beta Was this translation helpful? Give feedback.
All reactions