Closed eugeniosegala closed 8 hours ago
You're comparing the embed function to the embeddings endpoint. If you want ollama-js to give the same output as you showed from the Ollama API, use the embeddings function. For the other way round, use the embed endpoint.
Thank you @hopperelec.
I will try this.
What is the difference between the 2? I did not notice the embeddings
function in the doc.
I believe embeddings is a deprecated version, so generally you should use embed
The following request:
Is returning very different embeddings:
Compared to vanilla Ollama:
Why?
Is Ollama JS applying some sort of normalisation?