返回首页
一周热榜
嗨,HN,我创建Cortex是因为我厌倦了那些将你最私密数据发送到他人服务器的AI记忆解决方案。
Cortex是一个四层记忆引擎(情节性 → 语义性 → 程序性),完全在你的设备上运行。采用纯Rust编写,体积为3.8MB,数据摄取时间为62微秒。
LoCoMo基准测试:整体得分73.7%,在所有四个类别中超过了Mem0(66.9%)。
通过你自己的iCloud/GDrive/Dropbox进行AES-256-GCM加密同步。
GitHub链接:[https://github.com/gambletan/cortex](https://github.com/gambletan/cortex)
我在 json-io 这个 Java 序列化库中实现了 TOON 支持。TOON 是一种基于缩进的格式,专为 LLM 应用设计,因为在这些应用中,每个令牌都需要付费并占用上下文窗口。<p>与 JSON 相同的数据,令牌数量减少约 40-50%。没有大括号、方括号、逗号或不必要的引号。统一对象的数组会自动转换为类似 CSV 的表格。<p>JSON:
{"team":"Rockets","players":[{"name":"John","age":30},{"name":"Sue","age":27}]}<p>TOON:
team: Rockets
players:
name, age
John, 30
Sue, 27<p>json-io 可以读取和写入 JSON、JSON5 和 TOON,支持 60 多种内置 Java 类型,具有循环支持和零配置。此外,还有一个 Spring Boot 启动器和 Spring AI 模块。<p>GitHub: <a href="https://github.com/jdereg/json-io" rel="nofollow">https://github.com/jdereg/json-io</a>
TOON 规范: <a href="https://toonformat.dev" rel="nofollow">https://toonformat.dev</a>
Baeldung 文章: <a href="https://www.baeldung.com/java-json-toon-format-libraries" rel="nofollow">https://www.baeldung.com/java-json-toon-format-libraries</a>