Overview
POST /api/embed
Parameters
model
: name of model to generate embeddings frominput
: text or list of text to generate embeddings fortruncate
: truncates the end of each input to fit within context length. Returns error if false
and context length is exceeded. Defaults to true
options
: additional model parameters listed in the documentation for the Modelfile such as temperature
keep_alive
: controls how long the model will stay loaded into memory following the request (default: 5m
)Modified at about 2 months ago