Skip to content

Increase Ollama num_predict to fix JSON truncation on long headlines#43

Open
frederickkeune wants to merge 1 commit into
mainfrom
fix/explanation-json-token-budget
Open

Increase Ollama num_predict to fix JSON truncation on long headlines#43
frederickkeune wants to merge 1 commit into
mainfrom
fix/explanation-json-token-budget

Conversation

@frederickkeune

Copy link
Copy Markdown
Collaborator

Manual scoring of 30 explanations surfaced two rows falling back to the offline placeholder even with Ollama reachable: the 220-token budget was cutting off the model's JSON reply mid-object on unusually long/quote-heavy headlines, so _extract_explanation had nothing parseable. Bumped to 350 to give the reasoning + explanation fields enough room to complete.

Manual scoring of 30 explanations surfaced two rows falling back to the
offline placeholder even with Ollama reachable: the 220-token budget was
cutting off the model's JSON reply mid-object on unusually long/quote-heavy
headlines, so _extract_explanation had nothing parseable. Bumped to 350 to
give the reasoning + explanation fields enough room to complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant