The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
doc-loader: retain Azure Doc Intelligence API metadata in Document parser (#28382)
Johannes Mohrenc1d348e95d0f
diff --git a/libs/community/langchain_community/document_loaders/parsers/doc_intelligence.py b/libs/community/langchain_community/document_loaders/parsers/doc_intelligence.pyindex 2d77fcd1f8..107e569339 100644--- a/libs/community/langchain_community/document_loaders/parsers/doc_intelligence.py+++ b/libs/community/langchain_community/document_loaders/parsers/doc_intelligence.py@@ -71,7 +71,7 @@ class AzureAIDocumentIntelligenceParser(BaseBlobParser):yield ddef _generate_docs_single(self, result: Any) -> Iterator[Document]:- yield Document(page_content=result.content, metadata={})+ yield Document(page_content=result.content, metadata=result.as_dict())def lazy_parse(self, blob: Blob) -> Iterator[Document]:"""Lazily parse the blob."""