Automate KYC Intake with Mastra AI and NVIDIA NeMo Guardrails
Automating financial document factories requires strict guardrails to prevent extraction of invalid or hallucinated KYC data. Build a robust document processing pipeline using Mastra AI and NVIDIA NeMo Guardrails that validates unstructured corporate documents.
What you are building
The core problem, expected build, and operating context for this challenge.
Implement a TypeScript-based document extraction engine using Mastra AI integrated with NVIDIA NeMo Guardrails to enforce data safety rules.
How work is evaluated
Evaluates accuracy of extracted corporate KYC fields and effective guardrail blocking of corrupted input.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
test_field_accuracy
Verify extracted tax ID format validity
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
extraction_accuracy
Percentage of correctly extracted KYC fields • target: 0.98 • range: 0.9-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Configure Mastra AI agents with structured schema extraction tools.
Integrate NVIDIA NeMo Guardrails to reject unsafe or unverified document content.
Achieve >95% precision on corporate registration document field parsing.
Reference links and supporting material
Synthetic unstructured corporate incorporation and tax filings.
Challenge setup
Evaluates accuracy of extracted corporate KYC fields and effective guardrail blocking of corrupted input.
Challenge input
Unstructured text string representing articles of incorporation
Mastra AI
Framework requirement
NVIDIA NeMo Guardrails
AI engineering tool requirement
Evaluated output
JSON containing company_name, tax_id, incorporation_date, registration_status
- Verify extracted tax ID format validity
- Percentage of correctly extracted KYC fields • target: 0.98 • range: 0.9-1
- Benchmark: Document Parsing Benchmark v1
- Extraction Accuracy target: 0.98
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- Mastra AI · Required
- NVIDIA NeMo Guardrails · Optional
- Mastra AI · Required
Evaluation contract
- test_field_accuracy · Weight 1
- extraction_accuracy · Weight 1
Metrics
- extraction_accuracy · Target 0.98
Benchmarks
- Document Parsing Benchmark v1
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: Unstructured text string representing articles of incorporation
Output: JSON containing company_name, tax_id, incorporation_date, registration_status
Execution harness: JavaScript
Evaluation tools
- Mastra AI · agent_framework
- NVIDIA NeMo Guardrails · guardrail_tool
Recipe freeze marker
No recipe freeze time is recorded.