A weekend demo can answer a question from a handful of documents without taking responsibility for editing a repository or contacting another person. Pick its first action accordingly: read one approved passage and show the sentence supporting the answer.

Put four short, synthetic notes into a fixture bundle. Give each passage an ID, a display title, and line numbers. Load the bundle at startup and let the audience choose among those IDs. The model receives the passage selected for the request. It receives no file browser, command runner, write connector, or account credentials. Use a stub or local model when the notes should stay on the machine. Sending a passage to a remote inference service is still an external disclosure and may incur a charge.

Ask a question answered in a single note. Print the answer, the note title and its quoted lines. Next ask something the notes do not contain. The useful response is an explicit “not present in the supplied passage.” Finally, ask to change the note. The application may print a suggested edit as text; the original note should remain unchanged.

Validate citations against the actual source fragment given to the responder. A matching line range establishes where the words came from. It does not prove the new answer follows from those words. Read the quote during the demo.

This design deliberately excludes user-supplied paths and writable shared folders. Extending it to live files or several users introduces authorization, storage and concurrency decisions that a fixed fixture bundle does not resolve.

This article was created with AI assistance.

原文来源:dev.to