second commit

This commit is contained in:
Rogee
2026-06-04 15:44:48 +08:00
parent 4db6efb3a7
commit 8ac150bc7b
1275 changed files with 286124 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package pgvector
// Vector represents a vector for similarity search.
// Stub implementation for building without PostgreSQL/pgvector extension.
type Vector []float32
// NewVector creates a new vector from a slice of float32.
func NewVector(slice []float32) Vector {
return Vector(slice)
}
// String returns the string representation of the vector.
func (v Vector) String() string {
return ""
}
// Dimensions returns the number of dimensions in the vector.
func (v Vector) Dimensions() int {
return len(v)
}