summaryrefslogtreecommitdiff
path: root/storage/vector.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/vector.go')
-rw-r--r--storage/vector.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/storage/vector.go b/storage/vector.go
index 6958634..900803c 100644
--- a/storage/vector.go
+++ b/storage/vector.go
@@ -75,9 +75,7 @@ func (p ProviderSQL) WriteVector(row *models.VectorRow) error {
return err
}
-func decodeUnsafe(bs []byte) []float32 {
- return unsafe.Slice((*float32)(unsafe.Pointer(&bs[0])), len(bs)/4)
-}
+
func (p ProviderSQL) SearchClosest(q []float32) ([]models.VectorRow, error) {
// TODO: This function has been temporarily disabled to avoid deprecated library usage.