Files
stack/docs/docs/cli/prisma-run.md
kert 65f8d785a1 feat(llm): theme tagging chain + docket runner + write-back — llm.tagger, Store.merge_extra, stack llm tag (refs #575, #576)
llm.tagger: cosine shortlist of the vocabulary's theme cards against a
comment's already-indexed chunks (no re-embedding — text and vector come
from langchain_pg_embedding), one yes/no judgement per candidate on the
largest live host at temperature 0 with the scoring chunk as evidence,
up to max_tags accepted with the shortlist similarity as confidence.
State on the bib item (extra_json.llm_tags: vocab version, model,
content hash, tags with evidence chunk, the full shortlist with
verdicts) makes runs resumable; apply_tags replaces exactly the item's
llm:* tags and never touches hand tags. Store.merge_extra merges
top-level keys into extra_json. Every collaborator is injected so the
pure pieces are tested without Ollama or pgvector.

stack llm tag --docket D [--limit N] [--force] [--dry-run] [--top]
[--max-tags] [--min-confidence] [--verbose]; _tagging_runtime wires the
store, pgvector loader, card vectors, judge and model.
2026-09-22 16:53:23 -04:00

2.5 KiB

title, sidebar_position
title sidebar_position
stack prisma run 95

stack prisma run

Usage: stack prisma run [OPTIONS] NAME                                         
                                                                                
 Orchestrate all PRISMA stages in order.                                        
                                                                                
 screen → fetch → eligible → extract → flow, all inside one zotero              
 hold. Fetch only pulls PDFs for non-excluded items; stage 2                    
 exclusions are terminal by design.                                             
                                                                                
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ *    name      TEXT  Project slug. [required]                                │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --limit         -n               INTEGER  Same limit applied to every stage. │
│                                           [default: 0]                       │
│ --skip-fetch                                                                 │
│ --skip-extract                                                               │
│ --db                             PATH     [default:                          │
│                                           data/zotero/data/zotero.sqlite]    │
│ --storage                        PATH     [default:                          │
│                                           data/zotero/data/storage]          │
│ --hold              --no-hold             [default: hold]                    │
│ --help                                    Show this message and exit.        │
╰──────────────────────────────────────────────────────────────────────────────╯