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

View File

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