llm: module scaffold + stack[llm] extra #563

Closed
opened 2026-07-16 19:26:07 +00:00 by kert · 1 comment
Owner

New src/llm package following the skinny-module conventions.

Scope

  • src/llm/__init__.py + module skeleton (chunk/embed/index/rag/tag/api)
  • llm extra in pyproject: langchain-core, langchain-ollama, langchain-postgres, fastapi, uvicorn, psycopg[binary], pydantic
  • [llm] config section (ollama hosts, models, pg dsn, collection names) wired through conf
  • tests scaffold with mocked Ollama/pgvector

Acceptance

  • pip install stack[llm] resolves; uv run python -c 'import llm' works
  • config readable via conf with sane defaults; coverage bar holds

Spec: docs/superpowers/specs/2026-07-16-llm-module-design.md

New `src/llm` package following the skinny-module conventions. **Scope** - [ ] `src/llm/__init__.py` + module skeleton (chunk/embed/index/rag/tag/api) - [ ] `llm` extra in pyproject: langchain-core, langchain-ollama, langchain-postgres, fastapi, uvicorn, psycopg[binary], pydantic - [ ] `[llm]` config section (ollama hosts, models, pg dsn, collection names) wired through conf - [ ] tests scaffold with mocked Ollama/pgvector **Acceptance** - `pip install stack[llm]` resolves; `uv run python -c 'import llm'` works - config readable via conf with sane defaults; coverage bar holds Spec: `docs/superpowers/specs/2026-07-16-llm-module-design.md`
kert added this to the P33: LLM Foundation — Ollama, pgvector, embedding index milestone 2026-07-16 19:26:07 +00:00
kert added the llm label 2026-07-16 19:26:07 +00:00
Author
Owner

Done in P33 — merged to main as 14d279b (branch llm-p33). Pilot docket CMS-2017-0092 indexed end-to-end with exact search; full test gate green at 99.75%.

Done in P33 — merged to main as 14d279b (branch llm-p33). Pilot docket CMS-2017-0092 indexed end-to-end with exact search; full test gate green at 99.75%.
kert closed this issue 2026-07-17 19:37:20 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#563