AS AgentScopeAPI 手册 / API Reference
包package agentscope.embedding

agentscope.embedding

module agentscope.embedding

agentscope.embedding 属于模型与向量化,大模型接入、凭证与嵌入。 该包共收录 10 个公开类型。

The embedding module in agentscope.

源码Source agentscope/embedding/__init__.py:1

类Classes

DashScopeEmbeddingModel
类class
DashScope 向量化模型,与模型服务通信并返回生成或向量化结果。
Unified DashScope embedding model.
EmbeddingCacheBase
类class
向量化缓存基类,与模型服务通信并返回生成或向量化结果。
Base class for embedding caches, which is responsible for storing and retrieving embeddings.
EmbeddingModelBase
类class
向量化模型的基类。
Base class for embedding models.
EmbeddingModelCard
类class
向量化模型卡片,与模型服务通信并返回生成或向量化结果。
A card describing an embedding model's capabilities.
EmbeddingResponse
类class
向量化响应类。
The embedding response class.
EmbeddingUsage
类class
向量化用量,与模型服务通信并返回生成或向量化结果。
The usage of an embedding model API invocation.
FileEmbeddingCache
类class
文件向量化缓存,与模型服务通信并返回生成或向量化结果。
The embedding cache class that stores each embeddings vector in binary files.
GeminiEmbeddingModel
类class
Gemini 向量化模型,与模型服务通信并返回生成或向量化结果。
Unified Google Gemini embedding model.
OllamaEmbeddingModel
类class
Ollama 向量化模型,与模型服务通信并返回生成或向量化结果。
Ollama text embedding model.
OpenAIEmbeddingModel
类class
OpenAI 向量化模型,与模型服务通信并返回生成或向量化结果。
OpenAI text embedding model.
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.