Pgvector (pgvector v0.3.1)

View Source

A vector struct for pgvector

Summary

Functions

Extensions for Postgrex

Creates a new vector from its binary representation

Creates a new vector from a list, tensor, or vector

Converts the vector to its binary representation

Converts the vector to a list

Converts the vector to a tensor

Functions

extensions()

Extensions for Postgrex

from_binary(binary)

Creates a new vector from its binary representation

new(list)

Creates a new vector from a list, tensor, or vector

to_binary(vector)

Converts the vector to its binary representation

to_list(vector)

Converts the vector to a list

to_tensor(vector)

Converts the vector to a tensor