AS AgentScopeAPI 手册 / API Reference
类class agentscope.rag

Parameters

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_sizeint
分块大小字段。
Field(default=512, ge=1, title='Chunk Size', description='Maximum number of approximate tokens per chunk.')
overlapint
`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:42

overlap

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
基于官方固定版本源码静态生成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.