Supporting Embedding models #99
Unanswered
cecilphillip
asked this question in
Models
Replies: 2 comments 1 reply
-
|
Thanks @cecilphillip! Yes embedding models are definitely on our roadmap |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Hi @cecilphillip, Embeddings are actually already supported in Foundry Local via the OpenAI-compatible To use them: foundry model download qwen3-embedding-0.6b
foundry model load qwen3-embedding-0.6bThen call the API: curl http://127.0.0.1:<port>/v1/embeddings \
-H "Content-Type: application/json" \
-d '{"model":"qwen3-embedding-0.6b","input":"hello world"}'Or from Python with the OpenAI SDK: from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:<port>/v1", api_key="none")
resp = client.embeddings.create(model="qwen3-embedding-0.6b", input="hello world")
print(resp.data[0].embedding)No CLI command for embeddings yet (only HTTP API), but the functionality is there. Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On my machine,
foundry model lsonly returns a list of chat completion models. Are there any plans to add embedding models as well?Beta Was this translation helpful? Give feedback.
All reactions