Merged
Conversation
Kirky-X
pushed a commit
to Kirky-X/RAG-Anything
that referenced
this pull request
Dec 18, 2025
VLM Enhanced Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces VLM Enhanced Query mode to RAGAnything, enabling automatic multimodal analysis when documents contain images. The system can now pass images directly to Vision Language Models (VLM) alongside text context for comprehensive analysis.
Related Issues
N/A
Changes Made
vision_model_funcsignature: Addedmessagesparameter to support multimodal VLM communication formatraganything_example.pyto demonstrate the new VLM functionality__init__.pyKey Features Added:
vision_model_funcis available) and manual control viavlm_enhancedparameterChecklist
Additional Notes
This feature significantly enhances RAGAnything's multimodal capabilities by enabling seamless integration of visual content analysis within the RAG pipeline. Users can now ask questions about charts, diagrams, and other visual elements in documents without additional preprocessing steps. The implementation maintains full backward compatibility with existing functionality while providing powerful new capabilities for multimodal document understanding.