[GH-ISSUE #11204] RAG reference source id always 0 #16143

Closed
opened 2026-04-19 22:09:17 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ericXu08 on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11204

Bug Report

Installation Method

anaconda pip install

Environment

  • Open WebUI Version: [v0.5.18]

  • Ollama (if applicable): [0.5.7]

  • Operating System: [Windows 10]

  • Browser (if applicable): [Chrome 135.0.7039.0]

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

when i use rag to ask question, the response should return the keypoint with the correct reference souce name(in this case it should be file name)

Actual Behavior:

when i use rag to ask question, the response return the keypoint always with souce id =0,which always indicator the first file.

Description

Bug Summary:
RAG reference source id always 0

Reproduction Details

Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
1、configure the document embedding
Image
2、create KB

3、use model as deepseek-R1

4、ask question and response

Image

Image

the response content is correct but reference source is wrong, actually it should reference the second file

Logs and Screenshots

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:
[Include relevant Docker container logs, if applicable]

Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

Additional Information

[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @ericXu08 on GitHub (Mar 5, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/11204 # Bug Report ## Installation Method anaconda pip install ## Environment - **Open WebUI Version:** [v0.5.18] - **Ollama (if applicable):** [0.5.7] - **Operating System:** [Windows 10] - **Browser (if applicable):** [Chrome 135.0.7039.0] **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: when i use rag to ask question, the response should return the keypoint with the correct reference souce name(in this case it should be file name) ## Actual Behavior: when i use rag to ask question, the response return the keypoint always with souce id =0,which always indicator the first file. ## Description **Bug Summary:** RAG reference source id always 0 ## Reproduction Details **Steps to Reproduce:** [Outline the steps to reproduce the bug. Be as detailed as possible.] 1、configure the document embedding ![Image](https://github.com/user-attachments/assets/ab0486a1-7343-4356-897b-6e1bf347cdce) 2、create KB 3、use model as deepseek-R1 4、ask question and response ![Image](https://github.com/user-attachments/assets/64e1f7c7-0a07-4d2b-bb81-0a41c9516b80) ![Image](https://github.com/user-attachments/assets/7c8225a5-6fbc-4b1b-b0d6-5ab85b9254a0) the response content is correct but reference source is wrong, actually it should reference the second file ## Logs and Screenshots **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** [Include relevant Docker container logs, if applicable] **Screenshots/Screen Recordings (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## Additional Information [Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.] ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Author
Owner

@ericXu08 commented on GitHub (Mar 5, 2025):

please help me to look this issue, really appreciate that.

<!-- gh-comment-id:2699962403 --> @ericXu08 commented on GitHub (Mar 5, 2025): please help me to look this issue, really appreciate that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16143