⌨ Explore the graph from the CLI¶
Status: how-to.
Written for you at a terminal with a synced corpus, asking "what is my corpus about, and where should the next draft start?" without opening a browser.
TOPIC-DISCOVERY.md says how every number here is
computed and CLI.md documents
every flag. EXPLORE-WEB.md is the interactive twin; it
reads the same stored artefacts, so the two cannot disagree. Every
command honours --json.
🗺 The topic map¶
1 2 3 4 5 6 7 | |
Real corpus, trimmed. Every topic with its provenance (seed or
emergent), size and top terms, plus an uncovered by any topic: line
naming the papers the topic model and every seed phrase passed over.
--origins tells a hand-written seed from an extracted keyword and a
corroborated phrase.
🔍 One topic¶
1 | |
The topic's papers with full ledger entries and each paper's other topics, both linked-topic families with their evidence, and the stored brokerage numbers per family. Any free phrase resolves through the ladder (exact, fuzzy, hybrid BM25+cosine, then paper search), and the output names which rung answered.
--out overview.md writes an extractive Markdown overview from verbatim
member-paper snippets. --hops N shows the neighbourhood as rings by hop
distance, each neighbour typed by the family that reached it, and counts
what the topic cannot reach:
1 2 3 4 5 6 7 8 9 | |
Without --family overlap or --family semantic the walk is over the
union, so "two hops" means "two hops over whichever family got there
first". With it the header names the family, and a neighbour both reach
is typed by the one you walked:
1 2 3 4 5 6 7 | |
This is the terminal's half of the app's Edges picker. The topic view closes with the stored brokerage numbers:
1 2 3 4 5 | |
🧩 The broad areas¶
1 2 3 4 5 6 7 | |
Real corpus, trimmed. The stored merge tree cut into as close to eight groups as it allows: the app's resolution slider, with the same labels (biggest member leads, the rest counted).
🤝 Where the families disagree¶
1 2 3 4 5 6 7 8 9 10 | |
Real corpus, trimmed. Both families' stored MCL partitions and the two disagreement lists (talk alike but share no papers; share papers but talk differently), sharpest first, capped with the drop reported.
🛤 The path between two topics¶
1 2 3 4 5 | |
Real corpus, evidence lists trimmed. The strongest chain over one
family, each hop with its evidence. --family is required, because the
walk never uses one fused weight. "No path over this family" is a real
answer, and often the interesting one.
🚫 Why is there no edge here?¶
1 2 3 4 5 6 | |
Real corpus, citekey list trimmed. The hypergeometric tail the gate weighed and its verdict, including the stored threshold, which the app cannot show.
⚖ Several topics side by side¶
1 2 3 4 5 6 7 8 9 | |
Real corpus, trimmed. Also lists the bridge papers held by two or more topics and the edges among them. It takes two to six topics; past six it refuses and names the count instead of truncating silently.
💠 One paper, and the exports¶
1 2 3 | |
--paper lists every topic one paper belongs to, with scores. --html
writes the one-file static page and --app the interactive app
(EXPLORE-WEB.md).
🗒 The command map¶
| You want | Command |
|---|---|
| the topic map | chitragupta corpus discover |
| one topic's papers, neighbours and brokerage | chitragupta corpus discover "PHRASE" |
| one paper's topics | chitragupta corpus discover --paper CITEKEY |
| the broad areas, as N groups | chitragupta corpus discover --groups N |
| where the families disagree | chitragupta corpus discover --clusters [--inflation X] |
| the path between two topics | chitragupta corpus discover --path "A" "B" --family F |
| why two topics have no overlap edge | chitragupta corpus discover --why "A" "B" |
| several topics side by side | chitragupta corpus discover --compare "A" "B" ["C" ...] |
| a topic's neighbourhood as rings | chitragupta corpus discover "PHRASE" --hops 2 |
| a Markdown overview to seed a draft | chitragupta corpus discover "PHRASE" --out overview.md |
| only the topics you named, or only the emergent ones | chitragupta corpus discover --origins seed,corroborated |
| the static one-file page | chitragupta corpus discover --html topics.html |
| the interactive app | chitragupta corpus discover --app topicapp/ |
| any of the above, machine-readable | add --json |
Every one of the app's analytical views has a terminal twin here,
pinned to the app's arithmetic by a shared case file under
tests/topic_app/.