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
in the past I was messing with different embeddings, so it is very much propable I caused this myself somehow. The issue is that I have some files in UI which I cannot delete. When I click on delete, UI makes it look like they are deleted fine, but on refresh the files are back.
This is because the files no longer exist in RAG.
I would argue this is a bug at least in UI, where if I try to delete file that does not exist (therefore was deleted before) it should delete it from its own DB of files, as, the file is really not present.
At the very least it should show the error to the user, not silently make it seem like all went fine, removing files from list only to find them again on reload.
Steps to Reproduce
upload file to RAG
delete file from RAG somehow not thru UI (I have no idea how I managed it, I never interfaced with RAG directly. maybe due to changing embeddings provider? Or some other bug in UI, as I was deleting files in bulk from UI a while back)
try to delete the file from UI
What browsers are you seeing the problem on?
No response
Relevant log output
librechat-rag-api | 2025-01-13 12:42:59,430 - root - ERROR - Failed to delete documents | IDs: ['ca46ab84-4773-4ec7-b795-ddc6206552fb'] | Error: 404: One or more IDs not found | Traceback: Traceback (most recent call last):
librechat-rag-api | File "/app/main.py", line 201, in delete_documents
librechat-rag-api | raise HTTPException(status_code=404, detail="One or more IDs not found")
librechat-rag-api | fastapi.exceptions.HTTPException: 404: One or more IDs not found
librechat-rag-api |
librechat-rag-api | 2025-01-13 12:42:59,430 - root - INFO - Request DELETE http://rag_api:8000/documents - 500
librechat-rag-api | 2025-01-13 12:42:59,433 - root - ERROR - Failed to delete documents | IDs: ['2c5d12f2-486b-4b13-b796-47a4e11fac7f'] | Error: 404: One or more IDs not found | Traceback: Traceback (most recent call last):
librechat-rag-api | File "/app/main.py", line 201, in delete_documents
librechat-rag-api | raise HTTPException(status_code=404, detail="One or more IDs not found")
librechat-rag-api | fastapi.exceptions.HTTPException: 404: One or more IDs not found
librechat-rag-api |
librechat-api | 2025-01-13T12:42:59.435Z error: Error deleting vectors The request was made and the server responded with a status code that falls out of the range of 2xx: Request failed with status... [truncated]
librechat-rag-api | 2025-01-13 12:42:59,434 - root - ERROR - Failed to delete documents | IDs: ['362d1c2c-a8f6-40c1-ab92-1e0e1bfbe321'] | Error: 404: One or more IDs not found | Traceback: Traceback (most recent call last):
librechat-api | 2025-01-13T12:42:59.435Z error: Error deleting file Request failed with status code 500
librechat-rag-api | File "/app/main.py", line 201, in delete_documents
librechat-api | 2025-01-13T12:42:59.436Z error: Error deleting vectors The request was made and the server responded with a status code that falls out of the range of 2xx: Request failed with status... [truncated]
librechat-rag-api | raise HTTPException(status_code=404, detail="One or more IDs not found")
librechat-api | 2025-01-13T12:42:59.437Z error: Error deleting file Request failed with status code 500
librechat-rag-api | fastapi.exceptions.HTTPException: 404: One or more IDs not found
librechat-api | 2025-01-13T12:42:59.437Z error: Error deleting vectors The request was made and the server responded with a status code that falls out of the range of 2xx: Request failed with status... [truncated]
librechat-rag-api |
librechat-api | 2025-01-13T12:42:59.438Z error: Error deleting file Request failed with status code 500
librechat-rag-api | 2025-01-13 12:42:59,434 - root - INFO - Request DELETE http://rag_api:8000/documents - 500
librechat-api | 2025-01-13T12:42:59.439Z error: Error deleting vectors The request was made and the server responded with a status code that falls out of the range of 2xx: Request failed with status... [truncated]
librechat-rag-api | 2025-01-13 12:42:59,434 - root - INFO - Request DELETE http://rag_api:8000/documents - 500
librechat-api | 2025-01-13T12:42:59.440Z error: Error deleting file Request failed with status code 500
librechat-rag-api | 2025-01-13 12:42:59,436 - root - ERROR - Failed to delete documents | IDs: ['f0d0a3c1-df17-4d84-8c26-b43bcfedaa3d'] | Error: 404: One or more IDs not found | Traceback: Traceback (most recent call last):
librechat-api | 2025-01-13T12:42:59.442Z debug: [/files] Files deleted successfully: ca46ab84-4773-4ec7-b795-ddc6206552fb, f0d0a3c1-df17-4d84-8c26-b43bcfedaa3d, 362d1c2c-a8f6-40c1-ab92-1e0e1bfbe321,... [truncated]
librechat-rag-api | File "/app/main.py", line 201, in delete_documents
librechat-rag-api | raise HTTPException(status_code=404, detail="One or more IDs not found")
librechat-rag-api | fastapi.exceptions.HTTPException: 404: One or more IDs not found
librechat-rag-api |
librechat-rag-api | 2025-01-13 12:42:59,436 - root - INFO - Request DELETE http://rag_api:8000/documents - 500
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:
I would like to add that I cannot delete also files which were generated by DALL-E and show as type "Image gen"
Again, not sure how i got here, as if I ask dalle via agent to generate new image now, then I delete it, it works without issues. But this one is "stuck"
What happened?
in the past I was messing with different embeddings, so it is very much propable I caused this myself somehow. The issue is that I have some files in UI which I cannot delete. When I click on delete, UI makes it look like they are deleted fine, but on refresh the files are back.
This is because the files no longer exist in RAG.
I would argue this is a bug at least in UI, where if I try to delete file that does not exist (therefore was deleted before) it should delete it from its own DB of files, as, the file is really not present.
At the very least it should show the error to the user, not silently make it seem like all went fine, removing files from list only to find them again on reload.
Steps to Reproduce
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: