Merge pull request #1027 from dixyes/fix-qdrant-payload-id
Fix qdrant payload id
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user