Knowledge Base (RAG)
Retrieval-Augmented Generation (RAG) lets J.O.S.I.E answer from your PDFs and documents — not just the system prompt.
Available on Pro and Enterprise plans.
Limits by plan
| Pro | Enterprise | |
|---|---|---|
| Source files | 10 | Unlimited |
| Total chunks | 2,000 | Unlimited |
| Max file size | 10 MB | 50 MB |
| Retrieval tuning | Looser thresholds | Looser thresholds |
Basic and free tiers cannot upload documents.
Supported formats
- PDF (recommended)
- DOCX (converted to text server-side)
- Plain text exports
PDFs with clear headings and Q&A structure retrieve best.
Upload flow
- Go to Dashboard → Documents
- Click Upload or use the Knowledge Wizard
- File is stored in tenant-isolated storage
- Text is extracted, chunked, and embedded (OpenAI embeddings)
- Status shows Indexed when ready
Knowledge Wizard (recommended)
The wizard builds an RAG-optimized PDF from your inputs:
- Business basics — name, industry, contact
- Products / services — what you offer
- FAQs — question/answer pairs with keywords
- Policies — shipping, refunds, privacy snippets
- Review & generate — produces structured PDF, auto-uploads and indexes
Wizard modes
| Mode | When to use |
|---|---|
| Create | First knowledge base |
| Update | Replace an existing document entirely |
| Supplement | Add a new FAQ PDF alongside existing docs |
Wizard metadata is saved so you can edit and re-export later.
How retrieval works
When a user asks a question:
- Query is embedded and matched against your chunk vectors (pgvector)
- Top chunks within distance thresholds are injected as context
- The model answers only from provided context when guardrails require it
- If no relevant chunk is found, J.O.S.I.E says it doesn't have that information (no hallucination)
Pro/Enterprise use tier-specific distance thresholds so legitimate FAQ wording still matches.
Writing content that retrieves well
Structure documents as:
QUESTION: How long do withdrawals take?
ANSWER: Withdrawals are processed within 24–48 business hours after approval.
KEYWORDS: withdrawal, payout, processing time, pending
Tips:
- One topic per block — avoid 10-page walls of text
- Use customer phrasing in QUESTION lines
- Repeat keywords naturally in ANSWER and KEYWORDS
- Update via wizard or upload new version; re-index replaces old chunks for that doc
Download documents
From Documents, download the original file for backup or compliance.
Static knowledge vs. RAG
| Static knowledge | RAG documents |
|---|---|
| Always in every request | Retrieved per question |
| Small (KB-scale) | Large manuals, catalogs |
| Best for 10–20 critical facts | Best for deep product detail |
Use both: static knowledge for hours/support email; RAG for product specs and policies.
Troubleshooting RAG
| Issue | What to check |
|---|---|
| "I don't have that information" | Wording in doc vs. user question; add FAQ block |
| Slow indexing | Large PDFs; wait for Indexed status |
| Wrong answer | Chunk may mix topics — split document |
| Upload rejected | File size / plan limit / tier |