Fix created_at handling bug for Milvus
This commit is contained in:
parent
ca240fa463
commit
2063f6c6c8
1 changed files with 2 additions and 1 deletions
|
|
@ -128,7 +128,8 @@ class MilvusVectorDBStorage(BaseVectorStorage):
|
||||||
**dp["entity"],
|
**dp["entity"],
|
||||||
"id": dp["id"],
|
"id": dp["id"],
|
||||||
"distance": dp["distance"],
|
"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]
|
for dp in results[0]
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue