llm: chunker for comment extractions + corpus docs #566

Closed
opened 2026-07-16 19:26:08 +00:00 by kert · 1 comment
Owner

Chunking source is the per-attachment .md siblings written by the #253 extraction pipeline (abstract fallback when a comment has no attachment), plus Zotero/bib corpus documents.

Scope

  • markdown-aware chunking (headings/paragraph boundaries, target ~512 tokens, overlap)
  • abstract fallback for attachment-less comments
  • deterministic chunk ids: bib item key + content hash + seq (resume/idempotency key)
  • carry metadata: item key, docket, rule, year, doctype

Acceptance

  • same input → identical chunk ids; unit-tested on fixture comments + corpus docs

Refs #253.

Spec: docs/superpowers/specs/2026-07-16-llm-module-design.md

Chunking source is the per-attachment `.md` siblings written by the #253 extraction pipeline (abstract fallback when a comment has no attachment), plus Zotero/bib corpus documents. **Scope** - [ ] markdown-aware chunking (headings/paragraph boundaries, target ~512 tokens, overlap) - [ ] abstract fallback for attachment-less comments - [ ] deterministic chunk ids: bib item key + content hash + seq (resume/idempotency key) - [ ] carry metadata: item key, docket, rule, year, doctype **Acceptance** - same input → identical chunk ids; unit-tested on fixture comments + corpus docs Refs #253. Spec: `docs/superpowers/specs/2026-07-16-llm-module-design.md`
kert added this to the P33: LLM Foundation — Ollama, pgvector, embedding index milestone 2026-07-16 19:26:08 +00:00
kert added the llm label 2026-07-16 19:26:08 +00:00
Author
Owner

Done in P33 — merged to main as 14d279b (branch llm-p33). Pilot docket CMS-2017-0092 indexed end-to-end with exact search; full test gate green at 99.75%.

Done in P33 — merged to main as 14d279b (branch llm-p33). Pilot docket CMS-2017-0092 indexed end-to-end with exact search; full test gate green at 99.75%.
kert closed this issue 2026-07-17 19:37:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#566