[GH-ISSUE #10874] BUG: Incorrect source_idx assignment in full context mode with search enabled #16061

Closed
opened 2026-04-19 22:05:39 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @leantli on GitHub (Feb 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10874

Bug Report

Installation Method

When using full context mode with search enabled, the system generates 1-3 query terms to search.
Each query term can return multiple websites (e.g., if 1 query term returns 3 websites, then 3 query terms could return 9 websites total).

Expected behavior: Each website should be assigned a unique source_idx.

Current behavior: All websites returned from the same query are assigned the same source_idx.

Impact: This causes the model to misunderstand during inference since it cannot properly distinguish between different sources.

Environment

  • Open WebUI Version: 0.5.16

  • Operating System: macOS Big Sur

  • Browser (if applicable): Chrome

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.

Screenshots/Screen Recordings (if applicable):

Image

Image Image

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 @leantli on GitHub (Feb 27, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/10874 # Bug Report ## Installation Method When using full context mode with search enabled, the system generates 1-3 query terms to search. Each query term can return multiple websites (e.g., if 1 query term returns 3 websites, then 3 query terms could return 9 websites total). Expected behavior: Each website should be assigned a unique source_idx. Current behavior: All websites returned from the same query are assigned the same source_idx. Impact: This causes the model to misunderstand during inference since it cannot properly distinguish between different sources. ## Environment - **Open WebUI Version:** 0.5.16 - **Operating System:** macOS Big Sur - **Browser (if applicable):** Chrome **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. - [x] 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. **Screenshots/Screen Recordings (if applicable):** ![Image](https://github.com/user-attachments/assets/1a5d1274-91db-46b3-ba7b-b48922340a49) <img width="1309" alt="Image" src="https://github.com/user-attachments/assets/2f16dafa-d32d-489c-8ea0-7c99e49beb75" /> <img width="1223" alt="Image" src="https://github.com/user-attachments/assets/a490b135-37ce-4c0f-b200-3d5d91a4e7ce" /> ## 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16061