mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5150] [Engine] OpenAI /v1/embeddings (and optional /v1/rerank) backed by a sidecar embedding model #3061
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3061
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iraptor93 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5150
Area
[Engine] (speed, kernels, models, the server and API)
What do you want to do?
Serve an embedding model (and optionally a reranker) next to the chat model, through Strata's own server:
POST /v1/embeddingsin OpenAI's shape (inputstring or array,model,encoding_format,dimensionsoptional), and optionallyPOST /v1/rerank(the Jina/Cohere shape that llama.cpp and vLLM also use).Why: local coding agents and note tools increasingly do RAG (code search, Obsidian plugins, Open WebUI, custom MCP search servers). They all expect an OpenAI-compatible embeddings endpoint. Today a Strata box needs a second server, a second port and a second API key for this, and that second process knows nothing about Strata's GPU placement.
Suggested shape, similar to the existing
"images"/"vision"sections:Points that matter:
/v1/modelswith its own id, sameapi_keyandcors_originsas the rest of/v1/*.images.reload).This is related to the closed #3260 / #2820 (llama.cpp
/embeddingamong other routes). This request is only about the OpenAI/v1/embeddingsroute backed by a separate embedding model, which is what RAG clients actually call.What do you do today instead?
A separate
llama-server --embedding --pooling lastwith Qwen3-Embedding-0.6B on port 8082, started by my own script next to Strata. Clients get two base URLs and two keys. I considered a local proxy branch inserve/server.py(forward/v1/embeddingsto the sidecar before the FIFO), but a local patch must be reapplied on every update.System
@tam-wh commented on GitHub (Nov 4, 2026):
this would also helps to manage the vram. Currently, I'm running everything on llama-swap but vram is wasted because embedding model is usually unloaded when idle. would be good to use those vram for experts.