NVIDIA / NVIDIA/NeMo-Retriever

[FEA]: to_markdown/to_markdown_by_page should differentiate by distinct document ingested

Open
#1,630 0 comments 0 reactions 1 assignee View on GitHub

@jioffe502 is already working on this.

Since Mar 14, 2026.

feature request
Dominant language
Python
Stars
3k
Forks
349
Avg merge
1d 23h
Merged PRs (30d)
116

Description

Is this a new feature, an improvement, or a change to existing functionality?

New Feature

How would you describe the priority of this feature request

Significant improvement

Please provide a clear description of problem this feature solves

Using the snippet, if you ingest a single document, the markdown conversion makes sense.

However, if your ingestion job contained multiple documents, there's no way to differentiate returns for different documents

For example, if you ingest multimodal_test.pdf and an additional single page PDF, to_markdown_by_page will return what looks like a representation of a 4 page single document.

Describe the feature, and optionally a solution or implementation and any alternatives

Both to_markdown and to_markdown_by page should probably include a source_filename field by which chunks are grouped.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.