The File Search function stopped working. #6910
-
What happened?Using the Agents endpoint (and also the legacy ones), when uploading a PDF, the models are not able to detect the file. I have tested with both Azure OpenAI and Google models. My embeddings configuration is set via Azure OpenAI, the environment variables are properly configured, and everything had been working well until recent versions of the LibreChat app. According to the Azure dashboard, the embedding model has indeed consumed tokens, so I assume that process is working correctly. The OCR method works fine across all endpoints. In the LibreChat logs, there are no error warnings, so whatever is happening is not being detected as an issue. .env Azure OpenAI Embedding configuration:
Version Information
~/LibreChat$ docker images | grep librechat Steps to Reproduce
What browsers are you seeing the problem on?Microsoft Edge Relevant log outputinteraction debug log:
`
2025-04-16T02:11:46.106Z debug: [BaseClient] Loading history:
{
conversationId: "177a534f-f89b-480b-9cdf-d8430c8de356",
parentMessageId: "00000000-0000-0000-0000-000000000000",
}
2025-04-16T02:11:46.118Z debug: [BaseClient] Context Count (1/2)
{
remainingContextTokens: 114730,
maxContextTokens: 114750,
}
2025-04-16T02:11:46.118Z debug: [BaseClient] Context Count (2/2)
{
remainingContextTokens: 114730,
maxContextTokens: 114750,
}
2025-04-16T02:11:46.118Z debug: [BaseClient] tokenCountMap:
{
79169b26-89f4-42c7-8c9b-ee47a9d8b744: 17,
}
2025-04-16T02:11:46.119Z debug: [BaseClient]
{
promptTokens: 20,
remainingContextTokens: 114730,
payloadSize: 1,
maxContextTokens: 114750,
}
2025-04-16T02:11:46.119Z debug: [BaseClient] tokenCountMap
{
79169b26-89f4-42c7-8c9b-ee47a9d8b744: 17,
}
2025-04-16T02:11:46.119Z debug: [BaseClient] userMessage
{
messageId: "79169b26-89f4-42c7-8c9b-ee47a9d8b744",
parentMessageId: "00000000-0000-0000-0000-000000000000",
conversationId: "177a534f-f89b-480b-9cdf-d8430c8de356",
sender: "User",
text: "Tell me about the specs of the product shown in the PDF.",
isCreatedByUser: true,
image_urls: undefined,
tokenCount: 17,
}
2025-04-16T02:11:46.172Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2025-04-16T02:11:46.987Z debug: [spendTokens] conversationId: 177a534f-f89b-480b-9cdf-d8430c8de356 | Context: message | Token usage:
{
promptTokens: 20,
completionTokens: 40,
}
2025-04-16T02:11:47.050Z debug: [spendTokens] No transactions incurred against balance
2025-04-16T02:11:47.339Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2025-04-16T02:11:47.551Z debug: [AgentController] Request closed
2025-04-16T02:11:49.285Z debug: [saveConvo] api/server/services/Endpoints/agents/title.js
2025-04-16T02:11:50.889Z debug: [AgentController] Title generation started
2025-04-16T02:11:50.889Z debug: [AgentController] Title generation completed
2025-04-16T02:11:50.890Z debug: [AgentController] Performing cleanup
2025-04-16T02:11:50.890Z debug: [AgentController] Cleaning up abort controller
2025-04-16T02:11:50.890Z debug: [AgentController] Cleanup completed
` ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
On the latest version of LibreChat: Make sure file search is toggled for this agent. Also, if you have the right capabilities configured: endpoints:
agents:
# at minimum, you need `file_search` or leave this out to enable all capabilities
capabilities: ["file_search"] |
Beta Was this translation helpful? Give feedback.
On the latest version of LibreChat:
Make sure file search is toggled for this agent. Also, if you have the right capabilities configured: