Skip to content

Glossary: Embeddings and Vector Search

encode

Also written: model.encode

The sentence-transformers method that turns a text, or a list of texts, into embeddings as a NumPy array with one row per text. Options include `batch_size` and `normalize_embeddings`.

Where the book teaches it

Related terms

sentence-transformersNumPy arraynormalize