panels.evidence¶
Evidence panel: retrieval health, doc-type mix, and per-candidate excerpts.
Reads the evidence_bundle artifact (results, provenance, retrieval scope,
planned queries, candidate-evidence summary) and the causality_candidates
artifact to order and label hits. Honors the rca_viz_evidence_filter
session value so jumps from the Candidates/RCA Card tabs land pre-filtered.
Attributes¶
Functions¶
|
|
|
|
|
|
|
Infer BM25 availability from hit metadata; align with retriever provenance. |
|
Render the Evidence section. |
|
|
|
Module Contents¶
- panels.evidence._bm25_from_hits(results)[source]¶
Infer BM25 availability from hit metadata; align with retriever provenance.
- Parameters:
results (List[JsonDict])
- Return type:
Tuple[Optional[bool], str]
- panels.evidence.render_evidence_panel(evidence_bundle, causality_candidates)[source]¶
Render the Evidence section.
- @ In, evidence_bundle, dict, the
evidence_bundleartifact; reads results,provenance,retrieval_scope,planned_queries,candidate_evidence_summary; None shows an info note- @ In, causality_candidates, dict, optional; supplies candidate ordering and
the “filter by linked candidate” options
@ Out, None
- @ In, evidence_bundle, dict, the