Generalize ENABLE_RAG_HYBRID_SEARCH description#1269
Merged
Classic298 merged 3 commits intoMay 28, 2026
Conversation
Adds user_prompt, system_prompt, sources to the __metadata__ example. Expands __event_emitter__ to cover custom type forwarding through socket.io.
…-and-event-emitter-fields fix: add __metadata__ fields and __event_emitter__ custom types
Updates the ENV configuration description for `ENABLE_RAG_HYBRID_SEARCH`: - Change "ensemble search" to "hybrid search" to match env variable name - Generalize "ChromaDB" to "configured vector store" since hybrid search is not ChromaDB specific - Generalize `sentence_transformers` since hybrid search works on more than just the default `sentence_transformers` models. - Since reranking is optional (the code passes `reranking_function=None` when `RERANKING_FUNCTION` isn't configured), and it can be any encoder (not just `sentence_transformers`, generalizes reference.
Collaborator
|
lgtm |
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.
Updates the ENV configuration description for
ENABLE_RAG_HYBRID_SEARCH:sentence_transformerssince hybrid search works on more than just the defaultsentence_transformersmodels.reranking_function=NonewhenRERANKING_FUNCTIONisn't configured), and it can be any encoder (not justsentence_transformers, generalizes reference.Relevant code
https://github.com/open-webui/open-webui/blob/3660bc00fd807deced3400a63bfa6db47811a3bb/backend/open_webui/retrieval/utils.py#L527-L552