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: Add pagerank validation for non-elasticsearch doc engines (#8215)
Liu And0c5ff04a67d
diff --git a/api/apps/kb_app.py b/api/apps/kb_app.pyindex ce118b2c29..99933493e1 100644--- a/api/apps/kb_app.py+++ b/api/apps/kb_app.py@@ -124,6 +124,9 @@ def update():return get_data_error_result()if kb.pagerank != req.get("pagerank", 0):+ if os.environ.get("DOC_ENGINE", "elasticsearch") != "elasticsearch":+ return get_data_error_result(message="'pagerank' can only be set when doc_engine is elasticsearch")+if req.get("pagerank", 0) > 0:settings.docStoreConn.update({"kb_id": kb.id}, {PAGERANK_FLD: req["pagerank"]},search.index_name(kb.tenant_id), kb.id)