add pgvector types to https://github.com/golemcloud/golem/blob/main/wit/deps/golem-rdbms/postgres.wit
wit changes:
record sparse-vec {
dim: s32,
indices: list<s32>,
values: list<f32>
}
variant db-column-type {
// ...
vector,
halfvec,
sparsevec
}
variant db-value {
// ...
vector(list<f32>),
halfvec(list<f32>),
sparsevec(sparse-vec)
}
NOTE: as wit do not have support for f16, f32 is used in db-value::halfvec wit type
add pgvector types to https://github.com/golemcloud/golem/blob/main/wit/deps/golem-rdbms/postgres.wit
wit changes:
record sparse-vec { dim: s32, indices: list<s32>, values: list<f32> } variant db-column-type { // ... vector, halfvec, sparsevec } variant db-value { // ... vector(list<f32>), halfvec(list<f32>), sparsevec(sparse-vec) }NOTE: as wit do not have support for
f16,f32is used indb-value::halfvecwit type