How rfromr/seniormoment works
SeniorMoment is a console app that answers questions from a user’s Markdown or text notes, cites retrieved passages, and declines when the notes do not support an answer. Its main workflow loads and chunks documents, indexes embeddings, then retrieves relevant passages for Gemini-grounded answers. When it cannot answer, the user may teach it; a proposed note is shown for explicit approval before saving. The excerpts establish the core wiring and approval design; optional local AI operation is documented but its implementation is not shown.
Main entry points: Program.cs Question loop · NoteTaker.cs Note proposals · Answerer.cs Retrieval and answers · VectorIndex.cs Vector index
Components 10
Console interaction
- Question loop
src/SeniorMoment/Program.cs
Knowledge preparation
- Document loading
src/SeniorMoment/DocumentLoader.cs - Passage chunking
src/SeniorMoment/Chunker.cs - Vector index
src/SeniorMoment/VectorIndex.cs - Notes on disk
Grounded answering
- Retrieval and answers
src/SeniorMoment/Answerer.cs
Learning and AI
- Gemini client setup
src/SeniorMoment/Gemini.cs - Note proposals
src/SeniorMoment/NoteTaker.cs
Other components
- User
- Google Gemini
Connections 13
- User → Question loop: asks questions
README.md - Question loop → Document loading: loads corpus
src/SeniorMoment/Program.cs - Question loop → Passage chunking: chunks documents
src/SeniorMoment/Program.cs - Question loop → Vector index: builds index
src/SeniorMoment/Program.cs - Question loop → Gemini client setup: creates clients
src/SeniorMoment/Program.cs - Question loop → Retrieval and answers: routes questions
src/SeniorMoment/Program.cs - Retrieval and answers → Vector index: searches passages
src/SeniorMoment/Answerer.cs - Retrieval and answers → User: returns cited answer
src/SeniorMoment/Answerer.cs - Question loop → Note proposals: offers learning
src/SeniorMoment/Program.cs - User → Note proposals: approves proposal
- Note proposals → Notes on disk: saves approved note
README.md - Note proposals → Vector index: adds learned chunks
src/SeniorMoment/NoteTaker.cs - Gemini client setup → Google Gemini: sends AI requests
src/SeniorMoment/Gemini.cs