Skip to content

Packs / embeddings-rag-public

chunk-markdown-notes

Split markdown notes (e.g. your own notes, by path) into heading-aware, overlapping chunks with stable ids, written to a local JSONL outside git for search and RAG.

L2 Checks passed 3 of 3 runsv0.1.0Tech-Realm/space-embeddings-rag-public

Install

logicpacks pack use embeddings-rag-public/chunk-markdown-notes
get_pack embeddings-rag-public/chunk-markdown-notes

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: python-stdlib
  • Checks: 3 in outcome/checks.yaml
  • Code: chunk.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

chunks.jsonl with stable ids (#) and heading context, built from notes referenced by path.

Steps

  1. python3 code/chunk.py ~/.cache/lp-rag/<name>.jsonl '<glob>' --max-chars 1200 --overlap 150.
  2. Feed the JSONL to retrieval-eval-recall, local-embeddings-ollama or rag-answer-with-citations.

Edge cases

  • Chunk ids change when a note's headings change: rebuild the index after rebuild.sh.
  • Notes with secrets: the index is local only; never upload it.

Don'ts

  • Don't commit chunks or indexes of private notes.