PulseAugur
EN
LIVE 22:40:13

Terset format slashes LLM prompt tokens by restructuring JSON

Terset is a new open-source format designed to reduce the number of tokens required when sending JSON data to large language models. Developed by StackDeck, Terset restructures JSON records into a table-like format with keys in a header, which can significantly decrease token count compared to standard JSON. Benchmarks show Terset uses approximately 28.3% fewer tokens than compact JSON and 8.5% fewer than the TOON format, while ensuring data integrity through decoding and validation. AI

IMPACT Reduces costs and improves efficiency for LLM users by lowering token consumption for structured data.

RANK_REASON New format for LLM prompts that restructures JSON to reduce token count.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Terset format slashes LLM prompt tokens by restructuring JSON

COVERAGE [1]

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

    Terset: an open source format that sends JSON records to an LLM with fewer tokens

    <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 …