Skip to content

[Epic] First-class embeddings & reranker provider layer #886

Closed

Description

@AmitoVrito

Strategic rationale

SynapseKit ships 35+ LLM providers but the embeddings layer is a single ONNX backend (synapsekit/embeddings/ = SynapsekitEmbeddings + ONNXEmbeddings). Retrieval quality is bottlenecked by embedding quality, and today users can't swap in a state-of-the-art hosted embedder without writing their own class. This is the highest-leverage integration gap — it improves every RAG/mesh/world-model path at once.

Scope — dedicated Embeddings providers (implement SynapsekitEmbeddings)

  • OpenAI (text-embedding-3-small/large)
  • Cohere (embed-v3, input-type aware)
  • Voyage AI (voyage-3, retrieval-optimized; strong on code/finance)
  • Jina AI (jina-embeddings-v3, long-context, task LoRA)
  • Google Gemini (text-embedding-004)
  • Mistral (mistral-embed)
  • Nomic (nomic-embed-text, open + Atlas)
  • mixedbread (mxbai-embed-large)
  • Hugging Face Inference / TEI + local sentence-transformers/BGE

Scope — rerankers (extend retrieval/; Cohere + cross-encoder already exist)

  • Voyage rerank-2
  • Jina reranker v2
  • mixedbread mxbai-rerank

Acceptance criteria

  • Uniform async embed() / embed_one() contract; batching + dimension auto-derived
  • Skip-if-no-key + respx contract tests per provider (no live keys in CI)
  • pip install synapsekit[<provider>] extras, lazy imports (core-import guard stays green)
  • Docs: embeddings overview + provider table; comparison of dims/cost/latency

Activity

  1. added
    enhancement
    epic
    integration
    on Aug 1, 2026
  2. self-assigned this
    on Aug 22, 2026
  3. AmitoVrito commented on Aug 22, 2026

    @AmitoVrito
    CollaboratorAuthor

    Fully shipped in PR #932 (merged 2026-08-12): all 9 embedding providers (OpenAI, Cohere, Mistral, Voyage, Jina, Nomic, mixedbread, Hugging Face, Gemini) + 3 new rerankers (Jina, Voyage, mixedbread) alongside existing Cohere/cross-encoder. Uniform async BaseEmbeddings contract, respx contract tests (57 passing, 2 skipped for missing live keys), lazy extras per provider, wired into SynapseKit Live, and documented in CHANGELOG + docs site. Verified test suite green before closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementepicintegration

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions