Alan De Vaney.
Back to all work

guru

Ask a question and guru answers with exact quotations from 127 classic books. The model never types a quote. Instead it picks the sentences, and guru copies them straight from the book.

Result: Every quotation matches its source word for word

Live at guru.alanj.dev with no sign-in. Guests can ask five questions a day and search the library as much as they like.

Project view

guru answer to the question What makes a good friend, showing a model-written synopsis above a verbatim quotation from Aristotle, The Nicomachean Ethics, and its citation

Captured from the public reading room on Nov 13, 2026. The answer was saved from a real Ask. The first block is the model-written synopsis. The quotation below it is the source text for a sentence ID the model selected, with the citation the application resolved. The guest allowance is five Ask requests, then five per day.

Who it is for
Readers who want an author's own words in answer to a question, with the page to check them.

Built with TypeScript · RAG · evals · SQLite

Engineering details How it works and the decisions behind it
  • Live app
  • Public source
  • Independent project
Problem
A reader asking about a classic wants the author's exact words. Models asked to copy old English tend to change them.
Engineering decision
The model picks sentences by ID and guru copies the wording from the book. Whether an answer fits the question is tested separately from whether its quotes are exact.
What it does not show yet
That every answer is the best one. The check covers the wording of each quote. It does not judge whether the passage answers the question.

What it does

Original quotations
The model selects sentence IDs. The application inserts the source text.
Quote checks
Claims that depend on a failed quotation check are removed before display.
Scoped retrieval
Readers can restrict a question to selected books and inspect the retrieved passages.
Background ingestion
A worker prepares documents while each reader's library stays in its own SQLite database.

Why the model never types a quote

A retrieval system can find the right passage and still misquote it. In early tests, models asked to copy archaic English frequently changed the wording. Better retrieval alone would not fix that problem.

The model picks the sentences, guru quotes them

I changed the answer format so the model selects sentence IDs. The application inserts the corresponding source text, then checks the quotation against the book before displaying it. Claims with a failed quote check are removed.

Quotation fidelity and answer relevance need separate checks. A quote can match the source exactly and still fail to answer the question. The model-written synopsis also remains separate from the quoted text.

Answers stay inside the books you choose

I added source-scoped retrieval so a question about one book does not silently draw its answer from another. A saved comparison uses the same questions and ranking configuration on both sides, changing where the selected-source filter is applied.

The saved evaluation records each question's result with and without the source filter.

The same engine can read another library

As of Nov 13, 2026, the starter library holds 127 public-domain books of philosophy and scripture. Each reader has a separate SQLite database. A background worker handles ingestion, and the retrieval engine can use another collection through the same quotation path.

Open the reading application or inspect the source code.

Email is the best way to reach me. I usually reply within a day. alandevaney@gmail.com

HMIS-NL