diff --git a/lightrag/kg/qdrant_impl.py b/lightrag/kg/qdrant_impl.py index 5049bc5c7..131f81799 100644 --- a/lightrag/kg/qdrant_impl.py +++ b/lightrag/kg/qdrant_impl.py @@ -135,7 +135,7 @@ async def query(self, query: str, top_k: int) -> list[dict[str, Any]]: 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 @@ async def search_by_prefix(self, prefix: str) -> list[dict[str, Any]]: # 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(