DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to search and ask questions across your own notes with Loci

Index a notes folder, then get search hits and cited answers from the terminal.

  • Top pick
  • Research
  • Intermediate
  • 30 minutes
  • From the README
  • Any agent

Credentials. Provider API keys go in config.toml or the BRAIN_LLM_API_KEY and BRAIN_EMBED_API_KEY variables, so keep them out of the repository.

Who it is forA researcher or developer with scattered Markdown notes who needs to find an old decision fast.

The problemDecisions and facts are buried across many files, and plain keyword search misses them.

The outcomeA local index that returns excerpts and answers that cite the source file and section.

What you need first

  • Python 3.11 or newer
  • git and a terminal
  • An embedding endpoint that supports /embeddings, plus a chat endpoint (may be a local one)
  • A notes or project docs directory to index

Steps

  1. Run git clone https://github.com/IvenKooLab/loci.git and then cd loci.
  2. Run python -m pip install -e . and then cp config.example.toml config.toml.
  3. Edit config.toml: fill in [llm] and [embed], and set [[sources]].path to your notes directory.
  4. Run loci ingest to build the index.
  5. Run loci search "deployment decisions" and then loci ask "What did we decide about deployment, and why?".

Prompt for your agent

Using the IvenKooLab/loci repo, configure config.toml so [[sources]].path points to <notes-directory>, run loci ingest, then run loci ask with the question <question>. Expected output: an answer with file > section citations. Verify that each citation names a file that exists under <notes-directory>.

Caveat. Embedding and chat requests go to the providers you configure, so only local endpoints keep the whole workflow offline.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for IvenKooLab/loci and "Search and ask questions across your own notes"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer