RAG Dataset Generator

Turn Any Document Into Production-Ready RAG Data

Turn PDFs, documents and websites into grounded RAG chunks, Q&A pairs and test datasets. Review coverage, test retrieval, and export to your stack.

Most RAG systems fail because of poor data. FAQai fixes that.

No credit card required
10 free pages/month
GDPR compliant

5

Dataset Types per Document

16

Export Formats

8

Vector DB Integrations

2

Official SDKs (Python & TypeScript)

The Problem

The real problem isn't your model.

Most RAG failures trace back to the same four data gaps.

Missing evaluation data

You ship without knowing if your retriever actually returns the right passages.

Poor chunking

Chunks are too long, too short, or split in the wrong places - retrieval suffers silently.

No adversarial testing

Edge cases, misleading queries, and contradictions expose hallucinations in production.

Weak query coverage

Your test queries cover a fraction of what real users will ask. Blind spots stay hidden.

FAQai gives you the data layer your RAG system is missing.

Why FAQai

Generate, review, and export RAG data in one pipeline.

Generate + Test + Validate

Not just Q&A - evaluation benchmarks and adversarial tests in one run.

Built for RAG

Chunking, embeddings, config, and vector DB exports out of the box.

Developer-First Exports

16 formats, REST API, and ready-to-use code snippets.

Playground Included

Test retrieval quality against your actual data before exporting.

Features

A Complete Developer Tool for RAG Datasets

Generate grounded chunks, Q&A, and evaluation datasets, then export them to your own stack.

RAG-Ready Chunks

Automatically chunk your documents into optimised, embedding-ready segments. Export directly to Pinecone, Qdrant, or pgvector and feed your RAG system in minutes - no manual preprocessing required.

Contextual Chunk Enrichment

Optionally enrich each RAG chunk with an LLM-generated context header and hypothetical questions - Anthropic-style contextual retrieval - so chunks retrieve accurately in isolation. Beta, available on paid plans.

Canonical QA Dataset Generation

Build a document to Q&A dataset, including a PDF to Q&A dataset: 2-3 grounded question-answer pairs per chunk with confidence scores, difficulty levels, and question type classification.

Query Variant Generation

Automatically produce 3-5 alternative phrasings for each canonical question to test retrieval recall and improve RAG robustness.

RAG Evaluation Benchmark Datasets

A RAG evaluation dataset generator: evaluation questions with expected answers and difficulty ratings to benchmark your RAG system's accuracy and completeness.

Adversarial Query Testing

Create adversarial questions with misleading assumptions, ambiguous phrasing, and contradiction tests to detect hallucinations.

Dataset Coverage Analyzer

Visualize how well your generated datasets cover every document chunk. Identify gaps and uncovered sections instantly.

Quality Insights

Get AI-powered analysis of your dataset quality across 9 categories including coverage gaps, difficulty distribution, and retrieval risk assessment.

RAG Config Generator

Get a tailored system prompt, embedding model recommendations, and ready-to-use code snippets for LangChain, LlamaIndex, and Vercel AI SDK - all generated from your document.

Dataset Customization

Fine-tune generation with chunking profiles (compact, balanced, or large context windows) and audience steering, so datasets match your domain and end users - all without writing code.

RAG Playground

Chat with your document to preview how your RAG system will respond. The AI answers using your actual chunks, so you can validate retrieval quality before exporting.

Developer API

Integrate dataset generation into your pipelines with our REST API. Upload, process, and export in all 16 formats including Pinecone, ChromaDB, Weaviate, Milvus, LanceDB, Upstash, Qdrant, and pgvector.

Official SDKs & MCP Server

Drop-in Python and TypeScript SDKs plus a Model Context Protocol server let AI tools like Claude and Cursor upload, process, and export datasets directly. Webhooks notify your systems when jobs finish.

Website & URL Ingestion

Generate datasets straight from a public web page - or crawl a whole same-domain site via its sitemap. Robots.txt-aware, static-HTML, with per-plan page caps and a per-URL crawl report.

Scanned PDF OCR

Process scanned and image-based PDFs with our hybrid OCR powered by a vision LLM model. Native text extraction is tried first, then OCR kicks in automatically for scanned pages. Available on paid plans.

How It Works

From Document to RAG Dataset in 3 Steps

01

Upload Your Document

Drag and drop technical docs, knowledge bases, or any document — PDF (including scanned PDFs via OCR on paid plans), DOCX, TXT, or Markdown up to 25 MB. No file? Ingest straight from a public website URL or sitemap.

FAQai
02

AI Generates Datasets

RAG data preparation runs here. The RAG dataset generator chunks your document and produces a document to Q&A dataset, query variants, a RAG evaluation dataset, adversarial tests, quality insights, and a tailored RAG config with system prompt.

03

Export & Integrate

Download datasets in any of 16 formats - JSON, CSV, Markdown, LangChain, LlamaIndex, Pinecone, Qdrant, pgvector, ChromaDB, Weaviate, Milvus, LanceDB, Upstash, evaluation, RAG Chunks, or JSONL fine-tuning. Test with the RAG Playground, then copy the generated system prompt and code snippets to plug directly into your RAG pipeline.

Pricing

Simple, Transparent Pricing

Stop spending days on RAG data preparation by hand. Pick a plan and start shipping in minutes.

Free

Generate RAG datasets, FAQs, and summaries - no card needed.

$0/mo
  • 10 pages per month
  • Max file size: 5 MB
  • Website URL ingestion (5 pages/crawl)
  • Summary, FAQ, or RAG Dataset per doc
  • Up to 20 FAQs per doc
  • JSON export
  • RAG Playground: 5 msgs/month
  • Scanned PDF OCR
  • Generate additional outputs per doc
  • API access
Get Started Free

Basic

Perfect for individual developers exploring RAG workflows.

$9/mo
$9$79/year
Save $29/year
  • 1,000 pages per month
  • Max file size: 10 MB
  • Website URL ingestion (50 pages/crawl)
  • Summary + FAQs + RAG Dataset per doc
  • Up to 100 FAQs per doc
  • All 16 export formats
  • Evaluation & Adversarial datasets
  • Scanned PDF OCR (up to 20 pages/doc)
  • RAG Playground: 200 msgs/month
  • 500 API calls/month
Choose Basic
Most Popular

Starter

Ideal for developers & small teams building RAG pipelines.

$19/mo
$19$190/year
Save $38/year
  • 2,000 pages per month
  • Max file size: 15 MB
  • Website URL ingestion (150 pages/crawl)
  • Summary + FAQs + RAG Dataset per doc
  • Up to 200 FAQs per doc
  • All 16 export formats
  • Evaluation & Adversarial datasets
  • Scanned PDF OCR (up to 50 pages/doc)
  • RAG Playground: 500 msgs/month
  • 1,000 API calls/month
Choose Starter

Professional

For AI teams, enterprises & production RAG systems.

$39/mo
$39$390/year
Save $78/year
  • 6,000 pages per month
  • Max file size: 25 MB
  • Website URL ingestion (500 pages/crawl)
  • Summary + FAQs + RAG Dataset per doc
  • Up to 500 FAQs per doc
  • All 16 export formats + Webhooks
  • Evaluation & Adversarial datasets
  • Scanned PDF OCR (up to 100 pages/doc)
  • RAG Playground: 1,500 msgs/month
  • 3,000 API calls/month
Choose Professional
GDPR Compliant
No Credit Card for Free Plan
Cancel Anytime

Security & Privacy

Your documents stay yours

RAG datasets are built from your internal knowledge. We treat that data accordingly - every claim below is documented in our security and privacy policies.

Encrypted at rest (AES-256)

Documents and datasets are stored with AES-256 encryption in our Supabase infrastructure.

Encrypted in transit (TLS 1.3)

All traffic between you and FAQai is protected with modern TLS.

Never used to train AI models

Your documents and generated datasets are never used to train models - ours or anyone else's.

GDPR compliant

Full data-subject rights: access, export, and erasure on request.

Delete your data anytime

Remove documents, datasets, or your entire account whenever you choose - permanently.

SOC 2 aligned practices

Security controls modelled on SOC 2: least-privilege access, audit logging, and key rotation.

FAQai

Frequently Asked Questions

Can't find the answer you're looking for? Reach out to our support team.

FAQai turns documents into structured training and evaluation datasets for RAG systems. Upload any PDF, DOCX, TXT, or Markdown (MD) file and automatically generate canonical Q&A pairs, query variants, evaluation benchmarks, adversarial test questions, quality insights, and a tailored RAG config with system prompt, embedding recommendations, and ready-to-use code snippets - then export in 16 formats including Pinecone, ChromaDB, Weaviate, Milvus, LanceDB, Upstash, Qdrant, LangChain, LlamaIndex, pgvector, JSONL fine-tuning, and RAG Chunks.

Yes. FAQai is a PDF to Q&A dataset tool and a document to Q&A dataset tool. Upload a PDF, DOCX, TXT, or Markdown file and it generates canonical Q&A pairs grounded in that file, plus query variants. Scanned PDFs use OCR on paid plans.

Yes. FAQai handles RAG data preparation in one pass. The RAG dataset generator produces chunks and Q&A. The RAG evaluation dataset generator produces question, context, and expected-answer triples you can export for retrieval and generation checks.

Text-based PDFs, scanned PDFs (via OCR on paid plans), DOCX, TXT, and Markdown (MD) files. You can also skip the file entirely and ingest content from a public website URL — a single page or a same-domain crawl (up to 5 / 50 / 150 / 500 pages per crawl by plan, robots.txt-aware, static HTML only). File size limits depend on your plan: Free up to 5 MB, Basic up to 10 MB, Starter up to 15 MB, and Professional up to 25 MB. We extract text, split it with heading-aware, fixed-size, or paragraph chunking, and generate datasets from the content.

Five dataset outputs: RAG Chunks, Canonical Q&A, Query Variants (paraphrases, alternatives, edge cases), Evaluation datasets with ground-truth answers and source contexts, and Adversarial test questions (misleading, out-of-scope, ambiguous). Quality Insights is a separate quality analysis of coverage and weaknesses. It is not one of the five dataset types. Each document can also get an AI-generated RAG Config with a tailored system prompt, embedding model recommendations, and ready-to-use code snippets for LangChain, LlamaIndex, and Vercel AI SDK.

16 export formats: JSON, CSV, Markdown, LangChain JSON (Document schema), LlamaIndex JSON (LabelledRagDataset), Evaluation (RAGAS/DeepEval-compatible), Pinecone, Qdrant, pgvector, ChromaDB, Weaviate, Milvus, LanceDB, Upstash Vector, RAG Chunks, and JSONL Fine-Tuning. Free plan includes JSON export. All paid plans unlock all 16 formats including CSV.

Yes. Basic, Starter, and Professional plans include full REST API access for programmatic document upload, processing, and dataset export. The API supports a presigned URL upload flow for large files and all 16 export formats. See our API documentation for details.

Yes. All uploads are processed with AI content moderation, encrypted in transit (TLS 1.3) and at rest (AES-256). Documents are stored securely in isolated storage. We are fully GDPR compliant.

Free (10 pages/month, JSON export), Basic at $9/month or $79/year (1,000 pages, all 16 export formats, 500 API calls), Starter at $19/month or $190/year (2,000 pages, 1,000 API calls, bulk document upload, priority processing), and Professional at $39/month or $390/year (6,000 pages, 3,000 API calls, webhooks, bulk upload, priority processing). Yearly billing saves $29 on Basic, $38 on Starter, and $78 on Professional. The Free plan is not a time-limited trial. Overage page packs are available for paid plans.

The RAG Playground is an interactive chat interface on each document's detail page where you can ask questions and see how a RAG system would respond using your document's chunks. It helps you validate retrieval quality and see your dataset in action before exporting. Each plan includes a monthly message allowance - Free: 5/month, Basic: 200/month, Starter: 500/month, Professional: 1,500/month. Paid plans can also purchase overage packs that include bonus playground messages.

Yes! On paid plans, FAQai uses a hybrid OCR approach powered by a vision LLM model. Native text extraction is tried first, and any pages without extractable text are automatically processed via OCR. Monthly OCR page caps apply: Basic 100 pages/mo, Starter 300/mo, Pro 1,000/mo. The free plan does not include OCR.

Yes, you can cancel anytime from your account settings. Your plan features remain active until the end of your current billing period. No long-term contracts or cancellation fees.
FAQai

Ready to Build Better RAG Datasets?

Upload any document - including scanned PDFs via OCR - and generate structured datasets, a tailored system prompt, and ready-to-use code snippets. Export in 16 formats including Pinecone, ChromaDB, Weaviate, LangChain, LlamaIndex, and JSONL fine-tuning.

Free plan available · No credit card required · Cancel anytime