document-ai_skill

This skill helps you extract and structure data from PDFs and documents using OCR, table and invoice parsing, and multimodal vision insights.
  • Python

21

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill omer-metin/skills-for-antigravity --skill document-ai

  • SKILL.md1.3 KB

Overview

This skill provides comprehensive patterns and practical implementations for AI-powered document understanding: PDF parsing, OCR, invoice and receipt extraction, table extraction, multimodal retrieval-augmented generation (RAG) with vision models, and structured data output. It focuses on repeatable patterns that produce validated, machine-readable outputs suitable for downstream workflows. Use it when you need robust, auditable document parsing and extraction pipelines.

How this skill works

The skill prescribes concrete patterns for ingestion, OCR, layout analysis, entity and table extraction, and normalization into structured schemas. It ties each pattern to reference guidance: follow references/patterns.md for construction, references/sharp_edges.md for risks and failure modes, and references/validations.md for strict output constraints and validation rules. Implementations combine OCR engines, layout parsers, LLMs (for interpretation and RAG), and post-processing to ensure deterministic structured outputs.

When to use it

  • Parsing and extracting structured data from PDFs, scans, and images (invoices, receipts, contracts).
  • Performing robust table extraction from complex layouts for analytics or ETL ingestion.
  • Building multimodal RAG systems that combine vision models with LLMs for context-aware document QA.
  • Converting heterogeneous document outputs into validated JSON/CSV for downstream systems.
  • Diagnosing recurring extraction failures or reducing OCR/interpretation error rates.

Best practices

  • Start from references/patterns.md to select the appropriate ingestion and parsing pattern before coding.
  • Validate every extraction against references/validations.md rules and surface schema mismatches early.
  • Use the failure modes in references/sharp_edges.md to design prechecks and fallback strategies.
  • Separate OCR/layout stages from LLM interpretation to limit hallucination and improve traceability.
  • Normalize outputs (dates, currencies, addresses) to canonical formats and keep raw text for audit.

Example use cases

  • Invoice processing: OCR + table extraction + entity normalization to produce AP-ready JSON.
  • Receipt capture for expense workflows: photo ingest, OCR, merchant/date/amount extraction, validation.
  • Contract clause extraction: layout parsing + sentence-level QA via multimodal RAG to populate contract database.
  • Tabular data pipeline: extract complex tables from financial reports into analytic-ready CSV/Parquet.
  • Document QA assistant: combine vision models and RAG for user questions over scanned manuals or reports.

FAQ

Use references/patterns.md for design patterns, references/sharp_edges.md to understand common failures and risks, and references/validations.md to enforce output rules and schema validation.

How do I reduce hallucinations from LLM-based interpretation?

Keep LLMs focused on interpretation only after deterministic OCR/layout steps, provide grounded context, use strict schema prompts, and validate outputs against references/validations.md.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational