Skip to content

Commit

Permalink
Merge pull request #1027 from dixyes/fix-qdrant-payload-id
Browse files Browse the repository at this point in the history
Fix qdrant payload id
  • Loading branch information
LarFii authored Mar 8, 2025
2 parents 3ae261d + 458eafd commit 376b63b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightrag/kg/qdrant_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 376b63b

Please sign in to comment.