loki.utils.encode_texts

loki.utils.encode_texts(model: Module, tokenizer: callable, texts: List[str], device: str | device) Tensor

Batch–encode a list of strings into L2‑normalized embeddings. Returns a tensor of shape (N, D).