类class
agentscope.app.storageEmbeddingModelConfig
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 |
|---|---|---|---|
type | str | 类型字段。 | — |
credential_id | str | 凭证标识字段。 | — |
model | str | 模型字段。 | — |
dimensions | int | 维度字段。 | Field(..., gt=0) |
parameters | dict | 参数字段。 | Field(default_factory=dict) |
属性详情Attribute Detail
type
str类型字段。声明为 str。
The type field.
源码Source
agentscope/app/storage/_model/_session.py:172credential_id
str凭证标识字段。声明为 str。
The credential id field.
源码Source
agentscope/app/storage/_model/_session.py:175model
str模型字段。声明为 str。
The model field.
源码Source
agentscope/app/storage/_model/_session.py:178dimensions
int = Field(..., gt=0)维度字段。声明为 int。
The dimensions field.
源码Source
agentscope/app/storage/_model/_session.py:181parameters
dict = Field(default_factory=dict)参数字段。声明为 dict。
The parameters field.
源码Source
agentscope/app/storage/_model/_session.py:190