PageIndex icon indicating copy to clipboard operation
PageIndex copied to clipboard

Using TOON to replace json

Open kevngzc opened this issue 8 months ago • 3 comments

Could it be interesting to store data of index in TOON format instead of json and update retrieval in order to save token ?

https://github.com/toon-format/toon

kevngzc avatar Mar 16 '26 13:03 kevngzc

Yeah, its a cool thing to integrate and save tokens.

Rohith-Kaki avatar Mar 19 '26 16:03 Rohith-Kaki

You can but that won't be a good idea for production systems, as TOON is a newly emerged format. LLM's are not familiar with it, an can degrade the accuracy. So Its better to stick with format LLMs are confident or got trained on.

omkar-12bits avatar Mar 20 '26 17:03 omkar-12bits

Actually TOON performs better than json, not only it saves tokens but llms are able to provide better results. I was working on a project where I passed data in json and then switched to toon, that gave me a good performance jump.

arnavbansal2764 avatar Mar 22 '26 07:03 arnavbansal2764