I built a docs Q&A engine that returns null instead of hallucinating
A developer created a Q&A engine that prioritizes accuracy by returning null for questions without a suitable answer. This engine is designed for privacy-conscious users and operates without external API keys or data transmission. It employs advanced techniques to improve query accuracy while ensuring that incorrect answers are not fabricated.
- ▪The Q&A engine uses a FastAPI service to answer questions based on markdown files.
- ▪It implements a unique approach by returning null instead of providing inaccurate answers.
- ▪The developer faced challenges in improving identifier recognition and handling acronyms without degrading index quality.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3958163) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Sujithkrishnan.p.k Posted on May 29 I built a docs Q&A engine that returns null instead of hallucinating #programming #showdev Every "docs chatbot" today routes user questions through OpenAI. For open-source maintainers, privacy-conscious teams, and air-gapped environments, that's either too expensive or unacceptable. So I built one that doesn't.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).