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(dify): add GET method support to /dify/retrieval for health check (#13837)
黄圣祺415169d49772
diff --git a/api/apps/sdk/dify_retrieval.py b/api/apps/sdk/dify_retrieval.pyindex ab0e126269..05885c380b 100644--- a/api/apps/sdk/dify_retrieval.py+++ b/api/apps/sdk/dify_retrieval.py@@ -29,7 +29,7 @@ from api.db.services.knowledgebase_service import KnowledgebaseServicefrom api.db.services.llm_service import LLMBundlefrom api.db.joint_services.tenant_model_service import get_model_config_by_id, get_model_config_by_type_and_name, get_tenant_default_model_by_typefrom common.metadata_utils import meta_filter, convert_conditions-from api.utils.api_utils import apikey_required, build_error_result, get_request_json+from api.utils.api_utils import apikey_required, build_error_result, get_request_json, get_json_resultfrom rag.app.tag import label_questionfrom common.constants import RetCode, LLMTypefrom common import settings@@ -311,3 +311,10 @@ async def retrieval(tenant_id):)logging.exception(e)return build_error_result(message=str(e), code=RetCode.SERVER_ERROR)++[email protected]('/dify/retrieval', methods=['GET']) # noqa: F821+async def retrieval_health_check():+ """Health check endpoint for Dify external knowledge base connectivity verification."""+ return get_json_result(data=True)+