Skip to content

app.search_embeddings

TableRow level security on

Semantic search index (Section 5, A87): one embedding per published document, SOP and handbook article of an org with search.semantic_enabled on, written by the embedding worker with the service role and replaced when the text changes. Readable only by people who can read the source.

Primary key: id

Columns of app.search_embeddings
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
source_tabletextNoTable of the source: documents, sops or handbook_articles.
source_iduuidNoSource row.
content_sha256textNoSHA-256 of the text that was embedded, lowercase hex; a different hash means the source changed.
providertextNoEmbedding provider, for example local-hash in tests.
modeltextNoProvider model that made the vector; vectors of another model are never compared.
embeddingvector(384)NoThe vector, 384 dimensions, compared by cosine distance.
embedded_attimestamp with time zoneNoWhen the vector was made.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.