-
Notifications
You must be signed in to change notification settings - Fork 271
Add LiteLLM embedding model support to RAG retriever #1920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
df221a1
Add LiteLLM embedding model support to RAG retriever
arash77 976ac5f
Fix flake8 E203 whitespace before ':' in rag_retriever
arash77 58d6009
Address review: hide admin data-table details from user-facing text
arash77 289a85c
Use OpenAIEmbedding for LiteLLM proxy and simplify embed config
arash77 a63ad16
Update tools/rag/rag_retriever.xml
arash77 6432822
Set domain=embedding in huggingface.loc.sample for consistency
arash77 f1e9c8c
rag_retriever: attribute embedding requests to the Galaxy user
arash77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| #This is a sample file distributed with Galaxy that is used to define litellm | ||
| #embedding models, using 6 columns tab separated | ||
| #(longer whitespace are TAB characters): | ||
| # | ||
| #The entries are as follows: | ||
| # | ||
| #<value> <model_id> <name> <domain> <provider> <free_tag> | ||
| # | ||
| #value: Unique identifier for the dropdown selection | ||
| #model_id: The actual model identifier to send to the LiteLLM /v1/embeddings endpoint | ||
| #name: Display name shown to users in the Galaxy interface | ||
| #domain: Model type - must be "embedding" for the RAG Retriever to surface the entry | ||
| #provider: Server identifier matching a key in the servers section of your YAML config | ||
| #free_tag: Optional tag that can be freely used by admins to specify additional filter options | ||
| # | ||
| #These are the same genai_models table used by the LLM Hub (tools/llm_hub); the | ||
| #RAG Retriever reads only the domain=embedding entries. Generation-model examples | ||
| #(text, image, multimodal) live in tools/llm_hub/tool-data/genai_models.loc.sample. | ||
| # | ||
| #Examples: | ||
| # | ||
| #bge-m3-llmlb-freiburg bge-m3-llmlb Multilingual embedding model with strong retrieval performance, 1024 dimensions (BGE-M3) [uni-freiburg] embedding uni-freiburg BAAI | ||
| #qwen3-embedding-4b-freiburg qwen3-embedding-4b High-quality multilingual embedding model, 2560 dimensions (Qwen3-Embedding-4B) [uni-freiburg] embedding uni-freiburg Alibaba Cloud | ||
| #qwen3-embedding-4b-e-infra.cz qwen3-embedding-4b High-quality multilingual embedding model, 2560 dimensions (Qwen3-Embedding-4B) [e-INFRA CZ] embedding e-infra.cz Alibaba Cloud | ||
| #multilingual-e5-large-instruct-e-infra.cz multilingual-e5-large-instruct Instruct-tuned multilingual embedding model (Multilingual-E5-Large-Instruct) [e-INFRA CZ] embedding e-infra.cz Microsoft | ||
| #nomic-embed-text-v2-moe-e-infra.cz nomic-embed-text-v2-moe Mixture-of-experts text embedding model with long context (Nomic-Embed-Text-v2-MoE) [e-INFRA CZ] embedding e-infra.cz Nomic | ||
| #nomic-embed-text-v1.5-e-infra.cz nomic-embed-text-v1.5 Lightweight and efficient text embedding model (Nomic-Embed-Text-v1.5) [e-INFRA CZ] embedding e-infra.cz Nomic | ||
| #mxbai-embed-large-e-infra.cz mxbai-embed-large:latest Large-scale embedding model with strong retrieval performance (Mixedbread-Embed-Large) [e-INFRA CZ] embedding e-infra.cz Mixedbread AI | ||
| # | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,35 @@ | ||
| # Sample file for Galaxy HuggingFace model entries. | ||
| # Columns are TAB-separated: | ||
| # This is a sample file distributed with Galaxy that is used to register local | ||
| # HuggingFace embedding models for the RAG Retriever, using 7 tab-separated columns. | ||
| # Lines starting with "#" are ignored by Galaxy. | ||
| # | ||
| # <unique_build_id> <display_name> <pipeline_tag> <domain> <free_tag> <version> <folder_base_path> | ||
| # The RAG Retriever reuses the shared "huggingface" data table (also consumed by the | ||
| # tabpfn and flux tools). Each tool family selects its own rows via the free_tag column, | ||
| # so embedding models do not collide with models registered for other tools. | ||
| # | ||
| # For this tool, embedding models can be registered here and selected via the existing | ||
| # Galaxy "huggingface" data table. Use free_tag=vector-rag to make models visible to | ||
| # the RAG retriever tool. | ||
| # Columns (TAB-separated): | ||
| # value name pipeline_tag domain free_tag version path | ||
| # | ||
| # value Unique row ID across the whole huggingface.loc table | ||
| # name Human-readable label shown in the Galaxy select widget | ||
| # pipeline_tag Official HuggingFace pipeline tag; text embedding models use | ||
| # "feature-extraction" | ||
| # (https://huggingface.co/models?pipeline_tag=feature-extraction) | ||
| # domain Coarse model family (embedding / text / image / tabular / ...); | ||
| # set this to "embedding" for text embedding models, consistent with | ||
| # the genai_models table used by the LiteLLM path of this tool | ||
| # free_tag Per-tool-family namespace used as the primary XML filter; | ||
| # RAG Retriever rows use "vector-rag" | ||
| # version Tool version these rows belong to; used as a secondary XML filter | ||
| # path Path to the downloaded model directory on this server | ||
| # | ||
| # Administrators: copy this file to your Galaxy tool-data directory as "huggingface.loc" | ||
| # and update each path to point to the actual model directory. Models can be downloaded | ||
| # with download_embeddings.py (shipped with this tool) or directly from HuggingFace. | ||
| # | ||
| # For the full shared schema reference see: | ||
| # https://galaxyproject.org/news/2026-04-13-huggingface-data-table/ | ||
| # | ||
| # Example entries for embedding models: | ||
| # | ||
| # sentence-transformers/all-MiniLM-L6-v2 all-MiniLM-L6-v2 feature-extraction text vector-rag 1 /path/to/huggingface_models/sentence-transformers/all-MiniLM-L6-v2 | ||
| # BAAI/bge-small-en BAAI bge-small-en feature-extraction text vector-rag 1 /path/to/huggingface_models/BAAI/bge-small-en | ||
| # sentence-transformers/all-MiniLM-L6-v2 all-MiniLM-L6-v2 feature-extraction embedding vector-rag 1 /path/to/huggingface_models/sentence-transformers/all-MiniLM-L6-v2 | ||
| # BAAI/bge-small-en BAAI bge-small-en feature-extraction embedding vector-rag 1 /path/to/huggingface_models/BAAI/bge-small-en |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.