[GH-ISSUE #774] feat: expose rag API #27737

Closed
opened 2026-04-25 02:29:09 -05:00 by GiteaMirror · 4 comments
Owner

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

Originally assigned to: @tjbck on GitHub.

I know that the webui has a way to allow passthrough for the Ollama API, so would it be possible to add an extra parameter to - the API to allow users to reference RAG documents or URLs in their call? Of course being handled by the webui before passing it onto Ollama. If I have time I will also help with the coding side of this and submit a PR.

Thank you!!

Originally created by @nick-tonjum on GitHub (Feb 17, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/774 Originally assigned to: @tjbck on GitHub. I know that the webui has a way to allow passthrough for the Ollama API, so would it be possible to add an extra parameter to - the API to allow users to reference RAG documents or URLs in their call? Of course being handled by the webui before passing it onto Ollama. If I have time I will also help with the coding side of this and submit a PR. Thank you!!
Author
Owner

@mattfusf commented on GitHub (May 5, 2024):

Is there any documentation on how to call this?

<!-- gh-comment-id:2094524570 --> @mattfusf commented on GitHub (May 5, 2024): Is there any documentation on how to call this?
Author
Owner

@pnmartinez commented on GitHub (Aug 11, 2024):

Hello @mattfusf @nick-tonjum

Apparently the RAG API is now documented on its own on Swagger, see it as the last entry in the docs: https://docs.openwebui.com/features/#-swagger-documentation

The link should be sth like http://localhost:3000/rag/api/v1/docs. If I work out something more helpful I'll post back.

<!-- gh-comment-id:2282726114 --> @pnmartinez commented on GitHub (Aug 11, 2024): Hello @mattfusf @nick-tonjum Apparently the RAG API is now documented on its own on Swagger, see it as the last entry in the docs: https://docs.openwebui.com/features/#-swagger-documentation The link should be sth like `http://localhost:3000/rag/api/v1/docs`. If I work out something more helpful I'll post back.
Author
Owner

@kw1c-TimoCorstjens commented on GitHub (Aug 23, 2024):

Any progress on this?

<!-- gh-comment-id:2306913905 --> @kw1c-TimoCorstjens commented on GitHub (Aug 23, 2024): Any progress on this?
Author
Owner

@justinh-rahb commented on GitHub (Aug 25, 2024):

Any progress on this?

@kw1c-TimoCorstjens been exposed for months. https://docs.openwebui.com/features#-swagger-documentation

<!-- gh-comment-id:2308861671 --> @justinh-rahb commented on GitHub (Aug 25, 2024): > Any progress on this? @kw1c-TimoCorstjens been exposed for months. https://docs.openwebui.com/features#-swagger-documentation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#27737