AGI Hunt· devel0mer·· 8 天前AI 评分53
Rust 编写的 RAG 分块器 text-chipper 开源,514MB 文件仅增 56MB 内存
Rust 写 RAG 分块器 text-chipper:严格 token 预算,514MB 文件仅增 56MB 内存
AI 导读
作者 devel0mer 开源了 Rust 编写的 RAG 文本分块 crate text-chipper(含 Python 绑定),每个 chunk 以返回原样重新分词,保证 token 数不超过 maxlength,且不切断 Unicode 字素簇。
来源:AGI Hunt · agihunt.info