Repository navigation
Fix: Correct Gemini embedding model name in llm_factories.json - #13051
Merged
Merged
Conversation
writinwaters
pushed a commit
to writinwaters/ragflow
that referenced
this pull request
Apr 10, 2026
…iflow#13051) ## Problem RAGFlow was using incorrect model names for Google Gemini embeddings: - `embedding-001` (missing `gemini-` prefix) - `text-embedding-004` (OpenAI model name, not Gemini) This caused API errors when users tried to use Gemini embeddings. ## Solution - Updated `conf/llm_factories.json` to use the correct model name: `gemini-embedding-001` - Removed the incorrect `text-embedding-004` entry - Added volume mount in `docker-compose.yml` to ensure config changes persist ## Testing Tested with a valid Gemini API key and confirmed embeddings now work correctly. ## Changes - Modified `conf/llm_factories.json` - Modified `docker/docker-compose.yml` --------- Co-authored-by: Ahmad Intisar <[email protected]> Co-authored-by: Kevin Hu <[email protected]>
JasleenKaurSethi
pushed a commit
to stackhpc/ragflow
that referenced
this pull request
Apr 28, 2026
…iflow#13051) ## Problem RAGFlow was using incorrect model names for Google Gemini embeddings: - `embedding-001` (missing `gemini-` prefix) - `text-embedding-004` (OpenAI model name, not Gemini) This caused API errors when users tried to use Gemini embeddings. ## Solution - Updated `conf/llm_factories.json` to use the correct model name: `gemini-embedding-001` - Removed the incorrect `text-embedding-004` entry - Added volume mount in `docker-compose.yml` to ensure config changes persist ## Testing Tested with a valid Gemini API key and confirmed embeddings now work correctly. ## Changes - Modified `conf/llm_factories.json` - Modified `docker/docker-compose.yml` --------- Co-authored-by: Ahmad Intisar <[email protected]> Co-authored-by: Kevin Hu <[email protected]>
tmimmanuel
pushed a commit
to tmimmanuel/ragflow
that referenced
this pull request
May 14, 2026
…iflow#13051) ## Problem RAGFlow was using incorrect model names for Google Gemini embeddings: - `embedding-001` (missing `gemini-` prefix) - `text-embedding-004` (OpenAI model name, not Gemini) This caused API errors when users tried to use Gemini embeddings. ## Solution - Updated `conf/llm_factories.json` to use the correct model name: `gemini-embedding-001` - Removed the incorrect `text-embedding-004` entry - Added volume mount in `docker-compose.yml` to ensure config changes persist ## Testing Tested with a valid Gemini API key and confirmed embeddings now work correctly. ## Changes - Modified `conf/llm_factories.json` - Modified `docker/docker-compose.yml` --------- Co-authored-by: Ahmad Intisar <[email protected]> Co-authored-by: Kevin Hu <[email protected]>
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.
Problem
RAGFlow was using incorrect model names for Google Gemini embeddings:
embedding-001(missinggemini-prefix)text-embedding-004(OpenAI model name, not Gemini)This caused API errors when users tried to use Gemini embeddings.
Solution
conf/llm_factories.jsonto use the correct model name:gemini-embedding-001text-embedding-004entrydocker-compose.ymlto ensure config changes persistTesting
Tested with a valid Gemini API key and confirmed embeddings now work correctly.
Changes
conf/llm_factories.jsondocker/docker-compose.yml