Skip to content

embedsync v0.3.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 18:50
· 25 commits to main since this release

v0.3.0

Several tables in one process, and composite primary keys.

  • Pipelines: pipelines: lists several tables, each with its own key columns,
    allowlisted fields and transform. They share one publication, one replication slot,
    one embedder and every generation. A source transaction that touches several tables
    is applied in one sink transaction, also when its embeddings finish out of order.
    The single-table configuration is unchanged and becomes the pipeline default.
  • Composite keys: key: [tenant_id, id]. Keys are typed per column (int, text,
    uuid); backfill windows, range deletes and the planner order them like PostgreSQL's
    row comparison. Documents are identified by (pipeline, key), so ids may repeat
    across tables.
  • Search hits, status, verify, the DLQ and backfill jobs report the pipeline;
    embedsync backfill --pipeline P re-scans one table. With several pipelines the
    migration gate judges hits as <pipeline>/<key> in eval_qrels.
  • embedsync init (and setup) add new pipelines' tables to the publication and grant
    their columns on every run. They never remove a table: one that no pipeline names is
    reported, with the statement to drop it by hand if it was never synced.
  • A generation is ready, and a migration gates it, only after every pipeline's backfill
    is done; a resumed migration re-checks this.
  • Upgrade: stop embedsync run, install the new version, run
    embedsync init --admin-url <admin URL> (new flag; or the admin DSN variables), then
    start run. It applies sink/0002_pipelines.sql (see docs/install.md and
    docs/operations.md). Existing documents are not re-embedded and keep serving. Until
    then every command, and embedsync doctor, says the sink needs embedsync init.
    Downgrading after init is not supported.