module Pgvector

def self.encode(data)

def self.encode(data)
  if data.is_a?(Vector) || data.is_a?(HalfVector) || data.is_a?(SparseVector)
    data.to_s
  else
    Vector.new(data).to_s
  end
end