Skip to content

Conversation

orlando-labs
Copy link

According to ollama docs the embeddings path should be api/embed. The Ollama server doesn't reply correctly when requested at api/embeddings.

curl http://ollama.local:11434/api/embeddings -d '{"model": "llama3.3:70b", "input": ["Why is the sky blue?", "Test"]}'
{"embedding":[]}
curl http://ollama.local:11434/api/embed -d '{"model": "llama3.3:70b", "input": ["Why is the sky blue?", "Test"]}'      
{"model":"llama3.3:70b","embeddings":[[-0.009153694,0.0016517562, ...

According to (ollama docs)[https://github.com/ollama/ollama/blob/main/docs/api.md#request-35] the embeddings path should be `api/embed`. The Ollama server doesn't reply correctly when requested at `api/embeddings`.

```
curl http://ollama.local:11434/api/embeddings -d '{"model": "llama3.3:70b", "input": ["Why is the sky blue?", "Test"]}'
{"embedding":[]}
```

```
curl http://ollama.local:11434/api/embed -d '{"model": "llama3.3:70b", "input": ["Why is the sky blue?", "Test"]}'      
{"model":"llama3.3:70b","embeddings":[[-0.009153694,0.0016517562, ...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant