Skip to content

Fallback model support for VLM file parsing#125

Merged
NickGator1 merged 2 commits into
mainfrom
better_vlm_fallbacks
Jul 28, 2025
Merged

Fallback model support for VLM file parsing#125
NickGator1 merged 2 commits into
mainfrom
better_vlm_fallbacks

Conversation

@zmccormick7

Copy link
Copy Markdown
Collaborator

Adds optional fallback model support to VLM file parsing.

You can now optionally include fallback_provider and fallback_model keys in vlm_config. These will be used in an alternating fashion with the main model during the retry loop.

The `annotate_chunk` function in `dsrag/custom_term_mapping.py` defines a `start` variable that is never used. This task is to remove the unused variable to improve code quality.
Update the VLM file parsing retry mechanism to alternate between a primary and a fallback model after an initial number of failed attempts with the primary model.
@zmccormick7 zmccormick7 requested a review from NickGator1 July 8, 2025 17:28
@NickGator1 NickGator1 merged commit 959655a into main Jul 28, 2025
1 check failed
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