Reference
knowledge.embedding
domain: knowledge
A vector embedding of a knowledge.chunk, keyed by (chunk_hash, model). Because chunks are content-addressed, an embedding is too โ re-embedding the same text with the same model is idempotent, and a different model yields a distinct record (so vectors are never confused across models). Retrieval does cosine similarity over these; a vector DB (pgvector) is only needed at large scale โ brute-force over the tenant's vectors suffices for a municipal corpus.
| Field | Type | Required | Description |
|---|---|---|---|
schema | โ | โ | |
id | string | โ | |
chunk_hash | string | โ | the knowledge.chunk this embeds |
doc_id | string | ||
model | string | โ | the embedding model that produced it (e.g. bge-small-en-v1.5 | bow-hash-256) โ HONEST provenance |
dim | integer | ||
vector | array<number> | โ | |
tenant | string |