类class
agentscope.app.storageChunkerConfig
class ChunkerConfig(BaseModel)
源码Source
agentscope/app/storage/_model/_knowledge_base.py:11–30切分器配置,保存相关配置项。位于 agentscope.app.storage 包。
Stores the chunker type identifier (as declared by
ChunkerBase.chunker_type) and the keyword-argument
parameters used to reconstruct it at indexing time.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
type | str | 类型字段。 | Field(description='Chunker type identifier, as declared by ``ChunkerBase.chunker_type``.') |
parameters | dict | 参数字段。 | Field(default_factory=dict, description='Keyword arguments used to build ``ChunkerBase.Parameters``.') |
属性详情Attribute Detail
type
str = Field(description='Chunker type identifier, as declared by ``ChunkerBase.chunker_type``.')类型字段。声明为 str。
Chunker type identifier, as declared by ChunkerBase.chunker_type.
源码Source
agentscope/app/storage/_model/_knowledge_base.py:19parameters
dict = Field(default_factory=dict, description='Keyword arguments used to build ``ChunkerBase.Parameters``.')参数字段。声明为 dict。
Keyword arguments used to build ChunkerBase.Parameters.
源码Source
agentscope/app/storage/_model/_knowledge_base.py:25