PulseAugur
中
实时 22:38:00
English(EN) Terset: an open source format that sends JSON records to an LLM with fewer tokens

Terset 格式通过重构 JSON 来大幅减少 LLM Prompt 的 token 数量

Terset 是一种新的开源格式,旨在减少将 JSON 数据发送到大型语言模型时所需的 token 数量。Terset 由 StackDeck 开发,它将 JSON 记录重构为类似表格的格式,并在头部包含键,与标准 JSON 相比,这可以显著减少 token 数量。基准测试显示,Terset 使用的 token 数量比紧凑型 JSON 少约 28.3%,比 TOON 格式少 8.5%,同时通过解码和验证确保数据完整性。 AI

影响 通过降低结构化数据的 token 消耗,降低 LLM 用户成本并提高效率。

排序理由 用于 LLM Prompt 的新格式,通过重构 JSON 来减少 token 数量。

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Terset 格式通过重构 JSON 来大幅减少 LLM Prompt 的 token 数量

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Luis ·

    Terset:一种将 JSON 记录以更少 token 发送至 LLM 的开源格式

    <p>Terset is open source (MIT). It is a compact text format for sending lists of JSON records to a language model.</p> <p>We built it at StackDeck because our prompts were full of JSON lists. JSON repeats every key in every record. The model reads each repeat as input tokens. We …