Skip to main content

How RAG Works


Create Dataset


Upload Documents

Adding documents is a two-step process: upload the file, then associate it with a dataset.

Step 1: Upload File

Step 2: Associate with Dataset

Supported Formats


Connect a dataset to enable RAG:

Best Practices


Specifications


FAQ

What file formats work best?

Markdown and plain text yield the best results. PDFs work well if they’re text-based (not scanned images). Use OCR preprocessing for scanned documents.

How often is content re-indexed?

Uploaded files are indexed once at upload. Re-upload to refresh content.

Can I preview what chunks were created?

Not via API currently. Use the Dashboard → Datasets → View to inspect chunks.

How do I improve retrieval quality?

  1. Use specific, descriptive filenames
  2. Add summaries at the start of documents
  3. Remove boilerplate/headers that repeat across pages
  4. Split very long documents into logical sections

What happens if I delete a document?

The document and its chunks are removed. This affects new chats only—existing chat histories retain their context.

Chat API

Use RAG in chat completions

Models

Link datasets to models