分块

预览分块结果

Changed on

对提交的文本运行自适应分块器并返回分块预览,不写入数据库不生成 embedding。文本最大 64k 字符

post/chunker/preview

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/chunker/preview
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Request body

textstring

Response

分块结果

selected_tier'heading' | 'heuristic' | 'legacy'
tier_chainGithubComTencentWeKnoraInternalInfrastructureChunkerStrategyTier[]

Changes