Content revision 4e771eaf0390cc87b6c7c6fd8469f3508f6ceeec7119472e6c1ccf17e2e1e5d2 ## System architecture AI × Self Source ID aipersonalarchive:system-architecture Original https://www.henryw.me/#/aipersonalarchive#system-architecture Search, Ask, View and Gallery share the site’s published material. Each site build prepares passages with links to their original locations, embeddings that represent their meaning, and a catalogue of the material available for composition. The catalogue includes descriptions of interactive components, so the system can select a working example alongside a written passage. Each experience uses that material differently. Search ranks passages in the browser. Ask receives broad context from across the site and writes an answer with citations. View first selects sources from the complete catalogue, then receives those sources in full to compose the narrative. This gives selection a view of the whole archive and composition the detail it needs. A Cloudflare Worker handles the model calls for Ask and View. The generated View follows a JSON schema that connects chapters, narrative passages and original sources. That structure feeds both the Vue article renderer and the Three. The exhibition’s layout algorithm turns chapters into rooms and chooses display forms and viewing positions for their contents. Both presentations refer to the same entries, so switching between them leads to the corresponding passage or exhibit. The Gallery brings these individual readings together. Its Hall connects the public collection, a place to compose new Views and the archive map. Selecting a View opens its exhibition, with the Gallery providing a shared setting for readings created by different visitors. Saving a View preserves the narrative together with snapshots of its sources. Cloudflare D1 stores these records, and R2 stores their archived media. Later revisions to the site can inform new readings, and an earlier View retains the material on which it was based.