MarkItDownConverter drops ByteStream metadata other than file_path
I maintainer di solito rispondono entro 1 giorno
@subrahmanyahegde24 ci sta già lavorando.
Dal 16/11/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 54/100
Direzione di ricerca
Open haystack_integrations/components/converters/markitdown/__init__.py and read the run method where each ByteStream's meta is turned into the output Document's meta — today only file_path is copied, then normalized by store_full_path and merged with the user-supplied meta. Start from the reproducer in the issue to see the loss, then check the converter's existing tests under test/.../markitdown to mirror their parameterized style. Done means source meta (author, language) survives, file_path is still normalized, and explicit run meta still wins; the four new regressions and the existing 17 unit tests pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A local text ByteStream carrying author and language metadata loses both during conversion. Explicit metadata passed to run is kept, but the source metadata is not merged into the Document.
from haystack.dataclasses import ByteStream
from haystack_integrations.components.converters.markitdown import MarkItDownConverter
source = ByteStream(
data=b"Hello local text",
mime_type="text/plain",
meta={"file_path": "/original/input.txt", "author": "Alice", "language": "en"},
)
result = MarkItDownConverter().run(sources=[source])
print(result["documents"][0].meta)
# Actual: {"file_path": "input.txt"}
Expected: retain author and language, normalize file_path according to store_full_path, and let explicit run metadata override source values.
Checked on main at d88734f71069612b119c589372cbc6f767a7f76a with Python 3.12.0, MarkItDown 0.1.9 and Haystack 3.4.1. Four real local text conversions reproduce the loss. A fresh check confirms that the current main converter still copies only file_path from ByteStream metadata. A small local candidate copies source.meta before the existing path normalization and user metadata merge. It preserves the source mapping and existing override precedence.
Four parameterized regressions fail on main and pass with the candidate. The unit suite passes 17 tests, with 1 integration test deselected. Ruff and mypy pass. No external conversion service was used.
Would this be welcome as a focused fix? If so, could you assign it to @SuhrudhC? I have not opened a PR. The original converter PR #3045 was checked, including its review discussion, and the proposed change preserves its direct source handling.
This report and local candidate were prepared with Codex, which ran the checks above. No human code review is claimed.
- Lingua principale
- Python
- Stelle
- 212
- Fork
- 396
- Merge medio
- 2g 9h
- PR unite (30g)
- 95
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di deepset-ai/haystack-core-integrations
-
integration:qdrant P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
deepset-ai/haystack-core-integrations#4228 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Qdrant: `in` filter with an empty list matches all documents (delete_by_filter deletes everything)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
deepset-ai/haystack-core-integrations#4334 ·
I maintainer di solito rispondono entro 1 giorno
-
FAISS: filtered search misses matching documents outside the first top_k * 10 neighboursForse già presa @davidsbatista l’ha presa 2 giorni fa. Aperta
deepset-ai/haystack-core-integrations#4322 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Add Late Interaction Qdrant RetrieverForse già presa @anakin87 l’ha presa 6 giorni fa. Aperta
deepset-ai/haystack-core-integrations#4307 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Ollama - `OllamaChatGenerator` returns `finish_reason=None` when output is truncated (`done_reason="length"`)Forse già presa @davidsbatista l’ha presa 6 giorni fa. Aperta
deepset-ai/haystack-core-integrations#4302 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di deepset-ai/haystack-core-integrations
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
micronaut-projects/micronaut-core#14585 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
langgenius/graphon#443 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
docling-project/docling-serve#788 ·
I maintainer di solito rispondono entro 1 giorno
-
Mend: dependency security vulnerability untriaged
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
opensearch-project/cross-cluster-replication#1805 ·
I maintainer di solito rispondono entro 1 giorno