Skip to content

Give every LLM-backed task the same config shape and a model shorthand - #700

Merged
arrry-hydraDB merged 5 commits into
hydra-db:mainfrom
jaywyawhare:feat/llm-config-shape
Dec 5, 2026
Merged

arrry-hydraDB merged 5 commits into
hydra-db:mainfrom
jaywyawhare:feat/llm-config-shape

Conversation

@jaywyawhare

@jaywyawhare jaywyawhare commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Give every LLM-backed task the same config shape: one llm_tasks entry per task with enabled and model, a neutral provider/model shorthand, library-backed embedders, and the existing tier options, applied the same way across the four extraction passes, resolution, contradiction judging, embedding seeding, and embedding reranking. CLI and MCP read the same JSON settings.

Implementation details

Decisions

  • Use the same llm_tasks entry shape, with enabled and model, for all four extraction passes, resolution, contradiction judging, embedding seeding, and embedding reranking.
  • Keep existing tier options and custom clients working; per-task overrides fall back to the graph defaults, and max_tier still caps built-in model use.
  • Add a neutral provider/model shorthand and library-backed embedders in both SDKs; CLI and MCP use the same JSON settings.
  • Document per-task SDK call bounds, including how disabling passes reduces extraction concurrency.

Validation

  • Ten new tests fail on base; both conformance files are updated.
  • scripts/precheck.py passes (974 changed lines). Full suites on Kuzu pass, apart from the existing macOS pipe test in cli.test.ts; a few TypeScript cases that timed out under the full run passed on isolated reruns. Tests use fakes and make no live model calls.
  • Ruff lint and format, TypeScript lint, typecheck, and build pass.

Limits

The client-protocol exports stay with their own change, and the provider protocol stays with its own change. No config change is breaking; per-task settings default to the current behavior.

Linked issue

Closes #677

AI Assistance

AI tools helped write and test parts of this. I reviewed and ran every change.

Checklist

  • Implements an issue a maintainer has /approved.
  • Small and scoped to that issue.
  • New errors have a code and hint, the same on API, CLI, and MCP in both SDKs (see AGENTS.md). No new codes.
  • Breaking changes described below, or none.

Breaking changes

None.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@arrry-hydraDB arrry-hydraDB added feature New capability area: extraction LLM extractor and clients effort: L Design change or many modules labels Dec 4, 2026
@arrry-hydraDB
arrry-hydraDB marked this pull request as ready for review December 4, 2026 22:29

@arrry-hydraDB arrry-hydraDB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arrry-hydraDB
arrry-hydraDB merged commit d9441d4 into hydra-db:main Dec 5, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: extraction LLM extractor and clients effort: L Design change or many modules feature New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Give every LLM-backed task the same config shape and a model shorthand

2 participants