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.
Install
logicpacks pack use embeddings-rag-public/chunk-markdown-notesget_pack embeddings-rag-public/chunk-markdown-notesThe 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 (
Steps
python3 code/chunk.py ~/.cache/lp-rag/<name>.jsonl '<glob>' --max-chars 1200 --overlap 150.- 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.