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
2、create KB
3、use model as deepseek-R1
4、ask question and response
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

2、create KB
3、use model as deepseek-R1
4、ask question and response


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!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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:
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
2、create KB
3、use model as deepseek-R1
4、ask question and response
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!
@ericXu08 commented on GitHub (Mar 5, 2025):
please help me to look this issue, really appreciate that.