Browse Source

search_method-v1

luojunhui 3 weeks ago
parent
commit
ea2fed64c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      applications/utils/milvus/search.py

+ 1 - 1
applications/utils/milvus/search.py

@@ -30,7 +30,7 @@ class MilvusBase:
         return [
             {
                 "pk": hit.id,
-                "score": 1 - hit.distance,
+                "score": hit.distance,
                 **{
                     key: list(value) if key in special_keys else value
                     for key, value in (hit.get("entity", {}) or {}).items()