Skip to content

AI.Embed

Name Mandatory Description Default Type
⬅️ Input The input of the shard, if any String[Int]
Output ➡️ The resulting output of the shard [Float]
Model No The embedding model. none Var(LLMModel)
Normalization No Normalization type: -1 (none), 0 (max absolute), 2 (L2/euclidean), >2 (p-norm). -1 Int

Generate embeddings from text or token IDs using an embedding model. The model must be loaded with Embedding: true.