
Sends each String to a co-located Ollama runtime and returns its embedding as an Embedding, optionally L2-normalised. Suited to fully local RAG backends where an Ollama service runs alongside the component.
Read documents from text files, embed them locally, and ship the vectors over HTTP into an index.
OCR a page image, embed the recognised text locally, and forward the vector for retrieval.
model_name is pulled into that runtime on first use, adding a one-time delay.model_name; switching models produces vectors of a different width that an existing index will reject.String short-circuits to an empty Embedding. Feeding that into a similarity stage breaks the math, so filter empty inputs upstream.Embedding; it is never rejected. Chunk long documents upstream when the trailing text matters, since only the leading portion is embedded.normalize produces unit-length vectors so cosine similarity equals the inner product; keep it consistent across the index and the queries.Automated release