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
Concurrent file deletion requests for agents RAG tool can lead to inconsistent DB state.
In these cases the tool resouce file ids array contains entries for deleted files.
Similarly to #4746 on server side the agent update logic includes two async operations, one to retrieve the agent and the following to update it based on the previously retrieved data.
With multiple concurrent requests being processed the retrieved data can become stale, causing the reported issue.
Steps to Reproduce
configure RAG
configure an agent
enable file search for the agent
upload 2 documents
while debugging put a breakpoint just after the agent retrieval in removeAgentResourceFiles from /api/models/Agent.js
delete the first file and wait for the request to trigger the breakpoint
delete the second file and wait for the request to trigger the breakpoint
resume the first file deletion and wait for it to complete
resume the second file deletion and wait for it to complete
You'll and up with the first file id still associated with the agent while no file is showing in the UI.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
Concurrent file deletion requests for agents RAG tool can lead to inconsistent DB state.
In these cases the tool resouce file ids array contains entries for deleted files.
Similarly to #4746 on server side the agent update logic includes two async operations, one to retrieve the agent and the following to update it based on the previously retrieved data.
With multiple concurrent requests being processed the retrieved data can become stale, causing the reported issue.
Steps to Reproduce
removeAgentResourceFiles
from/api/models/Agent.js
You'll and up with the first file id still associated with the agent while no file is showing in the UI.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: