worktree-fix-ollama-json-extraction #12

Merged
schaefera merged 4 commits from worktree-fix-ollama-json-extraction into master 2026-08-19 12:19:47 +00:00

4 commits

Author SHA1 Message Date
Austin Schaefer
0558ac5c4f refactor: Try to clean up code
Some checks failed
CI / test (pull_request) Failing after 48s
2026-08-19 14:19:32 +02:00
Austin Schaefer
ce0bf8dafd fix: restore doubleo7 rebrand in case-study intro
Some checks failed
CI / test (pull_request) Failing after 48s
The "Update rig to 0.42" commit (cd580f3) accidentally reverted this
paragraph's `doubleo7` branding back to the old `deep_research` name and
degraded the prose along with it -- unrelated to the rig version bump.
Restore the rebranded wording from 5bb4ed1.
2026-08-19 13:08:32 +02:00
Austin Schaefer
9e7291214b fix: use Native structured output for reviewer instead of forced tool call
Some checks failed
CI / test (pull_request) Failing after 56s
Ollama doesn't support tool_choice, so rig's tool-forced extractor
(client.extractor::<Review>()) never actually compelled the reviewer's
small local model to call the submit tool -- it just answered in prose,
and extraction exhausted its retries with "No data extracted" every time.

Switch to rig's typed-prompt API (agent.prompt_typed::<Review>()), which
uses Native output mode: Ollama's own `format` JSON-schema constraint on
the completion request, honored regardless of tool-calling ability.
Verified against a live local Ollama instance.
2026-08-19 13:04:53 +02:00
Austin Schaefer
cd580f3bec chore: Update rig to 0.42 2026-08-19 12:11:47 +02:00