TokenPig
RAG document preparation

Prepare cleaner documents for RAG pipelines

Turn mixed office files into consistent Markdown before chunking, embeddings and retrieval.

No sign-up for the first conversions · Files processed temporarily · Current plan limits apply

Drop your document herePDF · DOCX · PPTX · XLSX and moreOpen the converter
Why this page exists

A retrieval system cannot recover structure that was lost or polluted during ingestion. Repeated headers, broken reading order and inconsistent extraction can produce weak chunks before embeddings are even created.

TokenPig provides a simple preprocessing layer: convert supported documents into readable Markdown, inspect the output and then pass the cleaned text into your own chunking and indexing pipeline.

What you get

A cleaner path from file to useful context

Consistent source format

Normalize PDFs, Word files, slides and spreadsheets into a shared text representation.

Visible ingestion quality

Review the actual Markdown before it enters a vector store or retrieval index.

Better chunk boundaries

Use headings and lists as signals instead of relying only on arbitrary character counts.

Lower downstream noise

Remove repeated content that can create duplicate or misleading retrieval results.

How to use it

A few steps, with a review before you trust the output

  1. 01

    Select representative documents

    Test the hardest examples in your corpus, not only clean demo files.

  2. 02

    Convert to Markdown

    Normalize the source while preserving headings, lists and useful tables.

  3. 03

    Add metadata

    Attach source, date, access level, document type and stable identifiers in your ingestion layer.

  4. 04

    Chunk and evaluate

    Create chunks, run retrieval tests and inspect whether the right passages appear for real questions.

Good fit

Useful when you need to

  • Internal policy and procedure search
  • Customer-support knowledge retrieval
  • Technical documentation assistants
  • Research libraries and document intelligence prototypes
Limitations

What to review honestly

  • TokenPig is a preprocessing tool, not a complete vector database, embedding service or retrieval evaluator.
  • Markdown conversion does not replace metadata design, access control, deduplication or version management.
  • Tables, diagrams and scans may require specialized extraction for high-stakes use cases.
  • Chunk quality must be evaluated against real questions and expected answers.
Test it yourself

Use a known sample before your own file

Download the sample, run it through TokenPig and inspect the Markdown yourself before trusting it with important documents.

FAQ

Questions specific to this workflow

Is Markdown required for RAG?

No. RAG systems can ingest many formats, but Markdown is useful because it is readable, structured and easy to process with standard tools.

Does TokenPig create embeddings?

No. This page focuses on preparing source content before your own chunking, embedding and indexing steps.

How should I chunk Markdown?

Start with semantic boundaries such as headings and sections, then apply size limits and overlap only where needed. Evaluate retrieval rather than assuming one universal chunk size.

What metadata should I keep?

At minimum keep a stable source ID, title, document version, date, permissions and a link back to the original file.

Can I process a large corpus?

The current public flow is designed around document conversion limits. Batch processing and API capabilities should be matched to the plan and features actually available when you deploy the workflow.

Cleaner documents. Better context.

Prepare a document

Start with a real file, inspect the output, and keep the original source for verification.

Try TokenPig free