Skip to content

Fix: Correct Gemini embedding model name in llm_factories.json - #13051

Merged
KevinHuSh merged 5 commits into
infiniflow:mainfrom
Attili-sys:gemini-embedding-fix
Feb 11, 2026
Merged

KevinHuSh merged 5 commits into
infiniflow:mainfrom
Attili-sys:gemini-embedding-fix

Conversation

@ahmadintisar

Copy link
Copy Markdown
Contributor

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

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Feb 8, 2026
@KevinHuSh KevinHuSh added ci Continue Integration and removed ci Continue Integration labels Feb 9, 2026
@KevinHuSh KevinHuSh added the ci Continue Integration label Feb 11, 2026
@KevinHuSh
KevinHuSh merged commit 99ed8e7 into infiniflow:main Feb 11, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants