{"by":"tsazan","descendants":34,"id":46526809,"kids":[46588689,46588709,46588867,46588746,46588691,46588318,46590278,46589425,46591115,46526832,46588909],"score":55,"text":"OP here.<p>I took the unofficial IKEA US dataset (originally scraped by jeffreyszhou) and converted all 30,511 products into a flat, markdown-like protocol called CommerceTXT.<p>The goal: See if a flatter structure is more efficient for LLM context windows.<p>The results:\n- Size: 30k products across 632 categories.\n- Efficiency: The text version uses ~24% fewer tokens (3.6M saved total) compared to the equivalent minified JSON.\n- Structure: Files are organized in folders (e.g. &#x2F;products&#x2F;category&#x2F;), which helps with testing hierarchical retrieval routers.<p>The link goes to the dataset on Hugging Face which has the full benchmarks.<p>Parser code is here: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;commercetxt&#x2F;commercetxt\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;commercetxt&#x2F;commercetxt</a><p>Happy to answer questions about the conversion logic!","time":1767796554,"title":"Show HN: 30k IKEA items in flat text","type":"story","url":"https://huggingface.co/datasets/tsazan/ikea-us-commercetxt"}