data_processing

Extract PDF text with OCR and query CSV files via Pandas.

5|Updated May 6, 2026
One-click install
npx skills add https://github.com/binary16labs/prime-silo --skill data-processing-binary16labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data_processing
Source: https://github.com/binary16labs/prime-silo/tree/main/runtime/skills/data_processing
Command: npx skills add https://github.com/binary16labs/prime-silo --skill data-processing-binary16labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes friction when you need to turn PDFs into searchable text and then analyze CSV data without manual copying or formatting.

Core Features & Use Cases

  • PDF text extraction with OCR fallback: Extracts raw text from PDFs in data_in, including an OCR fallback via PyMuPDF/Tesseract when needed.
  • CSV querying via Pandas: Runs dataframe-style queries (e.g., df.describe()) or simple expressions (e.g., amount > 100) against a CSV.
  • Guardrails for staging files: Helps you avoid using ad-hoc extraction to process staging/ documents; those should be ingested via the rag_ingest pipeline first.
  • Use Case: Analyze financial reporting by extracting narrative text from a PDF report while simultaneously querying a financials.csv file to summarize results.

Quick Start

Use the skill to query the file financials.csv for rows where amount is greater than 100 by instructing the assistant: query_csv with input {"csv_path":"financials.csv","query":"amount > 100"}.

Frequently Asked Questions about data_processing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a PDF and query CSV data at the same time?

You can extract PDF text and query CSV data simultaneously by using the extract_pdf_text function for OCR-capable ingestion and query_csv for deterministic dataframe queries. This combination enables concurrent narrative text extraction and tabular data filtering for operational analysis.

Does PDF text extraction support OCR for scanned documents?

PDF text extraction includes an OCR fallback via PyMuPDF and Tesseract to handle scanned documents. When standard raw text extraction fails, the OCR mechanism activates automatically to ensure all text is captured from your PDF files.

How do I filter a CSV file using Pandas queries?

You filter a CSV file by passing a simple expression like 'amount > 100' to a Pandas-powered query function. This executes deterministic dataframe-style filtering against the CSV path and returns usable tabular results for workspace analysis.

What is the best way to analyze financial reports combining PDF text and CSV tables?

The best way is to extract narrative text from a PDF report while simultaneously querying a financials.csv file to summarize results. This dual approach removes manual copying friction by combining OCR-capable PDF ingestion with Pandas-powered dataframe filtering.

Why should I not use ad-hoc extraction for staging documents?

You should not use ad-hoc extraction for staging documents because they must be ingested via the rag_ingest pipeline first. Guardrails enforce this rule to ensure staging content is properly processed before querying or extraction occurs.