unstructured-pdf-generation

Generate synthetic PDF documents with JSON metadata for RAG pipelines.

1.8k|404|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/databricks-solutions/ai-dev-kit --skill unstructured-pdf-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unstructured-pdf-generation
Source: https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-skills/unstructured-pdf-generation
Command: npx skills add https://github.com/databricks-solutions/ai-dev-kit --skill unstructured-pdf-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables the generation of realistic, synthetic PDF documents for testing RAG pipelines, demonstrations, and evaluation datasets without needing real documents.

Core Features & Use Cases

  • LLM-generated PDFs: Create realistic documents with customizable content.
  • Metadata and JSON for RAG: Produce accompanying JSON files with questions and evaluation guidelines for testing retrieval systems.
  • Unity Catalog integration: Automatically upload generated PDFs and metadata to Unity Catalog volumes.

Quick Start

Use the generate_pdf_documents MCP tool with:

  • catalog: "my_catalog"
  • schema: "my_schema"
  • description: "Technical documentation for a cloud infrastructure platform including setup guides, troubleshooting procedures, and API references."
  • count: 10

To customize location:

  • volume: "custom_volume"
  • folder: "pdf_documents"
  • overwrite_folder: true

The tool outputs PDFs to the specified location and creates JSON metadata files for each document.

Frequently Asked Questions about unstructured-pdf-generation

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

FAQPage Schema
How do I generate synthetic PDFs for RAG testing?

You generate synthetic PDFs for RAG testing by using the generate_pdf_documents tool with a content description, desired count, and catalog/schema configuration. The Skill outputs realistic PDF documents and accompanying JSON metadata to your specified location.

What is synthetic PDF generation used for in retrieval-augmented generation pipelines?

Synthetic PDF generation is used to create realistic test datasets and demo materials for retrieval-augmented generation pipelines without needing real documents. It enables robust evaluation workflows for document-backed QA tasks by providing controlled, customizable content.

Can I upload generated PDF documents directly to Unity Catalog?

Yes, you can upload generated PDF documents directly to Unity Catalog. The Skill supports automatic uploads to Unity Catalog volumes, allowing you to specify catalog, schema, volume, and folder parameters for organized storage of your synthetic data.

Does the PDF generation tool create metadata for RAG evaluation?

Yes, the PDF generation tool creates accompanying JSON metadata files for each generated document. These JSON files contain questions and evaluation guidelines specifically designed for testing retrieval systems and evaluating RAG pipeline performance.

What is the best way to create test datasets for unstructured data use cases?

The best way to create test datasets for unstructured data use cases is using LLM-generated PDFs with customizable content. This approach provides realistic documents paired with JSON metadata, enabling comprehensive testing of document processing and retrieval workflows.

How do I customize the storage location for generated PDF documents?

You customize the storage location for generated PDF documents by specifying the volume and folder parameters in the generate_pdf_documents tool. You can also use the overwrite_folder parameter to control whether existing files in the target directory are replaced.