mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-28 03:38:11 +08:00
Fix: Correct Gemini embedding model name in llm_factories.json (#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 <ahmadintisar@Ahmads-MacBook-M4-Pro.local> Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in: