You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(memory): support OpenAI-compatible embedding backends (e.g. SiliconFlow BAAI/bge-m3) #117
and the config table lists MNEMON_EMBED_PROTOCOL (ollama|openai) and MNEMON_EMBED_API_KEY, implying an OpenAI-compatible embeddings path exists alongside Ollama:
| MNEMON_EMBED_PROTOCOL | (auto-detect) | ollama or openai; auto-switches when endpoint ends with /v1 |
| MNEMON_EMBED_API_KEY | (none) | Bearer token for OpenAI-compatible servers (oMLX, vLLM, etc.) |
In practice, on v0.2.5 (latest), mnemon embed only implements an Ollama backend. Setting an OpenAI-compatible endpoint (e.g. SiliconFlow https://api.siliconflow.cn/v1 with BAAI/bge-m3) still fails:
$ mnemon embed --all
Error: Ollama not available at https://api.siliconflow.cn/v1 — install with: brew install ollama && ollama pull BAAI/bge-m3
Evidence
The binary contains only internal/memory/embed/ollama.go — no openai.go or equivalent exists.
MNEMON_EMBED_PROTOCOL and MNEMON_EMBED_API_KEY are never read by the embed command (not present in the binary at all).
The command help text is hard-coded to Ollama: "Generate embedding vectors for insights using a local Ollama model."
mnemon embed --status does pick up MNEMON_EMBED_MODEL (reports BAAI/bge-m3) but the embed path still probes Ollama at the configured endpoint and hard-fails.
So the advertised feature is documentation-only; the OpenAI-compatible path has not been implemented yet.
Request
Implement an OpenAI-compatible embedding backend so mnemon embed works against OpenAI-compatible providers (SiliconFlow, oMLX, vLLM, OpenAI, etc.):
POST {endpoint}/v1/embeddings (or honor MNEMON_EMBED_PROTOCOL=openai)
Authorization: Bearer $MNEMON_EMBED_API_KEY
respect MNEMON_EMBED_MODEL and MNEMON_EMBED_DIMENSIONS
This is a concrete blocker for users who want remote/multi-modal bge-m3 embeddings without running a local Ollama instance.
Closing as completed: OpenAI-compatible embedding support shipped on master via #115. Independent validation covered BAAI/bge-m3 with dimensions 1024; follow-up regression coverage is in #118.
Activity
Grivn commentedon Aug 30, 2026
Closing as completed: OpenAI-compatible embedding support shipped on master via #115. Independent validation covered BAAI/bge-m3 with dimensions 1024; follow-up regression coverage is in #118.