The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: fix duplicate content (#28003)
Renzo-vS567dc1e4228e
diff --git a/libs/community/langchain_community/vectorstores/azuresearch.py b/libs/community/langchain_community/vectorstores/azuresearch.pyindex 193f6fc680..2a715b846f 100644--- a/libs/community/langchain_community/vectorstores/azuresearch.py+++ b/libs/community/langchain_community/vectorstores/azuresearch.py@@ -1798,7 +1798,9 @@ def _result_to_document(result: Dict) -> Document:fields_metadata = json.loads(result[FIELDS_METADATA])else:fields_metadata = {- key: value for key, value in result.items() if key != FIELDS_CONTENT_VECTOR+ key: value+ for key, value in result.items()+ if key not in [FIELDS_CONTENT_VECTOR, FIELDS_CONTENT]}# IDsif FIELDS_ID in result:@@ -1806,7 +1808,7 @@ def _result_to_document(result: Dict) -> Document:else:fields_id = {}return Document(- page_content=result.pop(FIELDS_CONTENT),+ page_content=result[FIELDS_CONTENT],metadata={**fields_id,**fields_metadata,