Merge pull request #1027 from dixyes/fix-qdrant-payload-id

Fix qdrant payload id
This commit is contained in:
zrguo 2025-03-09 00:28:17 +08:00 committed by GitHub
commit 376b63b704
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,7 +135,7 @@ class QdrantVectorDBStorage(BaseVectorStorage):
logger.debug(f"query result: {results}")
return [{**dp.payload, "id": dp.id, "distance": dp.score} for dp in results]
return [{**dp.payload, "distance": dp.score} for dp in results]
async def index_done_callback(self) -> None:
# Qdrant handles persistence automatically
@ -264,7 +264,7 @@ class QdrantVectorDBStorage(BaseVectorStorage):
# Format the results to match expected return format
formatted_results = [
{**point.payload, "id": point.id} for point in matching_records
{**point.payload} for point in matching_records
]
logger.debug(