QEM class
Query Encoder Model.
One QEM publishes the pruned static token-embedding table a lightweight client (e.g. a browser) loads to encode a search query into the same vector space a paired $CES shard's rows live in, without shipping a full transformer. A consumer pools the rows of the query's tokens (per POOLING_METHOD) into a query vector, then dot-products it against CES.ROWS.
A QEM is compatible with a CES only when MODEL_ID, MODEL_VERSION, MODEL_WEIGHTS_SHA256, POOLING_METHOD and TEMPLATE_VERSION all match; a mismatch on any one means the two vector spaces are not comparable.
Properties
- DIMENSIONS → int
-
Fixed embedding dimensionality; must equal the paired CES.DIMENSIONS.
no setter
- ENCODING → cesVectorEncoding
-
Row element encoding used across TOKENS.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- MODEL_ID → String?
-
Encoder model identifier/name. Compared verbatim against CES.MODEL_ID.
no setter
- MODEL_VERSION → String?
-
Encoder model version. Compared verbatim against CES.MODEL_VERSION.
no setter
- MODEL_WEIGHTS_SHA256 → String?
-
SHA-256 of the encoder weights, lowercase hex. Same convention as
DPMAsset.BYTE_SHA256. Compared verbatim against CES.MODEL_WEIGHTS_SHA256.
no setter
- modelId → String?
-
no setter
- modelVersion → String?
-
no setter
- modelWeightsSha256 → String?
-
no setter
- NORMALIZATION → cesNormalizationKind
-
Row-vector normalization applied before quantization.
no setter
- POOLING_METHOD → cesPoolingKind
-
Sentence/document pooling method the encoder uses. Compared verbatim
against CES.POOLING_METHOD.
no setter
- poolingMethod → cesPoolingKind
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- TEMPLATE_VERSION → String?
-
Version of the text template documents were rendered from before
encoding. Compared verbatim against CES.TEMPLATE_VERSION.
no setter
- templateVersion → String?
-
no setter
-
TOKENS
→ List<
QEMTokenVector> ? -
One row per pruned vocabulary token.
no setter
- VOCAB_SIZE → int
-
Number of tokens in the pruned vocabulary.
no setter
- vocabSize → int
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited