Skip to content

feat: LLM retry logic + refactor chunked extraction - #55

Merged
SeanClay10 merged 3 commits into
mainfrom
feat/llm-retry
Apr 20, 2026
Merged

SeanClay10 merged 3 commits into
mainfrom
feat/llm-retry

Conversation

@SeanClay10

Copy link
Copy Markdown
Collaborator

Fixes several bugs in the chunked extraction pipeline and adds retry logic to all Ollama calls.

chunked_extraction.py was silently dropping chunk content due to a hardcoded truncation and an undersized context window, and had duplicated classifier loading code that was not using the shared implementation. llm_client.py had no fault tolerance for Ollama timeouts or connection failures, causing the pipeline to crash on long-running extractions.

Changes

  • chunked_extraction.py: remove duplicate load_classifier, fix chunk truncation, increase context window, remove unused import
  • llm_client.py: wrap all Ollama calls with timeout and exponential backoff retry

@SeanClay10
SeanClay10 merged commit 73e0d79 into main Apr 20, 2026
2 checks passed
@SeanClay10
SeanClay10 deleted the feat/llm-retry branch April 20, 2026 22:17
@marknovak marknovak mentioned this pull request Jul 9, 2026
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.

2 participants