Method: Pgvector.encode

Defined in:
lib/pgvector.rb

.encode(data) ⇒ Object



3
4
5
# File 'lib/pgvector.rb', line 3

def self.encode(data)
  "[#{data.to_a.map(&:to_f).join(",")}]"
end