RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: correct single base64 image handling in image prompt (#9220)
Yongteng Lei30ccc4a66caa
diff --git a/rag/llm/cv_model.py b/rag/llm/cv_model.pyindex 0f1aa386da..5f487576e0 100644--- a/rag/llm/cv_model.py+++ b/rag/llm/cv_model.py@@ -59,6 +59,10 @@ class Base(ABC):def _image_prompt(self, text, images):if not images:return text++ if isinstance(images, str):+ images = [images]+pmpt = [{"type": "text", "text": text}]for img in images:pmpt.append({@@ -795,4 +799,4 @@ class GoogleCV(AnthropicCV, GeminiCV):yield anselse:for ans in GeminiCV.chat_streamly(self, system, history, gen_conf, images):- yield ans\ No newline at end of file+ yield ans