Problem
Client managers in MTS B2B sales spend the largest share of their time preparing for a client meeting. Product information sits in an internal wiki with up to six levels of nesting, and one product has 77 subpages. An earlier Telegram bot used external sources, which security forbade. The new assistant had to answer questions about 100+ products from internal data only, keep everything in a local stack, say "not found" when the base has no answer, and cite a breadcrumb path to the source fragment.
Example from the article: a manager pitching MWS GPT to a company's CTO needs the advantages that fit this client.
Solution in brief
The wiki is crawled into Markdown, every chunk gets a breadcrumb path, and small child chunks are searched while their parent sections go to the LLM. Retrieval is a four-step chain: query rewriting, vector plus BM25 search, rank fusion and a reranker. A 72-question evaluation shows that answers break at retrieval, not at generation.
Questions this case answers
- How to build a retrieval-augmented assistant over a deeply nested internal knowledge base when data cannot leave the company and every answer must cite its source
- How to find out whether poor answers of a retrieval-augmented system come from retrieval, generation or the automatic judge
- How to answer sales managers' product questions from a deeply nested internal wiki with links to the source page?
- How to build a RAG that says 'not found' instead of inventing an answer?
Tools and methods
- Playwright, Crawl4AI, markdownify — crawl the wiki and convert HTML to clean Markdown
- Parent and child chunks — child chunks are searched, parent sections are passed to the LLM
- BGE-M3, pgvector — embeddings and vector storage
- Multi-query rewriting, vector plus BM25 search, Reciprocal Rank Fusion — raise recall
- BGE cross-encoder, metadata reranker — order the top candidates
- Langflow — runs the ingestion and query pipelines
Google or a one-time email code. No password.