I have searched the existing issues and discussions.
I am using the latest version of Open WebUI.
Installation Method
Docker
Open WebUI Version
0.6.4
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
I have read and followed all instructions in README.md.
I am using 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 listed steps to reproduce the bug in detail.
Expected Behavior
The RAG_TEMPLATE is not applied to documents retrieved by tools. Modifying the RAG_TEMPLATE to include debugging instructions or other changes does not affect the output when documents are retrieved using a tool.
Actual Behavior
The RAG_TEMPLATE is not applied to documents retrieved by tools. Modifying the RAG_TEMPLATE to include debugging instructions or other changes does not affect the output when documents are retrieved using a tool.
Steps to Reproduce
Configure a tool to retrieve documents.
Modify the RAG_TEMPLATE to include a debugging instruction or a noticeable change.
Execute the tool and observe the output and subsequent assistant response.
Verify that the RAG_TEMPLATE changes are not reflected in the assistant response.
In addition the inlet Filter only apply before tool execution, there is no way to apply a filter between the tool and the next assistant response.
Originally created by @jfouret on GitHub (Apr 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12926
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### Installation Method
Docker
### Open WebUI Version
0.6.4
### Ollama Version (if applicable)
_No response_
### Operating System
Ubuntu 22.04
### Browser (if applicable)
_No response_
### Confirmation
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have listed steps to reproduce the bug in detail.
### Expected Behavior
The `RAG_TEMPLATE` is not applied to documents retrieved by tools. Modifying the `RAG_TEMPLATE` to include debugging instructions or other changes does not affect the output when documents are retrieved using a tool.
### Actual Behavior
The `RAG_TEMPLATE` is not applied to documents retrieved by tools. Modifying the `RAG_TEMPLATE` to include debugging instructions or other changes does not affect the output when documents are retrieved using a tool.
### Steps to Reproduce
- Configure a tool to retrieve documents.
- Modify the `RAG_TEMPLATE` to include a debugging instruction or a noticeable change.
- Execute the tool and observe the output and subsequent assistant response.
- Verify that the `RAG_TEMPLATE` changes are not reflected in the assistant response.
### Logs & Screenshots
Debug message

With web search

With a Tool:


https://github.com/jfouret/openwebui-modules/blob/main/tools/europepmc_fetcher.py
### Additional Information
In addition the inlet Filter only apply before tool execution, there is no way to apply a filter between the tool and the next assistant response.
GiteaMirror
added the bug label 2026-05-13 03:19:23 -05:00
Ideally we would have the possibility to directly modify/add messages within the tool
<!-- gh-comment-id:2809758378 -->
@jfouret commented on GitHub (Apr 16, 2025):
Ideally we would have the possibility to directly modify/add messages within the tool
Pipe is the solution to directly modify/add messages within the tool. This is true I am sorry I am quite new using this (2days).
Or the fact that the RAG_TEMPLATE does not apply to the citations added by a tool is expected, and to apply the RAG_TEMPLATE myself via a pipe that would detect citations ?
Or both ?
Bests,
<!-- gh-comment-id:2810015144 -->
@jfouret commented on GitHub (Apr 16, 2025):
thank you,
I just wonder what do you mean by "this".
- 1. Pipe is the solution to directly modify/add messages within the tool. This is true I am sorry I am quite new using this (2days).
- 2. Or the fact that the `RAG_TEMPLATE` does not apply to the citations added by a tool is expected, and to apply the `RAG_TEMPLATE` myself via a pipe that would detect citations ?
Or both ?
Bests,
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 @jfouret on GitHub (Apr 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12926
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.4
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The
RAG_TEMPLATEis not applied to documents retrieved by tools. Modifying theRAG_TEMPLATEto include debugging instructions or other changes does not affect the output when documents are retrieved using a tool.Actual Behavior
The
RAG_TEMPLATEis not applied to documents retrieved by tools. Modifying theRAG_TEMPLATEto include debugging instructions or other changes does not affect the output when documents are retrieved using a tool.Steps to Reproduce
RAG_TEMPLATEto include a debugging instruction or a noticeable change.RAG_TEMPLATEchanges are not reflected in the assistant response.Logs & Screenshots
Debug message




With web search
With a Tool:
https://github.com/jfouret/openwebui-modules/blob/main/tools/europepmc_fetcher.py
Additional Information
In addition the inlet Filter only apply before tool execution, there is no way to apply a filter between the tool and the next assistant response.
@jfouret commented on GitHub (Apr 16, 2025):
Ideally we would have the possibility to directly modify/add messages within the tool
@tjbck commented on GitHub (Apr 16, 2025):
You should use a Pipe Function for this and not a tool.
@jfouret commented on GitHub (Apr 16, 2025):
thank you,
I just wonder what do you mean by "this".
RAG_TEMPLATEdoes not apply to the citations added by a tool is expected, and to apply theRAG_TEMPLATEmyself via a pipe that would detect citations ?Or both ?
Bests,