Skip to content

Commit

Permalink
feat: 修复生成预加载计划时反序列化失败 TencentBlueKing#2626
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlkl authored Sep 29, 2024
1 parent 61f2460 commit 827c00b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class MilvusVectorStore(
val results = ArrayList<Document>()
val respSearch = milvusClient.search(req)
for (vector in respSearch) {
val similarity = getResultSimilarity((vector[DISTANCE_FIELD_NAME] as Double).toFloat())
val similarity = getResultSimilarity(vector[DISTANCE_FIELD_NAME].toString().toFloat())
if (similarity < request.similarityThreshold) {
continue
}
Expand Down

0 comments on commit 827c00b

Please sign in to comment.