Files
stack/docs/docs/cli/prisma-extract.md
kert b8b44e5b95
Some checks failed
CI / lint (push) Successful in 54s
Infra CI / zotero (push) Successful in 25s
Infra CI / notebooks (push) Successful in 1m12s
CI / notebooks-smoke (push) Successful in 1m52s
CI / test (push) Failing after 2m53s
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
Infra CI / docs (push) Successful in 1m49s
Infra CI / api (push) Successful in 1m27s
Infra CI / mc (push) Failing after 50s
Infra CI / llm (push) Successful in 1m13s
Deploy / report (push) Has been cancelled
feat(llm): categorise manual sections by theme — stack llm stamp-themes, /search?theme=, themes on sources
llm.themes stamps the P35 vocabulary onto indexed chunks with one
normalised matrix product per batch against the theme cards (no model
calls): the top themes clearing --min-score land in cmetadata as
themes / theme_scores, with themes_vocab recording the vocabulary
version so a vocabulary bump re-stamps. Default scope is the CMS
manual sections (corpus, doctype manual); any collection/doctype/key
can be stamped. /search takes theme=<slug> (a Python-side match over
the comma-joined slugs, like year) and every source carries themes.

Also: the thread-local Store test compared against the executor's
worker cap (8) although the executor spawns threads lazily, so under
load it failed with 7; it now compares against the threads that ran.
2026-09-24 19:46:04 -04:00

2.9 KiB

title, sidebar_position
title sidebar_position
stack prisma extract 95

stack prisma extract

Usage: stack prisma extract [OPTIONS] NAME                                     
                                                                                
 Stage 3+ — structured data extraction on included studies.                     
                                                                                
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ *    name      TEXT  Project slug. [required]                                │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --limit        -n               INTEGER  [default: 0]                        │
│ --db                            PATH     [default:                           │
│                                          data/zotero/data/zotero.sqlite]     │
│ --storage                       PATH     [default: data/zotero/data/storage] │
│ --hold             --no-hold             [default: hold]                     │
│ --hosts                         TEXT     Comma-separated Ollama base URLs —  │
│                                          fleet mode (#655): parallel         │
│                                          extraction via native /api/chat     │
│                                          with per-request num_ctx; bypasses  │
│                                          PRISMA_LLM_* env config.            │
│ --fleet-model                   TEXT     Model name on every fleet host.     │
│                                          [default: qwen2.5:14b]              │
│ --num-ctx                       INTEGER  Context window per fleet request.   │
│                                          [default: 8192]                     │
│ --per-host                      INTEGER  Max in-flight requests per fleet    │
│                                          host.                               │
│                                          [default: 1]                        │
│ --help                                   Show this message and exit.         │
╰──────────────────────────────────────────────────────────────────────────────╯