Turn text into on-device vectors and compare their meaning.
#semantic-embedder-api
chrome://flags
An optional hint to optimize embedding quality for a use case. Browsers may safely ignore it.
Initialize the embedder with the configuration defined above. The model downloads on first use.
One input embeds a single string; two or more are sent as a batch in a single embed() call. The API does not chunk for you — keep each passage within the model's token limit.
embed()