Skip to main content

AKMS Node Generation

Tooling for turning NotebookLM-curated paper batches into validated AKMS knowledge nodes.

The package has two complementary flows:

  • Batch Picker: a local UI for assigning papers to one NotebookLM notebook per AKMS batch.
  • NLM batch generator: a serial CLI that asks a batch's NotebookLM notebook for structured YAML/JSON node output, then validates and writes the results locally.

Install

uv tool install akms-nodes-gen      # akms-pick on your PATH
# or
pip install "akms[nodes-gen]"

Batch picker

akms-pick --plan path/to/generation_plan.md --bibtex-json path/to/library.json

The picker is a local web UI for assigning papers from a Zotero library to the batches of a generation plan, staging their PDFs, creating one NotebookLM notebook per batch, and writing per-batch plan JSON. It needs:

  • a generation plan, anywhere on disk (--plan);
  • a Zotero library export in Better BibTeX JSON format (--bibtex-json).

zsum is optional. It keeps the export current and adds per-paper summaries that improve search. Without it, the picker says so in a banner and works from titles, abstracts and tags.

Its own files go in a workspace, by default the plan's directory (--workspace to change it). Nothing needs an AKMS checkout. See the picker documentation for the plan format and every option.

Serial NotebookLM batch generation

nlm_batch.py runs one selected batch/cluster at a time. It does not hardcode the NotebookLM prompt, source IDs, timeout, or output format; pass those at the CLI boundary.

uv run python -m akms_nodes_gen.nlm_batch \
  --plan path/to/workspace/plans/R7_B2_pf_energy_solvers_plan.json \
  --batch-id R7_B2 \
  --out-dir outputs/R7_B2_pf_energy_solvers \
  --prompt-file path/to/notebooklm_prompt.md \
  --template-file path/to/output_template.yaml \
  --source-ids source_a,source_b \
  --timeout 180 \
  --output-format yaml

Useful safety controls:

  • --require-source-refs is on by default and requires citations/source refs on equations, algorithms, pitfalls, and references.
  • --allow-invented-edges is off by default; edge targets must match known plan IDs or Tier-1 node IDs.
  • --max-retries controls local repair attempts when NotebookLM returns invalid structure.
  • --converter and --validator can run the existing YAML-to-Markdown and node validation scripts after each YAML write.

The generator writes:

  • {node_id}.yaml
  • _raw_responses/{node_id}.txt
  • _nlm_cache/*.json
  • _nlm_batch_state.json

Docs

Build the docs locally:

uv --project packages/akms_nodes_gen run --group docs \
  mkdocs build -f packages/akms_nodes_gen/mkdocs.yml

Main docs live in packages/akms_nodes_gen/docs/.

Metadata

Release files for akms-nodes-gen 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for akms-nodes-gen 0.4.0
File Size Uploaded Provenance Actions
akms_nodes_gen-0.4.0.tar.gz 63.0 kB With provenance Details for akms_nodes_gen-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for akms-nodes-gen 0.4.0
File Interpreter ABI Platform Actions
akms_nodes_gen-0.4.0-py3-none-any.whl Python 3 none any Details for akms_nodes_gen-0.4.0-py3-none-any.whl

Total release size: 134.8 kB

Release files / akms_nodes_gen-0.4.0.tar.gz

Download URL akms_nodes_gen-0.4.0.tar.gz
Size 63.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e1379e0a477d8a6e9ea8d920a14eba7fb12f70fa80d54305aa81b8ff51e80005
BLAKE2b-256 checksum
How to use checksums
0c3f64c9d003d13b1abd7b932797e271e2801d3840ea3cde0e3469eacaecfece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / akms_nodes_gen-0.4.0-py3-none-any.whl

Download URL akms_nodes_gen-0.4.0-py3-none-any.whl
Size 71.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43fe415ce5a2b8b37ed8e48625234b41a26fd22271605240456a3b18d5813fd9
BLAKE2b-256 checksum
How to use checksums
d9e6af3739445cd83eade7c4ab935ec54923143f359f591594d94f57cad256c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for akms-nodes-gen 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for akms_nodes_gen-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page