chore: switch embedding provider to OpenRouter #10
No reviewers
Labels
No labels
bug
chore
documentation
enhancement
feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
shoppy/shoppy-index-configuration!10
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/2026-11-01/openrouter-embedding-support"
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?
What & why
The
embedders.mxbaiblocks in both index-settings files pointed at LM Studio REST servers on the lab network (http://10.1.5.170:1234/v1/embeddings,text-embedding-nomic-embed-text-v2-moe). This switches the embedder to OpenRouter (https://openrouter.ai/api/v1/embeddings, modelqwen/qwen3-embedding-8b), a public, OpenAI-compatible endpoint, so embedding can run without the lab network.Concretely, in both files the
embedders.mxbaiblock:url→https://openrouter.ai/api/v1/embeddingsrequest.model→qwen/qwen3-embedding-8brequest.inputgains"{{..}}"so Meilisearch expands it over the batch of documents (OpenAI-style array input)request.encoding→request.encoding_format(correct OpenAI/Meilisearch field name)response.datagains"{{..}}"so the response template handles the full data arrayapiKey: "{OPENROUTER_API_KEY}"— a template placeholder resolved byproduct-syncat apply time; no live key is committedThe research brief documents the verified OpenRouter/Meilisearch facts behind these choices, the delivery path through
product-sync(settings applied on index creation only), and the open follow-ups (model selection, key delivery mechanism, BFF query-timehybridusage) as decisions rather than changes.Per-file breakdown
Modified
shoppy-products.json—embedders.mxbai: new OpenRouterurl, modelqwen/qwen3-embedding-8b,{{..}}expansion inrequest.inputandresponse.data,encoding→encoding_format, addedapiKey: "{OPENROUTER_API_KEY}"shoppy-categories.json— sameembedders.mxbaichangesAdded
docs/research-brief-openrouter-embedding-support.md— research brief (2026-10-31): problem statement, environment & method, verified OpenRouter + Meilisearch facts, config recommendations, and follow-up decision items