The Claims Detection skill (formerly Data Expert) is designed to transform unstructured text, PDFs, and web pages into high-fidelity factual datasets. It focuses on isolating verifiable measurements and qualitative claims with full semantic context.
- Multimodal Semantic Parsing: Direct support for URLs (via Playwright), local PDFs (via PyPDF2), and raw text.
- Original Claim Preservation: Captures both the full
contextsentence and the specificoriginal_claimquote for granular verification. - Verifiable Identification: Automatically generates a unique, reproducible MD5 hash for each claim.
- Investigative Probability: Assigns a truth probability score based on internal consistency and AI-driven reasoning.
- Croissant Alignment: Maps claims to
schema:variableMeasuredfor seamless integration into Croissant metadata files.
- Ingestion: Provide a source (URL, PDF path, or text).
- Extraction: Gemini 3 parses the content for factual statements.
- Synthesis: Generates a high-level narrative
claimsummarizing the entire dataset. - Export: Saves the results to
data/claims.jsonwith full DID-based provenance.
# Analyze a microclimate report and save structured claims
python3 .gemini/skills/data-expert/scripts/data_expert.py "microclimate_report.pdf"# Pipe results to other tools in JSON format
python3 .gemini/skills/data-expert/scripts/data_expert.py "https://example.com" --json| Field | Description |
|---|---|
| claim | Narrative synthesis of the entire analysis. |
| id | MD5 hash of the claim context for tracking. |
| context | The full source sentence containing the claim. |
| variableMeasured | The Schema.org name for the measured variable. |
| value | The extracted quantitative or qualitative value. |
| probability | Factual reliability score (0.0 to 1.0). |
| prov:wasAttributedTo | The DID of the investigating agent. |