llm: marimo notebook helper #573
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Notebook-side client following the lake/OPPS helper pattern.
Scope
Acceptance
Spec:
docs/superpowers/specs/2026-07-16-llm-module-design.mdStatus audit (2026-08-13, repo-verified): NOT DONE. No notebook-side llm client module and no notebook imports llm anywhere in notebooks/.
Done (
222a1cd, merged to main): src/llm/client.py — an httpx-only LlmClient (search / similar / chat SSE / health) that imports without the llm extra, so it works in the notebooks container; base URL from LLM_URL, else http://llm:8000 when the compose name resolves, else localhost. notebooks/llm_search.py: docket picker, query box, /search results beside the DuckDB skin_subs.rulemaking_comments view for the same docket, every access guarded into notes. Tests: 18 client tests on httpx.MockTransport, notebook degrade tests, the lazy-import probe extended to llm.client. The nightly notebook set globs notebooks/*.py, so it is included automatically; the live path (service on the gateway network) is exercised there after the llm image is rolled.