Use the evidence-based verification flow (MCP)
mainBerry provides a workflow for collecting evidence and detecting hallucinations during AI runs.
Typical Workflow:
- Start a run: Use
start_run(problem_statement, deliverable)to create a run with anchor spans (S0for the problem,S1for the deliverable). - Gather evidence:
add_span(text): Add raw text as evidence.add_file_span(path, start_line, end_line): Capture specific file excerpts.distill_span(parent_sid, pattern): Extract key lines from larger spans.
- Verify claims: Use
detect_hallucinationoraudit_trace_budgetto check if answers are supported by the gathered evidence.