[GH-ISSUE #923] feat: editable k value for RAG #12253

Closed
opened 2026-04-19 19:08:14 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Venkman42 on GitHub (Feb 26, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/923

Originally assigned to: @tjbck on GitHub.

Could you add a setting to the document settings to set the amount of text snippets that get used in the context?
Is it only one right now?

And it would be great to be able to see the full RAG text for troubleshooting. Answering RAG questions is really slow for me right now, would be great if could see what was inserted as context in the conversation

Originally created by @Venkman42 on GitHub (Feb 26, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/923 Originally assigned to: @tjbck on GitHub. Could you add a setting to the document settings to set the amount of text snippets that get used in the context? Is it only one right now? And it would be great to be able to see the full RAG text for troubleshooting. Answering RAG questions is really slow for me right now, would be great if could see what was inserted as context in the conversation
Author
Owner

@jannikstdl commented on GitHub (Feb 27, 2024):

Seems like at the moment it is hardcoded to 4:
k: Optional[int] = 4 in RAG main.py

For now you can see the snippets sent to the LLM for RAG in the browser console after sending your request.

<!-- gh-comment-id:1966456831 --> @jannikstdl commented on GitHub (Feb 27, 2024): Seems like at the moment it is hardcoded to 4: `k: Optional[int] = 4` in RAG main.py For now you can see the snippets sent to the LLM for RAG in the browser console after sending your request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#12253