Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Wrong_Input_type_for_Gemin (#8783)

Stephen Hu07208e519bf6
diff --git a/rag/llm/cv_model.py b/rag/llm/cv_model.py
index fbccd5dffc..5303dfca05 100644
--- a/rag/llm/cv_model.py
+++ b/rag/llm/cv_model.py
@@ -629,7 +629,7 @@ class GeminiCV(Base):
from PIL.Image import open
b64 = self.image2base64(image)
- vision_prompt = self.vision_llm_prompt(b64, prompt) if prompt else self.vision_llm_prompt(b64)
+ vision_prompt = prompt if prompt else vision_llm_describe_prompt()
img = open(BytesIO(base64.b64decode(b64)))
input = [vision_prompt, img]
res = self.model.generate_content(