AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.storage

EmbeddingModelConfig

class EmbeddingModelConfig(BaseModel)
源码Source agentscope/app/storage/_model/_session.py:163–195

向量化模型配置,保存相关配置项。位于 agentscope.app.storage 包。

Mirrors :class:ChatModelConfig but targets :class:~agentscope.embedding.EmbeddingModelBase subclasses. Used by :class:KnowledgeBaseRecord to persist the user's embedding model selection.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
typestr
类型字段。
—
credential_idstr
凭证标识字段。
—
modelstr
模型字段。
—
dimensionsint
维度字段。
Field(..., gt=0)
parametersdict
参数字段。
Field(default_factory=dict)

属性详情Attribute Detail

type

str

类型字段。声明为 str。

The type field.

源码Source agentscope/app/storage/_model/_session.py:172

credential_id

str

凭证标识字段。声明为 str。

The credential id field.

源码Source agentscope/app/storage/_model/_session.py:175

model

str

模型字段。声明为 str。

The model field.

源码Source agentscope/app/storage/_model/_session.py:178

dimensions

int = Field(..., gt=0)

维度字段。声明为 int。

The dimensions field.

源码Source agentscope/app/storage/_model/_session.py:181

parameters

dict = Field(default_factory=dict)

参数字段。声明为 dict。

The parameters field.

源码Source agentscope/app/storage/_model/_session.py:190
基于官方固定版本源码静态生成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.