Open-WebUI API Works with Normal Models but Fails with Knowledge/RAG Database on Other OpenAI-Compatible Clients #3242

Closed
opened 2025-11-11 15:26:37 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @bpawnzZ on GitHub (Jan 10, 2025).

Hi everyone,

I’m currently setting up Open-WebUI’s API and running into an issue. The API works perfectly with normal models when accessed through other OpenAI-compatible clients (such as Cline or ChatboxAI). However, when I attach a knowledge/RAG database to the API, I encounter the following error:

Cannot read properties of undefined (reading '0')  

This error occurs consistently across multiple client applications (except Open-WebUI itself), suggesting an issue with how the API handles the knowledge/RAG database in non-Open-WebUI clients.

To reproduce:

  1. Set up a working Open-WebUI API endpoint with a normal model (no knowledge/RAG database).
    • Verify that it works with other clients like Cline or ChatboxAI.
  2. Attach a knowledge/RAG database to the API.
  3. Attempt to connect it to Cline or ChatboxAI again.
  4. Observe the error mentioned above.

I’ve confirmed that the API works fine with curl in the terminal and can connect to other Open-WebUI instances without issues, even with the knowledge/RAG database attached.

Has anyone else experienced this or have any insights into why this might be happening? Any suggestions or potential solutions would be greatly appreciated!

Thank you in advance for your help!

Originally created by @bpawnzZ on GitHub (Jan 10, 2025). Hi everyone, I’m currently setting up Open-WebUI’s API and running into an issue. The API works perfectly with normal models when accessed through other OpenAI-compatible clients (such as Cline or [ChatboxAI](https://web.chatboxai.app)). However, when I attach a knowledge/RAG database to the API, I encounter the following error: ``` Cannot read properties of undefined (reading '0') ``` This error occurs consistently across multiple client applications (except Open-WebUI itself), suggesting an issue with how the API handles the knowledge/RAG database in non-Open-WebUI clients. To reproduce: 1. Set up a working Open-WebUI API endpoint with a normal model (no knowledge/RAG database). - Verify that it works with other clients like Cline or ChatboxAI. 2. Attach a knowledge/RAG database to the API. 3. Attempt to connect it to Cline or ChatboxAI again. 4. Observe the error mentioned above. I’ve confirmed that the API works fine with `curl` in the terminal and can connect to other Open-WebUI instances without issues, even with the knowledge/RAG database attached. Has anyone else experienced this or have any insights into why this might be happening? Any suggestions or potential solutions would be greatly appreciated! Thank you in advance for your help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3242