Files
stack/docs/docs/cli/prisma.md
kert 6eb4f2cb8b
Some checks failed
CI / lint (push) Successful in 40s
CI / notebooks-smoke (push) Successful in 1m52s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Deploy / docs (push) Has been skipped
Deploy / api (push) Has been skipped
Deploy / llm (push) Has been skipped
Deploy / mc (push) Has been skipped
CI / test (push) Failing after 3m8s
Infra CI / zotero (push) Successful in 31s
Infra CI / notebooks (push) Successful in 1m4s
Infra CI / api (push) Successful in 1m29s
Infra CI / docs (push) Successful in 1m55s
Infra CI / mc (push) Failing after 58s
Infra CI / llm (push) Successful in 1m20s
Deploy / report (push) Successful in 22s
fix(llm): rules never double as corpus; citations say proposed/final/correction; IOM chapters indexed by section
Every Federal Register rule item was indexed twice: as anchored FR
paragraphs in the rules collection (67k chunks, federalregister.gov
links) and again from its PDF attachment into corpus (161k chunks,
kind 'corpus', item-URL links). The PDF copies outnumbered the anchored
ones 2:1 in retrieval, so proposed rules and corrections came back as
'corpus' citations. iter_corpus_refs now skips rule-typed and
fr_anchors-bearing items; stack llm prune-rules deletes the corpus
copies (and their index_state rows) and stamps rule_kind
(proposed/final/correction, bib.frlink.rule_kind) on the rules chunks;
new rule docs carry rule_kind from the start. as_source exposes it, the
prompt's source line reads '(proposed rule, 2026-07-16)', and the chat
and search badges show it instead of 'rule'.

CMS Internet-Only Manual chapters: llm.manuals.sectionize turns each
body section heading (the ones followed by their '(Rev.' line; the
table of contents stays plain) into a markdown heading, so chunks split
at section boundaries and carry section / iom_section / iom_title plus
the chapter's publication number and chapter; enrich_pdf_pages lets
chunks under a sub-heading inherit the enclosing file so they keep
their page. Manual citations read 'IOM 100-04 ch.18 §10.1.2' and link
to the chapter PDF page; /search takes doctype, manual, chapter and
section filters.
2026-09-24 19:38:17 -04:00

2.4 KiB

title, sidebar_position
title sidebar_position
stack prisma 88

stack prisma

Usage: stack prisma [OPTIONS] COMMAND [ARGS]...                                
                                                                                
 LLM-driven PRISMA screening workflow.                                          
                                                                                
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                  │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ init      Create (or re-load) the project's three Zotero anchor items:       │
│           criteria, extraction-template, and the reasons codebook.           │
│ export    Dump one Zotero item as the LLM-ready markdown snapshot.           │
│ ping-llm  Send a cheap ping through the configured provider.                 │
│ screen    Stage 2 — LLM-driven title/abstract screening pass.                │
│ eligible  Stage 3 — LLM-driven full-text eligibility pass.                   │
│ extract   Stage 3+ — structured data extraction on included studies.         │
│ flow      Emit the PRISMA 2020 flow diagram from current tag counts.         │
│ fetch     Fetch PDFs for every non-excluded item lacking an attachment.      │
│ run       Orchestrate all PRISMA stages in order.                            │
│ vpn       DigitalOcean SOCKS5 exit for fallback fetch (SSH tunnel, no sudo   │
│           needed).                                                           │
╰──────────────────────────────────────────────────────────────────────────────╯