luojunhui пре 2 недеља
родитељ
комит
debb504f74
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      applications/utils/milvus/search.py

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

@@ -28,7 +28,7 @@ class MilvusBase:
                     for key, value in (hit.get("entity", {}) or {}).items()
                 },
             }
-            for hit in hits[0]
+            for hit in hits[0] if hit.distance >= 0.6
         ]