Repository navigation
embedsync v0.3.0
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 pipelinedefault. - 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 Pre-scans one table. With several pipelines the
migration gate judges hits as<pipeline>/<key>ineval_qrels. embedsync init(andsetup) 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
startrun. It appliessink/0002_pipelines.sql(see docs/install.md and
docs/operations.md). Existing documents are not re-embedded and keep serving. Until
then every command, andembedsync doctor, says the sink needsembedsync init.
Downgrading afterinitis not supported.