A self-hosted support assistant that answers from a business's own documents.
Juan Cruz · Neumont Capstone PRO390
| Local model | Fine-tune a 3B open model that runs on hardware the business controls |
|---|---|
| Grounded | Answer from the business's documents, and hand off when they don't cover it |
| Multi-tenant | One installation, several businesses, no crossover |
| Usable | A dashboard, an embeddable widget and a Docker Compose start-up |
| Model | Llama 3.2 3B, fine-tuned with QLoRA (Unsloth, TRL) on Kaggle |
|---|---|
| Data | Gemini as the teacher, writing synthetic support tickets |
| Inference | GGUF (q8) served by Ollama |
| Retrieval | Python, bge-small-en-v1.5 embeddings, MongoDB Atlas Vector Search |
| Gateway | Node.js and Express |
| Dashboard and widget | Next.js, React, Tailwind CSS |
| Deployment | Docker Compose |
Adapted from Distilling Step-by-Step: the student learns the answer and, as a second task, the rationale behind it.
Tested with live retrieval and, separately, with the correct passage handed to the model. The results that follow are live retrieval.
0 of 50
unanswerable questions escalated. It answered every one.
A confident wrong answer about a policy is worse than no answer.
The model saw only the exact supporting quotes. If the answer wasn't in the documents, it saw nothing.
Retrieval returns passages that look related, even when none holds the answer.
The change: show retrieved passages in every example, replace 1,199 examples (mostly cases that should escalate), and retrain with the same settings.
Pass: the right choice to answer or escalate, correct, fully supported by the documents and properly cited.
Live retrieval, q8 models, same frozen questions, scored by a second model (gpt-5.4-mini).
The model runs on the business's machine. Documents and tickets are stored in the business's own Atlas cluster.
Asked about kiln shelves, which the shop's files don't cover, it offers a person instead.
Next: better escalation and retrieval, measured on new development questions rather than the frozen benchmark.
Juan Cruz · OwnHelp