类class
agentscope.ragParameters
class Parameters(ChunkerBase.Parameters)
源码Source
agentscope/rag/_chunker/_approx_token_chunker.py:39–67参数,把私有文档转化为可检索的知识。位于 agentscope.rag 包,继承自 ChunkerBase.Parameters。
The tunable parameters of the approximate-token chunker. Declared in agentscope.rag. Extends ChunkerBase.Parameters.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
chunk_size | int | 分块大小字段。 | Field(default=512, ge=1, title='Chunk Size', description='Maximum number of approximate tokens per chunk.') |
overlap | int | `overlap` 字段。 | Field(default=50, ge=0, title='Overlap', description='Number of approximate tokens shared between consecutive chunks.') |
属性详情Attribute Detail
chunk_size
int = Field(default=512, ge=1, title='Chunk Size', description='Maximum number of approximate tokens per chunk.')分块大小字段。声明为 int。
Maximum number of approximate tokens per chunk.
源码Source
agentscope/rag/_chunker/_approx_token_chunker.py:42overlap
int = Field(default=50, ge=0, title='Overlap', description='Number of approximate tokens shared between consecutive chunks.')overlap 字段。声明为 int。
Number of approximate tokens shared between consecutive chunks.
源码Source
agentscope/rag/_chunker/_approx_token_chunker.py:48