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 jina module not find bug (#1779)
黄腾4ba1ba973ada
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.pyindex e021b9ddae..303be41c68 100644--- a/rag/llm/chat_model.py+++ b/rag/llm/chat_model.py@@ -28,7 +28,6 @@ import osimport jsonimport requestsimport asyncio-from rag.svr.jina_server import Prompt,Generationclass Base(ABC):def __init__(self, key, model_name, base_url):@@ -413,6 +412,7 @@ class LocalLLM(Base):self.client = Client(port=12345, protocol="grpc", asyncio=True)def _prepare_prompt(self, system, history, gen_conf):+ from rag.svr.jina_server import Prompt,Generationif system:history.insert(0, {"role": "system", "content": system})if "max_tokens" in gen_conf:@@ -420,6 +420,7 @@ class LocalLLM(Base):return Prompt(message=history, gen_conf=gen_conf)def _stream_response(self, endpoint, prompt):+ from rag.svr.jina_server import Prompt,Generationanswer = ""try:res = self.client.stream_doc(