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
add quota config in dialog conf (#339)
KevinHuShbc6828c45fd6
diff --git a/api/apps/chunk_app.py b/api/apps/chunk_app.pyindex 0458160b28..b3cf11aa1d 100644--- a/api/apps/chunk_app.py+++ b/api/apps/chunk_app.py@@ -60,7 +60,7 @@ def list():for id in sres.ids:d = {"chunk_id": id,- "content_with_weight": rmSpace(sres.highlight[id]) if question else sres.field[id].get(+ "content_with_weight": rmSpace(sres.highlight[id]) if question and id in sres.highlight else sres.field[id].get("content_with_weight", ""),"doc_id": sres.field[id]["doc_id"],"docnm_kwd": sres.field[id]["docnm_kwd"],diff --git a/api/apps/conversation_app.py b/api/apps/conversation_app.pyindex 8c42c804bf..1d9894383b 100644--- a/api/apps/conversation_app.py+++ b/api/apps/conversation_app.py@@ -241,7 +241,7 @@ def chat(dialog, messages, **kwargs):chat_logger.info("User: {}|Assistant: {}".format(msg[-1]["content"], answer))- if knowledges:+ if knowledges and prompt_config.get("quote", True):answer, idx = retrievaler.insert_citations(answer,[ck["content_ltks"]for ck in kbinfos["chunks"]],