Replies: 1 comment
-
|
is Ai 900 a course to do |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Responses file_search Latency and Timeout
Date prepared: 2026-06-01
Updated: 2026-06-05 with post-connection-removal staging diagnostic evidence.
Support Ticket Summary
We need Azure support to investigate intermittent high-latency and timeout behaviour when using Azure AI Foundry / Azure OpenAI Responses API with the
file_searchtool against Foundry vector store IDs.file_searchis understood here as Foundry file-backed vector retrieval over a vector store. ContentTraker is not issuing a raw Azure AI Search/vector query directly; the application call boundary is Responses APIcreate_response, and Foundry/Responses orchestrates the file-backed vector retrieval and model response.This application is not using a Persistent Agent and is not using an Azure AI Foundry knowledge base for this path. The runtime call is a direct Responses API
create_responsecall with:tools[0].type = "file_search"tools[0].vector_store_ids = [...]DefaultAzureCredentialThe vector store is small, but
file_searchcalls are taking 47 to 88+ seconds when they succeed and sometimes exceed our 90-second application timeout. A 2026-06-04 warm rerun still timed out, so this does not appear to be only first-call/cold-start behavior. A 2026-06-05 staging run after deleting a stale Foundry project Azure AI Search connection still executed the Responsesfile_searchpath, but KBA again hit the 90-second timeout.Impact
The feature is user-facing Search Diagnostics and production retrieval. Slow
file_searchmakes responses appear hung and forces us to fall back to local ContentTraker evidence after the 90-second budget.Environment
redactedArticleMngResources_RGarticlemngrprj-resourceAIServiceseastus2redactedhttps://articlemngrprj-resource.services.ai.azure.com/api/projects/articlemngrprj/openai/v1/responsesgpt-5.4-pro(now changed to mini, which improved timings)text-embedding-3-largeuserweb--0000123redactedv1.0.5 - f6e514aVector Stores Involved
Workspace:
BackTheApp.software019d35a8-4eeb-7a1e-9d5f-040b08e60841vs_uLY7yQIK6ca1iwjqXk1ETgPUvs_qfEXzB7pNeYZlQfN4SqbwouBThe slow path is consistently the KBA workspace vector store. KPA returns no vector match in about 11 to 13.5 seconds.
Reproduction
https://userweb.staging.contenttraker.com/Search Diagnostics.BackTheApp.software., and the Project for Codexwhat is the purpose of this workspaceThe page runs KBA and KPA file_search probes in parallel. Each probe has a 90-second budget. KUA is not run by this page.
Observed Results
Application log query over the staging Log Analytics workspace produced these
file_searchtimings:2026-06-04 Search Diagnostics Provider-Stage Timing
Local Search Diagnostics was run from
https://localhost:7333/search-diagnosticsagainst the same workspace and question:BackTheApp.software019d35a8-4eeb-7a1e-9d5f-040b08e60841what is the purpose of this workspaceFirst current run:
VectorStoreSucceededcontenttraker-fc10d744a7e54615b1d0376ad1991d3bae474a7d-fab2-41b7-a484-0b6c799fba59LocalOnlySucceededcontenttraker-4ed30dd8cdf143e2a213a0f817a9a6cbb11e4eaf-9438-4a7d-81f2-2f83a8315f8cWarm rerun after the application was already started and the prior diagnostic had completed:
VectorStoreTimedOutUsedLocalFallbackLocalOnlycontenttraker-f86ff96bd9164239a8ebb1cd8cf2a860Post-fix rerun after restarting localhost with current correlation/timing instrumentation:
VectorStoreSucceededcontenttraker-df9c8cba0283498d9071f07deed198c6f19a3edc-a466-49e6-b318-fa3f5912082cLocalOnlySucceededcontenttraker-f197dd1bea574c1ba54c33c2862b8b3f26992faf-12b1-4c88-a198-7be6feebf6e4The warm rerun is important because it removes a simple cold-start explanation. The current successful reruns also show the app-side CPU/body/mapping work is negligible: the dominant interval is waiting for Responses/Foundry to return response headers. In the post-fix rerun, KBA succeeded only about one second before the 90-second application budget, and answer synthesis took about 100.6 seconds.
2026-06-05 Staging Run After Removing Stale Foundry AI Search Connection
Before this run, the stale Foundry project connection named
articlemngrprjsrch2rf06ywas removed fromai.azure.com. That connection had categoryCognitiveSearch/ Azure AI Search and pointed athttps://articlemngrprj-srch.search.windows.net/; the underlying Azure AI Search service was not available in the resource group.After the connection was removed, Search Diagnostics still executed. The page did not report a missing Foundry project connection or setup error. The runtime still showed both scoped retrieval bindings as Foundry vector stores:
FoundryVectorStoreYesFoundryVectorStoreYesTrueTrueSame workspace and question:
BackTheApp.software019d35a8-4eeb-7a1e-9d5f-040b08e60841what is the purpose of this workspaceObserved staging result after deleting the stale connection:
VectorStoreTimedOutUsedLocalFallbackfile_searchhit the 90-second scoped retrieval budget; local ContentTraker evidence was used.VectorStoreNoMatchUsedLocalFallbackfile_searchcompleted within budget and returned no match; local ContentTraker evidence was used.This post-removal run argues against the stale Foundry AI Search connection being required by this application path. Removing it did not produce an execution error. It also did not resolve the latency, because KBA still timed out at the 90-second Responses
file_searchbudget.Azure Monitor for the Azure AI resource over 2026-06-01T18:45Z to 2026-06-01T19:30Z showed:
No
429status code appeared in the metric split for this window. The two499entries correspond to our application canceling the request at the 90-second timeout.Azure Support Questions
file_searchover a small Foundry vector store?499records visible to Azure support as server-side work that continued after client cancellation?429?gpt-5.4-proplus Responsesfile_searchon project-scoped Foundry vector stores ineastus2?create_responseduration is dominated by file-backed vector retrieval, model inference, capacity queueing, or another internal provider stage?CognitiveSearchFoundry project connection required for direct Responsesfile_searchcalls that supplytools[].vector_store_ids, or are the Foundry vector stores sufficient for this path?c42101c2-e6f5-440f-9055-9520287723cf72445806-6d18-447f-91d4-857175ab305ba87882fa-9ba2-4083-9270-57d9db000b24ae474a7d-fab2-41b7-a484-0b6c799fba59b11e4eaf-9438-4a7d-81f2-2f83a8315f8cf19a3edc-a466-49e6-b318-fa3f5912082c26992faf-12b1-4c88-a198-7be6feebf6e4Implementation Details
Configuration
Relevant file:
ArticleMngrShared/Configuration/FoundryConfiguration.csContainer App configuration currently supplies:
Vector Store Setup
Relevant files:
ArticleMngrShared/Engines/FoundryAgentEngine.csArticleMngrShared/ResourceAccess/FoundryAgentRA.csArticleMngrShared/Engines/FoundryVectorStoreEngine.csThe setup creates vector stores only. It intentionally does not create Persistent Agents.
The resource-access layer calls the Azure AI Agents SDK to create the vector store:
Digital assets are uploaded to the target vector store as files:
The engine records the returned vector-store file ID on the digital asset:
Responses file_search Invocation
Relevant files:
ArticleMngrShared/Engines/ScopedKnowledgeRetrievalService.csArticleMngrShared/ResourceAccess/ResponsesClientRA.csArticleMngrShared/DTO/AiCompletionDtos.csThe KBA/KPA retrieval service calls Responses with one vector store ID. The timeout is currently set to 90 seconds by dependency default.
The retrieval instructions explicitly tell the model to use only
file_searchresults:The transport builds this Responses API payload:
For the failing KBA diagnostic, the effective payload shape is:
{ "model": "gpt-5.4-pro", "input": "what is the purpose of this workspace", "instructions": "You are retrieving evidence for ContentTraker KBA...\nUse file_search results only...", "max_output_tokens": 800, "store": false, "user": "019d35a8-4eeb-7a1e-9d5f-040b08e60841", "tools": [ { "type": "file_search", "vector_store_ids": [ "vs_uLY7yQIK6ca1iwjqXk1ETgPU" ] } ] }The transport sends the request to the project-scoped Responses API endpoint with RBAC bearer token and, in current diagnostics builds, correlation headers:
Timing Metrics and Logs
The application records
file_searchtiming as both logs and OpenTelemetry metrics:The web host registers the meter for OpenTelemetry export:
The log line used for support evidence is:
Diagnostic Commands Used
Log query:
Azure Monitor metric split:
Current Assessment
The implementation appears to be using Responses
file_searchagainst the Foundry vector store ID correctly. This is file-backed vector retrieval managed by Foundry/Responses, not a direct raw Azure AI Search query from ContentTraker. The observed issue is provider-side latency or queueing in thecreate_responseoperation when thefile_searchtool is attached.The available evidence does not show explicit HTTP
429throttling. The timeout records appear as HTTP499, which matches client-side cancellation at our 90-second budget.The 2026-06-04 provider-stage timing strengthens this assessment: payload build, response body read, and JSON mapping were effectively zero; the dominant successful-call interval was HTTP send-to-response-headers inside the provider call. A warm rerun still timed out, so the issue should not be closed as a simple local app cold start.
The 2026-06-05 post-removal staging run further narrows the issue: deleting the stale Foundry project Azure AI Search connection did not break the application path, but it also did not remove the KBA timeout. The remaining support question is why Responses
file_searchover the Foundry vector store ID is still taking roughly the full 90-second retrieval budget for a small workspace vector store.Beta Was this translation helpful? Give feedback.
All reactions