diff options
author | Grail Finder <wohilas@gmail.com> | 2025-10-21 10:44:07 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-10-21 10:44:07 +0300 |
commit | 428c45da164e39f0b94569239e3b2796477df095 (patch) | |
tree | 3b2adfaed5b33862cf543dacbbb6c90e016985f7 /storage/vector.go | |
parent | 6a8e854ef6dd9a3f00027cf46f6b673c6cf13ab0 (diff) |
Diffstat (limited to 'storage/vector.go')
-rw-r--r-- | storage/vector.go | 4 |
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. |