We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83ef833 commit 9e75c28Copy full SHA for 9e75c28
libs/elasticsearch/langchain_elasticsearch/_utilities.py
@@ -71,6 +71,7 @@ def _hits_to_docs_scores(
71
72
def default_doc_builder(hit: Dict) -> Document:
73
return Document(
74
+ id=hit.get("_id"),
75
page_content=hit["_source"].get(content_field, ""),
76
metadata=hit["_source"].get("metadata", {}),
77
)
0 commit comments