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 batch size error for qianwen embedding (#2431)
Kevin Hu3044cb85fd82
diff --git a/rag/llm/embedding_model.py b/rag/llm/embedding_model.pyindex fac954da75..221fea198a 100644--- a/rag/llm/embedding_model.py+++ b/rag/llm/embedding_model.py@@ -155,6 +155,7 @@ class QWenEmbed(Base):def encode(self, texts: list, batch_size=10):import dashscope+ batch_size = min(batch_size, 4)try:res = []token_count = 0