Add text_image modality support for text elements in multimodal embedder#1305
Open
edknv wants to merge 10 commits intoNVIDIA:mainfrom
Open
Add text_image modality support for text elements in multimodal embedder#1305edknv wants to merge 10 commits intoNVIDIA:mainfrom
edknv wants to merge 10 commits intoNVIDIA:mainfrom
Conversation
…knv/nv-ingest into edwardk/llama-nemotron-embed-vl-1b-v2
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 PR enables the ingestion pipeline to pair extracted text with its source image for multimodal embedding (e.g., using llama-3.2-nemoretriever-1b-vlm-embed-v1). It also adds logic to aggregate all text content from a PDF page and attach it to a full-page image, which yields the best recall on multiple datasets (bo10k, earnings). Despite the improved recall of this path, it is not set as default due to lower throughput.
nvidia/llama-nemotron-embed-vl-1b-v2to the list of supported multimodal models.source_image) before it gets overwritten by text, allowing the embedding stage to access the visual context._aggregate_page_contentwhich collects all text from TEXT and STRUCTURED (tables/charts) elements on a specific page and attaches it to the PAGE_IMAGE entry.embed_text_elements, etc.) to allow users to skip embedding individual text snippets if they are already being embedded as part of an aggregated page image.Usage
Checklist