[GH-ISSUE #1154] feat: Attach RAG documents to ModelFiles #51030

Closed
opened 2026-05-05 11:47:15 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @nick-tonjum on GitHub (Mar 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1154

Good afternoon!
I had a great idea when playing with ModelFiles in the webui.

What if it were possible to attach RAG documents (or a group of RAG documents) to a modelfile? I know a lot of work would have to be put into this because ollama doesn't support this directly, but I think it could be done. It would be nice to have a model file that would just always have a rag document attached to it when conversing with it, rather than including all my data in the system prompt or manually attaching a document every time I ask it a question.

For example, I could make a modelfile that's based on mixtral or something but has a RAG document attached to it with a big essay about my life or whatever, and anyone who asks the model a question about me would get an answer from it utilizing RAG. This would also be nice if this worked through the API as well.

Originally created by @nick-tonjum on GitHub (Mar 13, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/1154 Good afternoon! I had a great idea when playing with ModelFiles in the webui. What if it were possible to attach RAG documents (or a group of RAG documents) to a modelfile? I know a lot of work would have to be put into this because ollama doesn't support this directly, but I think it could be done. It would be nice to have a model file that would just always have a rag document attached to it when conversing with it, rather than including all my data in the system prompt or manually attaching a document every time I ask it a question. For example, I could make a modelfile that's based on mixtral or something but has a RAG document attached to it with a big essay about my life or whatever, and anyone who asks the model a question about me would get an answer from it utilizing RAG. This would also be nice if this worked through the API as well.
Author
Owner

@tjbck commented on GitHub (Mar 13, 2024):

Duplicate: #529

<!-- gh-comment-id:1995503055 --> @tjbck commented on GitHub (Mar 13, 2024): Duplicate: #529
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#51030