CMDCRAGArcana.Pipeline.RunSummary (cmdc_rag_arcana v0.4.0)

Copy Markdown View Source

rag_pipeline_answer 的运行摘要。

摘要只记录治理和调试需要的计数、阈值、step 与 provenance 信息,不保存 chunk 原文或长 prompt。

Summary

Functions

转换为 JSON 友好 map。

Types

t()

@type t() :: %CMDCRAGArcana.Pipeline.RunSummary{
  blocked?: boolean(),
  citation_count: non_neg_integer(),
  collections: [String.t()],
  degraded?: boolean(),
  fail_mode: atom(),
  grounding_score: float() | nil,
  metadata: map(),
  preset_id: String.t(),
  result_count: non_neg_integer(),
  review_required?: boolean(),
  steps: [atom()],
  warnings: [term()]
}

Functions

to_map(summary)

@spec to_map(t()) :: map()

转换为 JSON 友好 map。