Content revision ea31a3343577b30cee4337cf2fef2b0864a5741341f27598e9108766c486fb2d ## Ask brings related passages into one answer AI × Self Source ID aipersonalarchive:ask-brings-related-passages-into-one-answer Original https://www.henryw.me/#/aipersonalarchive#ask-brings-related-passages-into-one-answer I built Ask to let the site respond directly to visitors’ questions. It uses retrieval-augmented generation (RAG), giving a language model relevant material from my work, ideas and experiences to draw on. The model returns a structured response, which the interface presents as an answer with a linked source list and follow-up questions. Visitors can also listen to the answer in an AI voice trained on recordings of my own voice. How Ask uses the source material The browser assembles the public site passages, including writing selected through retrieval, and sends them with the question to a Cloudflare Worker. The Worker supplies this context to Gemini. Numbered passages let the model cite its sources. The answer carries those citation numbers, while separate response sections contain follow-up questions, navigation actions and a possible View offer. The browser parses these into interface elements and builds the source list, grouping citations to the same location. Navigation actions map to the site’s registered routes and controls. I also embed the proposed follow-up questions and compare them with the archive, using a 0.30 cosine-similarity threshold to select suggestions supported by site material.