# 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.

- **Space:** embeddings-rag-public (https://github.com/Tech-Realm/space-embeddings-rag-public/tree/main/chunk-markdown-notes)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 3
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use embeddings-rag-public/chunk-markdown-notes` or MCP `get_pack embeddings-rag-public/chunk-markdown-notes`
- **Files:** CHANGELOG.md, code/chunk.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/corpus/delivery.md, outcome/fixtures/corpus/returns.md, outcome/fixtures/corpus/riders.md, outcome/fixtures/corpus/support.md, outcome/fixtures/qrels.jsonl, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

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

## Steps

2. `python3 code/chunk.py ~/.cache/lp-rag/<name>.jsonl '<glob>' --max-chars 1200 --overlap 150`.
3. 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.



---

Canonical URL: https://logicpacks.io/packs/embeddings-rag-public/chunk-markdown-notes

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
