Tomaz Bratanic 2 weeks ago committed by GitHub
commit 7246a8cbef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1043,6 +1043,19 @@ class Neo4jVector(VectorStore):
results = self.query(read_query, params=parameters)
if any(result["text"] is None for result in results):
if not self.retrieval_query:
raise ValueError(
f"Make sure that none of the `{self.text_node_property}` "
f"properties on nodes with label `{self.node_label}` "
"are missing or empty"
)
else:
raise ValueError(
"Inspect the `retrieval_query` and ensure it doesn't "
"return None for the `text` column"
)
docs = [
(
Document(

Loading…
Cancel
Save