LocalRAG

A local document-search system for finding and questioning personal files without sending their contents to an external service.

What changed

A library no one searches Answers with their sources, offline

  1. Everything stays on the machine

    Documents are read, split into sections and embedded on the computer itself. The index, the language model and the browser interface all run locally, so nothing leaves the machine and no outside service sees the library.

  2. Two searches, one ranking

    Each question is searched twice: by meaning with embeddings and by words with full-text search. The two lists are fused into one ranking. A reranker sits behind an interface and is off by default.

  3. Answers are checked for invention

    A golden set measures whether retrieval finds the right passages. A second harness checks whether the answer uses the evidence it was given, invents anything, or refuses a question the library cannot answer. The suite runs automatically.

  4. Notes that stay honest

    A topic can be compiled into a Markdown note whose every claim resolves to a real passage in the library. A lint reports claims that go stale as documents change, and a book can be rewritten chapter by chapter into a guide for one person working without a team.

A question to your own library

  1. Your documents
  2. Local import
  3. Two searches, one ranking Search by meaning and by words
  4. Answer
  5. Invention check
Everything runs on the local machine, and answers are checked for invented content.

Problem

Finding information in a large personal document library is hard, and private material cannot be sent to an outside AI service.

Value

A large personal library becomes a quickly usable knowledge base that runs locally.

Role

Designed the offline setup, document processing, semantic retrieval and tests. Agents implemented much of the code.

  • Built document import and search by meaning that run entirely on a local machine.
  • Put together a document library on product development, UX and architecture.
  • Built a broad automated test suite.

Sources

  • Automated test suite
  • Private version that runs on a local machine