Added support for external RAG ingestion and retrieval - #55
Open
cableman wants to merge 1 commit into
Open
Conversation
Delegates the RAG pipeline to external services instead of running it in-process: - Ingestion: when EXTERNAL_INGESTION_ENGINE=external, uploaded files are sent to the ingestion service (S3 reference or multipart), which handles text extraction, chunking, embedding and vector storage. File deletes notify the service so vectors don't outlive the file (best-effort, never blocks the user's delete). - Retrieval: when RAG_RETRIEVAL_ENGINE=external, document search goes to the retrieval service instead of the built-in vector DB, on both the chat files path and the native function calling path (query_knowledge_files). Optionally bypasses local query generation and forwards the recent conversation so the service can generate its own queries (RAG_EXTERNAL_MESSAGE_COUNT / USER_MESSAGES_ONLY). - Admin UI for both engines under Settings > Documents. Both engines are off by default; behaviour is unchanged from stock open-webui unless enabled. See https://github.com/AarhusAI/ingestion-service and https://github.com/AarhusAI/retrieval-agent.
jekuaitk
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Delegates the RAG pipeline to external services instead of running it in-process:
See https://github.com/AarhusAI/ingestion-service and https://github.com/AarhusAI/retrieval-agent.