소스 검색

'space_type' => 'cosinesimil', =>innerproduct

visuddhinanda 5 달 전
부모
커밋
15cd510895
1개의 변경된 파일과 3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      api-v13/app/Services/OpenSearchService.php

+ 3 - 3
api-v13/app/Services/OpenSearchService.php

@@ -198,7 +198,7 @@ class OpenSearchService
                             'dimension' => 1536,
                             'method'    => [
                                 'name'       => 'hnsw',
-                                'space_type' => 'cosinesimil',
+                                'space_type' => 'innerproduct',
                                 'engine'     => 'faiss',
                             ],
                         ],
@@ -234,7 +234,7 @@ class OpenSearchService
                             'dimension' => 1536,
                             'method'    => [
                                 'name'       => 'hnsw',
-                                'space_type' => 'cosinesimil',
+                                'space_type' => 'innerproduct',
                                 'engine'     => 'faiss',
                             ],
                         ],
@@ -285,7 +285,7 @@ class OpenSearchService
                             'dimension' => 1536,
                             'method'    => [
                                 'name'       => 'hnsw',
-                                'space_type' => 'cosinesimil',
+                                'space_type' => 'innerproduct',
                                 'engine'     => 'faiss',
                             ],
                         ],