feat(pi): add ICM and qmd for vector-based RAG memory #3

Open
eumel wants to merge 1 commit from eumel/nixos-config:feature/pi-memory-rag into main
Contributor

Pi Agent bekommt zwei Memory-Tools aus dem llm-agents.nix Flake:

ICM (Infinite Context Memory)

  • Vektorbasiertes RAG-Gedaechtnis mit Auto-Dedup (85% Similarity)
  • Temporal Decay (alte Fakten verblassen automatisch)
  • Hybrid Search (BM25 30% + Cosine 70% via sqlite-vec)
  • MCP Server mit 31 Tools (store, recall, forget, Knowledge Graph CRUD)
  • Single SQLite file, multilingual embeddings (e5-base)
  • Auto-konfiguriert Pi via 'icm init'

qmd

  • Hybride Suchmaschine (BM25 + Vector + LLM Reranking)
  • Fuer Markdown-Notizen, genutzt von pi-memctx als Such-Backend

Beide Tools sind in der Pi-Jail verfuegbar. ICM's SQLite-DB und qmd's Cache werden per try-readwrite gemountet und gebackupt.

Siehe: https://github.com/numtide/llm-agents.nix
https://github.com/rtk-ai/icm
https://github.com/tobi/qmd

Pi Agent bekommt zwei Memory-Tools aus dem llm-agents.nix Flake: ## ICM (Infinite Context Memory) - Vektorbasiertes RAG-Gedaechtnis mit Auto-Dedup (85% Similarity) - Temporal Decay (alte Fakten verblassen automatisch) - Hybrid Search (BM25 30% + Cosine 70% via sqlite-vec) - MCP Server mit 31 Tools (store, recall, forget, Knowledge Graph CRUD) - Single SQLite file, multilingual embeddings (e5-base) - Auto-konfiguriert Pi via 'icm init' ## qmd - Hybride Suchmaschine (BM25 + Vector + LLM Reranking) - Fuer Markdown-Notizen, genutzt von pi-memctx als Such-Backend Beide Tools sind in der Pi-Jail verfuegbar. ICM's SQLite-DB und qmd's Cache werden per try-readwrite gemountet und gebackupt. Siehe: https://github.com/numtide/llm-agents.nix https://github.com/rtk-ai/icm https://github.com/tobi/qmd
Pi Agent gets two memory tools from the llm-agents.nix flake:

- ICM (Infinite Context Memory): Vector RAG with auto-dedup (85% similarity),
  temporal decay, hybrid search (BM25 + cosine via sqlite-vec). MCP server
  with 31 tools. Single SQLite file, multilingual embeddings (e5-base).
  Auto-configures Pi via 'icm init'.

- qmd: Hybrid search engine (BM25 + vector + LLM reranking) for markdown
  notes. Used by pi-memctx as search backend.

Both tools are available in the Pi jail. ICM SQLite DB and qmd cache
are mounted read-write and backuped.

See: https://github.com/numtide/llm-agents.nix
     https://github.com/rtk-ai/icm
     https://github.com/tobi/qmd
This pull request has changes conflicting with the target branch.
  • modules/ai/pi.nix
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u feature/pi-memory-rag:eumel-feature/pi-memory-rag
git switch eumel-feature/pi-memory-rag

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff eumel-feature/pi-memory-rag
git switch eumel-feature/pi-memory-rag
git rebase main
git switch main
git merge --ff-only eumel-feature/pi-memory-rag
git switch eumel-feature/pi-memory-rag
git rebase main
git switch main
git merge --no-ff eumel-feature/pi-memory-rag
git switch main
git merge --squash eumel-feature/pi-memory-rag
git switch main
git merge --ff-only eumel-feature/pi-memory-rag
git switch main
git merge eumel-feature/pi-memory-rag
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
palo/nixos-config!3
No description provided.