Dio the Chatbot
LangChainLLMRAGRetrievalEmbeddingsHybrid SearchDecision ModelQdrantBM25Redis
The problem
A recruiter should find relevant evidence without reading every portfolio page. A conversational chatbot guide needs to be reliable, affordable and quick, but capable language models can be costly, while smaller models may give inaccurate answers, make up details or follow attempts to override their instructions.
How I solved it
- AI Chatbot with tool-using RAG architecture built around a curated knowledge base of projects, experience, education, certificates, publications and engineering notes to answer questions.
- Hybrid retrieval combines semantic embeddings with keyword matching through Qdrant and BM25, with Redis supporting caching and shared request controls.
- Portfolio questions return source cards, allowing visitors to inspect the evidence behind each answer.
- A separate decision model checks messages and draft answers for safety, scope and support from portfolio evidence. Depending on the result, Dio can show, flag or withhold a response.
- A decision model checks the visitor’s input before Dio responds and reviews the draft answer against specific questions, such as whether a claim is backed by retrieved evidence. This lets a lower-cost language model focus on answering, while the decision model provides checking of the model's behavior
- Using another language model for every check can add latency and cost compared with a focused decision model. A fixed-label classifier can be harder to adapt, while Dio’s decision questions can evolve with the portfolio.
- Can automatically send Hans' CV to your email by opening form in chat UI
- Can automatically send directly Hans a message via Line after review-and-approval flow, requiring the visitor to approve the exact message before anything is sent.
The results
- to understand Hans quickly
- 1 chat
An interactive guide that lets visitors ask about Hans’s work and get source-backed answers without reading every portfolio page.