RAG Files
RAG (Retrieval-Augmented Generation) files are documents you upload so the AI assistant can reference them when answering questions. This is ideal for existing documentation like PDFs, SOPs, and manuals.
How RAG files work
- You upload a file in the Backoffice
- Appilot processes the file: extracts text, splits into chunks, generates embeddings
- When a user asks a question, relevant chunks are retrieved
- The AI uses these chunks alongside knowledge content to generate answers
Uploading files
- Go to RAG Files in the Backoffice
- Click Upload File
- Select the file (PDF, TXT)
- Associate it with a domain and/or URL pattern
- Upload — processing begins automatically
File association
Files can be scoped to:
- Specific domain + URL pattern: Only used for questions on matching pages
- Specific domain: Used for any question on that domain
- Organization-wide: Used as general context for any question
Best practices
Choose the right files
Good candidates for RAG files:
- Standard operating procedures (SOPs)
- Product manuals and user guides
- Policy documents
- FAQ documents
- Training materials
Keep files focused
- Smaller, focused documents produce better results than large monolithic files
- Split a 200-page manual into topic-specific sections
- Each file should cover a coherent topic
Keep files current
- Remove or replace outdated files — they cause incorrect answers
- Set a review schedule (e.g., quarterly)
- Use the file's "last updated" date as a freshness indicator
Scope files precisely
- A product manual should be associated with the product's domain
- A general company policy can be organization-wide
- An SOP for a specific form should be scoped to that form's URL pattern
Processing status
After upload, files go through processing stages:
| Status | Meaning |
|---|---|
| Uploading | File is being transferred |
| Processing | Text extraction and chunking in progress |
| Embedding | Vector embeddings are being generated |
| Ready | File is available for RAG queries |
| Error | Processing failed — check file format and try again |