Skip to content
โ—‡ AirawatOS Developer
๐Ÿšง Under development โ€” this portal is being built track by track. Content will keep growing, and some sections are still placeholders.

Reference

โ† Schema catalogue

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.

FieldTypeRequiredDescription
schemaโ€”โœ“
idstringโœ“
chunk_hashstringโœ“the knowledge.chunk this embeds
doc_idstring
modelstringโœ“the embedding model that produced it (e.g. bge-small-en-v1.5 | bow-hash-256) โ€” HONEST provenance
diminteger
vectorarray<number>โœ“
tenantstring