[Idea] 浏览器环境的上下文压缩研究 #543
canisminor1990
started this conversation in
Ideas | 灵感
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
背景
在保留语义的情况下尽可能压缩上下文长度,比如 JSON 在格式化和非格式化状态下,token 消耗可能相差惊人的 30%
简单做了个实验
拿 LobeChat 的 README 当样本
Note
删除换行与多余空格,同时删除 breakwords
Note
激进版,增加删除标点和特殊字符
Beta Was this translation helpful? Give feedback.
All reactions