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
Link to Model
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?
- Use specific, descriptive filenames
- Add summaries at the start of documents
- Remove boilerplate/headers that repeat across pages
- 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.Related
Chat API
Use RAG in chat completions
Models
Link datasets to models