From 2063f6c6c84d78af56613b5be0173583b6414c81 Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 3 May 2025 21:51:45 +0800 Subject: [PATCH] Fix created_at handling bug for Milvus --- lightrag/kg/milvus_impl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightrag/kg/milvus_impl.py b/lightrag/kg/milvus_impl.py index 00de16c5..23e178bc 100644 --- a/lightrag/kg/milvus_impl.py +++ b/lightrag/kg/milvus_impl.py @@ -128,7 +128,8 @@ class MilvusVectorDBStorage(BaseVectorStorage): **dp["entity"], "id": dp["id"], "distance": dp["distance"], - "created_at": dp["entity"].get("created_at"), + # created_at is requested in output_fields, so it should be a top-level key in the result dict (dp) + "created_at": dp.get("created_at"), } for dp in results[0] ]