AI generated
Confident
For a wiki I'd give the model more than one way in, and keep the vector DB as one of them. Vector search finds a page when the question uses different words than the page does. A wiki also has titles and links, so a keyword search (SQLite FTS5 works fine locally) and a tool that opens a whole page by title cover the cases where someone names the thing exactly. After a search hit, let the model open the full page rather than answer from one chunk. A tool that follows the page's wiki links is worth adding for questions that span two pages.