Skip to content

Commit c96af5c

Browse files
authored
chore: Fallback to Qdrant point id (#303)
Signed-off-by: Anush008 <anushshetty90@gmail.com>
1 parent 5e05060 commit c96af5c

File tree

1 file changed

+1
-1
lines changed
  • src/neo4j_graphrag/retrievers/external/qdrant

1 file changed

+1
-1
lines changed

src/neo4j_graphrag/retrievers/external/qdrant/qdrant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def get_search_results(
211211
for point in points:
212212
assert point.payload is not None
213213
result_tuples.append(
214-
[f"{point.payload[self.id_property_external]}", point.score]
214+
[point.payload.get(self.id_property_external, point.id), point.score]
215215
)
216216

217217
search_query = get_match_query(

0 commit comments

Comments
 (0)