llm: pgvector schema + migrations #565

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

Vector storage on the existing Postgres — no new stateful service.

Scope

  • enable pgvector extension; dedicated llm schema
  • comments + corpus collections (langchain-postgres layout) with metadata columns for docket/rule/year/doctype filters
  • HNSW index; migration script (idempotent, runs at service start or via CLI)
  • confirm pg backups cover the new schema

Acceptance

  • migrations idempotent; filtered similarity query works end-to-end against a seeded row

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

Vector storage on the existing Postgres — no new stateful service. **Scope** - [ ] enable pgvector extension; dedicated `llm` schema - [ ] `comments` + `corpus` collections (langchain-postgres layout) with metadata columns for docket/rule/year/doctype filters - [ ] HNSW index; migration script (idempotent, runs at service start or via CLI) - [ ] confirm pg backups cover the new schema **Acceptance** - migrations idempotent; filtered similarity query works end-to-end against a seeded row 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 llminfra labels 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#565