Repository: langchain-ai/langchain-weaviate (language: python)

Issue:
Add support for accessing document id
FIxes langchain-ai/langchain#13238


Discussion / hints:

Fix patch:
diff --git a/langchain_weaviate/_math.py b/langchain_weaviate/_math.py
index f83f0d1..028e9d6 100644
--- a/langchain_weaviate/_math.py
+++ b/langchain_weaviate/_math.py
@@ -1,4 +1,5 @@
 """Math utils."""
+
 import logging
 from typing import List, Optional, Tuple, Union
 


Test patch:
diff --git a/tests/integration_tests/fake_embeddings.py b/tests/integration_tests/fake_embeddings.py
index 5de7483..63394e7 100644
--- a/tests/integration_tests/fake_embeddings.py
+++ b/tests/integration_tests/fake_embeddings.py
@@ -1,4 +1,5 @@
 """Fake Embedding class for testing purposes."""
+
 import math
 from typing import List
 
diff --git a/tests/integration_tests/test_vectorstores.py b/tests/integration_tests/test_vectorstores.py
index 9fd91b8..c5f2d7c 100644
--- a/tests/integration_tests/test_vectorstores.py
+++ b/tests/integration_tests/test_vectorstores.py
@@ -1,4 +1,5 @@
 """Test Weaviate functionality."""
+
 import logging
 import os
 import re
@@ -690,7 +691,8 @@ def test_documents_with_many_properties(weaviate_client, embedding_openai):
     docsearch = WeaviateVectorStore(
         client=weaviate_client,
         index_name=index_name,
-        text_key=text_key,
+        # in default schema, "page_content" is stored in "text" property
+        text_key="text",
         embedding=embedding_openai,
     )