Skip to content

add pgvector types to golem rdbms postgres #2497

@justcoon

Description

@justcoon

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions