embedding/__init__.py

DeepTutor · deeptutor/services/embedding/__init__.py · python · Apache-2.0
ai, AI / Agents

Unified embedding client and adapters for multiple providers in DeepTutor.

# Source: https://github.com/HKUDS/DeepTutor | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Unified embedding client and adapters for all DeepTutor modules.

Supported bindings are resolved by ``services.config.provider_runtime`` and
currently include openai, custom, azure_openai, cohere, jina, ollama, vllm,
siliconflow, aliyun, openrouter, plus legacy custom_openai_sdk configs.
"""

from .adapters import (
    BaseEmbeddingAdapter,
    CohereEmbeddingAdapter,
    DashScopeMultiModalEmbeddingAdapter,
    EmbeddingProviderError,
    EmbeddingRequest,
    EmbeddingResponse,
    JinaEmbeddingAdapter,
    OllamaEmbeddingAdapter,
    OpenAICompatibleEmbeddingAdapter,
    OpenAISDKEm

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key