Platform Q&A Chatbot (RAG)
A support assistant for tutors and students. It looks up the relevant Caretutors policies and FAQs before it answers, so replies come from real company docs.
RAGdocument-grounded answers
The problem
Prospective tutors and students frequently asked complex policy, matching, and payment questions. Off-the-shelf LLMs hallucinated inaccurate pricing tiers, non-existent terms, or generic advice, while human support agents spent hours answering identical queries.
Architecture
Designed and deployed a Retrieval-Augmented Generation (RAG) system utilizing LangChain. The pipeline extracts, chunks, and indexes internal documentation, platform guidelines, and FAQs, dynamically injecting high-similarity context into the LLM prompt to ground every answer.
Retrieval pipeline
Semantic vector search
LangChain finds passages relevant to the question. Role metadata helps distinguish between tutor and client policies.
Engineering decisions
- Company Knowledge Grounding
- Indexed official platform documentation and operational policies into a semantic vector store, preventing speculative responses.
- Context-Enriched Retrieval
- Integrated hybrid semantic retrieval with metadata filtering so answers accurately differentiate between tutor and client user roles.
- Prompt Guardrails
- Implemented defensive system prompt constraints that mandate referencing platform facts and gracefully acknowledge out-of-domain edge cases.
- Latency & Token Economy
- Optimized chunk sizing and retrieval top-k to keep inference fast and cost-effective under high daily query volumes.
Outcomes
Questions about matching, verification, and fees use the same policy material available to Caretutors support. When the retrieved passages are insufficient, the assistant can acknowledge the gap.
- Knowledge grounding
- 100% platform docs
- Hallucination risk
- Minimized via RAG
- Audience
- Tutors & students
- Architecture
- LangChain + vector search