@@ -10,7 +10,7 @@ func TestDB_CreateCollection(t *testing.T) {
1010 // Values in the collection
1111 name := "test"
1212 metadata := map [string ]string {"foo" : "bar" }
13- vectors := []float32 {- 0.1 , 0.1 , 0.2 }
13+ vectors := []float32 {- 0.40824828 , 0.40824828 , 0.81649655 } // normalized version of `{-0. 1, 0.1, 0.2}`
1414 embeddingFunc := func (_ context.Context , _ string ) ([]float32 , error ) {
1515 return vectors , nil
1616 }
@@ -81,7 +81,7 @@ func TestDB_ListCollections(t *testing.T) {
8181 // Values in the collection
8282 name := "test"
8383 metadata := map [string ]string {"foo" : "bar" }
84- vectors := []float32 {- 0.1 , 0.1 , 0.2 }
84+ vectors := []float32 {- 0.40824828 , 0.40824828 , 0.81649655 } // normalized version of `{-0. 1, 0.1, 0.2}`
8585 embeddingFunc := func (_ context.Context , _ string ) ([]float32 , error ) {
8686 return vectors , nil
8787 }
@@ -147,7 +147,7 @@ func TestDB_GetCollection(t *testing.T) {
147147 // Values in the collection
148148 name := "test"
149149 metadata := map [string ]string {"foo" : "bar" }
150- vectors := []float32 {- 0.1 , 0.1 , 0.2 }
150+ vectors := []float32 {- 0.40824828 , 0.40824828 , 0.81649655 } // normalized version of `{-0. 1, 0.1, 0.2}`
151151 embeddingFunc := func (_ context.Context , _ string ) ([]float32 , error ) {
152152 return vectors , nil
153153 }
@@ -196,7 +196,7 @@ func TestDB_GetOrCreateCollection(t *testing.T) {
196196 // Values in the collection
197197 name := "test"
198198 metadata := map [string ]string {"foo" : "bar" }
199- vectors := []float32 {- 0.1 , 0.1 , 0.2 }
199+ vectors := []float32 {- 0.40824828 , 0.40824828 , 0.81649655 } // normalized version of `{-0. 1, 0.1, 0.2}`
200200 embeddingFunc := func (_ context.Context , _ string ) ([]float32 , error ) {
201201 return vectors , nil
202202 }
@@ -299,7 +299,7 @@ func TestDB_DeleteCollection(t *testing.T) {
299299 // Values in the collection
300300 name := "test"
301301 metadata := map [string ]string {"foo" : "bar" }
302- vectors := []float32 {- 0.1 , 0.1 , 0.2 }
302+ vectors := []float32 {- 0.40824828 , 0.40824828 , 0.81649655 } // normalized version of `{-0. 1, 0.1, 0.2}`
303303 embeddingFunc := func (_ context.Context , _ string ) ([]float32 , error ) {
304304 return vectors , nil
305305 }
@@ -331,7 +331,7 @@ func TestDB_Reset(t *testing.T) {
331331 // Values in the collection
332332 name := "test"
333333 metadata := map [string ]string {"foo" : "bar" }
334- vectors := []float32 {- 0.1 , 0.1 , 0.2 }
334+ vectors := []float32 {- 0.40824828 , 0.40824828 , 0.81649655 } // normalized version of `{-0. 1, 0.1, 0.2}`
335335 embeddingFunc := func (_ context.Context , _ string ) ([]float32 , error ) {
336336 return vectors , nil
337337 }
0 commit comments