Reporting (LLM-Readable Views)¶
Markdown renderers that convert ragpill outputs into a form an LLM (or a human in a chat session) can read directly. See the LLM Reports Guide for when to use which view.
render_evaluation_output_as_triage¶
ragpill.report.triage.render_evaluation_output_as_triage
¶
render_evaluation_output_as_triage(eo, *, max_chars=32000, include_passing=True, include_spans=True, redact=True, redact_patterns=None)
Render an :class:EvaluationOutput as a triage-focused markdown document.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
eo
|
EvaluationOutput
|
The evaluation output to render. |
required |
max_chars
|
int
|
Total character budget. When exceeded the renderer drops sections in this order: passing-case section, run-detail past index 5, then trailing failing cases. |
32000
|
include_passing
|
bool
|
Include the collapsed passing-case section. |
True
|
include_spans
|
bool
|
Include "Relevant spans" subsections for failing runs.
When |
True
|
redact
|
bool
|
Apply redaction to span inputs/outputs (see
:func: |
True
|
redact_patterns
|
Iterable[str] | None
|
Override the default redaction regex list. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
A markdown string at most |
Source code in src/ragpill/report/triage.py
render_dataset_run_as_exploration¶
ragpill.report.exploration.render_dataset_run_as_exploration
¶
render_dataset_run_as_exploration(dr, *, max_chars=16000, include_spans=True, redact=True, redact_patterns=None)
Render a :class:DatasetRunOutput as an exploration-focused markdown document.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dr
|
DatasetRunOutput
|
The dataset run output to render. |
required |
max_chars
|
int
|
Total character budget. When per-case content overflows
|
16000
|
include_spans
|
bool
|
Include trace tree per run. |
True
|
redact
|
bool
|
Apply redaction to span inputs/outputs. |
True
|
redact_patterns
|
Iterable[str] | None
|
Override the default redaction regex list. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
A markdown string at most |
Source code in src/ragpill/report/exploration.py
See Also¶
- LLM Reports Guide — when to use triage vs exploration.
- Result Types — the
EvaluationOutput.to_llm_text/EvaluationOutput.to_jsonshortcuts that delegate to these renderers. - Execution Layer —
DatasetRunOutput.to_llm_textlikewise.