Skip to content

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

Fix:wrong describe_with_prompt() in ollama (#10963)

buua4362d83c64eedf0
diff --git a/rag/llm/cv_model.py b/rag/llm/cv_model.py
index c0f90807d1..9ea9459073 100644
--- a/rag/llm/cv_model.py
+++ b/rag/llm/cv_model.py
@@ -539,7 +539,7 @@ class OllamaCV(Base):
try:
response = self.client.generate(
model=self.model_name,
- prompt=vision_prompt[0]["content"][0]["text"],
+ prompt=vision_prompt[0]["content"],
images=[image],
)
ans = response["response"].strip()