document_chat_retrieval.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. description: "文档编辑 AI 对话-RAG 质量优先检索配置"
  2. version: "1.0.0"
  3. retrieval:
  4. enabled: true
  5. parent_collection: "t_kngs_construction_plan_parent"
  6. child_collection: "t_kngs_construction_plan_child"
  7. parent_recall_top_k: 30
  8. child_recall_top_k: 40
  9. tag_recall_top_k: 30
  10. chapter_recall_top_k: 15
  11. recall_top_k: 30
  12. rerank_top_k: 8
  13. submit_top_k: 3
  14. min_vector_similarity: 0.45
  15. min_rerank_score: 0.70
  16. min_qualified_count: 1
  17. max_reference_chars: 4000
  18. max_single_reference_chars: 1500
  19. allow_vector_fallback: false
  20. allow_unscoped_search: false
  21. dense_weight: 0.7
  22. sparse_weight: 0.3
  23. child_dense_weight: 0.6
  24. child_sparse_weight: 0.4
  25. ranker_type: "weighted"
  26. tag_recall_enabled: true
  27. tag_terms_limit: 8
  28. rrf_k: 60
  29. parent_vector_weight: 1.0
  30. child_locator_weight: 0.8
  31. tag_weight: 1.2
  32. chapter_similarity_weight: 0.5
  33. tag_exact_bonus: 0.08
  34. tag_partial_bonus: 0.03
  35. multi_source_bonus: 0.02
  36. scope_bonus: 0.03
  37. warnings:
  38. no_scope: "缺少可靠的知识库检索范围,本次未引用向量库内容。"
  39. no_recall: "未召回可信知识库内容,本次回答不引用向量库。"
  40. low_confidence: "未找到可信度足够的知识库片段,本次未引用向量库内容。"
  41. rerank_failed: "知识库片段重排不可用,本次未引用向量库内容。"