mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #12477] [MERGED] fix: more coherent default RAG template #22925
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12477
Author: @Ithanil
Created: 4/5/2025
Status: ✅ Merged
Merged: 4/5/2025
Merged by: @tjbck
Base:
dev← Head:improved_rag_template📝 Commits (1)
e0da600tweak default rag template to be more coherent and improve consistency with citations📊 Changes
1 file changed (+5 additions, -5 deletions)
View changed files
📝
backend/open_webui/config.py(+5 -5)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
I think the previous default RAG template was sometimes misleading LLMs due to the following issues:
<source>tags andidattributes, later it talked about<source_id>tags which do not exist. The new template is consistent in that regard[source_id]although it wasn't exactly clear whatsource_idis (due to 1)). The new template instructs to cite like[id], which should be unambiguous.Fixed
Breaking changes
Additional Information
Discussion https://github.com/open-webui/open-webui/discussions/10456
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.