start_reference_check
Fact-check claims in text or documents (requires 4+ claims). Extract claims, preview sample validations, then approve full validation.
Instructions
Submit a reference-check job to fact-check text or a document.
For inline text: start_reference_check(text="The claims to fact-check...")
For a PDF or document, upload it first then pass the s3_key: upload_file(file_path, file_type="pdf") → returns s3_key start_reference_check(s3_key=s3_key) Do NOT call start_table_validation for PDFs — that starts the table validation pipeline, which is not what you want for a reference check.
Designed for text with 4 or more factual claims; fewer claims may produce low-quality results.
Three phases:
Phase 1 (free): claim extraction + 3-row preview validation (auto-triggered). wait_for_job blocks until status=preview_complete. Review preview_table (3 validated sample claims) and cost_estimate.
Approval gate: call approve_validation to proceed.
Phase 2 (charged): full claim validation. Returns XLSX, viewer URL, metadata.
Set auto_approve=True to skip the approval gate and run straight through to completion automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Inline text to fact-check (provide either text or s3_key, not both). | |
| s3_key | No | S3 key of an already-uploaded file to fact-check (provide either text or s3_key). | |
| auto_approve | No | Skip the preview approval gate and run straight through to full validation automatically. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |