Dev.to
6/18/2026

Building Minyut: An Embeddable RAG Chatbot in One Script Tag
Short summary
Minyut is a RAG-based document chatbot that answers only from uploaded content and refuses hallucination through 600-token chunking, semantic search, and Shadow DOM isolation. The architecture uses sentence-transformers embeddings and PostgreSQL pgvector for retrieval. Key lessons: fix retrieval before optimizing models, avoid scoped CSS in favor of Shadow DOM, and support BYOK early for engaged users.
- •RAG architecture ensures chatbot answers only from documents, preventing hallucination through retrieval-augmented generation
- •Technical stack: 600-token chunks with overlap, sentence-transformers embeddings, pgvector indexing, Shadow DOM for cross-platform deployment
- •Fixed monthly pricing eliminates usage-based billing uncertainty; BYOK support lets power users bring OpenAI/Groq keys
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



