github.com/weaviate/weaviate@v1.24.6/adapters/repos/db/vector/hnsw/vectors_for_test.go (about) 1 // _ _ 2 // __ _____ __ ___ ___ __ _| |_ ___ 3 // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ 4 // \ V V / __/ (_| |\ V /| | (_| | || __/ 5 // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| 6 // 7 // Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. 8 // 9 // CONTACT: hello@weaviate.io 10 // 11 12 package hnsw 13 14 import "context" 15 16 // roughly grouped into three clusters of three 17 var testVectors = [][]float32{ 18 {0.1, 0.9}, 19 {0.15, 0.8}, 20 {0.13, 0.65}, 21 22 {0.6, 0.1}, 23 {0.63, 0.2}, 24 {0.65, 0.08}, 25 26 {0.8, 0.8}, 27 {0.9, 0.75}, 28 {0.8, 0.7}, 29 } 30 31 func testVectorForID(ctx context.Context, id uint64) ([]float32, error) { 32 return testVectors[int(id)], nil 33 }