<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by POMA AI on Medium]]></title>
        <description><![CDATA[Stories by POMA AI on Medium]]></description>
        <link>https://medium.com/@POMA_AI?source=rss-41a4db6ac78c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jYA55IOdgO_DF0xLDkLRCA.png</url>
            <title>Stories by POMA AI on Medium</title>
            <link>https://medium.com/@POMA_AI?source=rss-41a4db6ac78c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 10:37:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@POMA_AI/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[New benchmark for POMA AI’s document ingestion and chunking for RAG shows 77% token reduction]]></title>
            <link>https://medium.com/@POMA_AI/new-benchmark-for-poma-ais-document-ingestion-and-chunking-for-rag-shows-77-token-reduction-ac20c75da8e6?source=rss-41a4db6ac78c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac20c75da8e6</guid>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[chunking-strategies]]></category>
            <category><![CDATA[information-retrieval]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[POMA AI]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 08:31:00 GMT</pubDate>
            <atom:updated>2026-03-16T16:50:20.304Z</atom:updated>
            <content:encoded><![CDATA[<h4>The just-released data proves that how you chunk documents matters more than how you embed them — and structure-aware ingestion cuts retrieval costs by 77%.</h4><figure><img alt="A bar chart showing thatPOMA PrimeCut reduces token usage by 77% compared to conventional models." src="https://cdn-images-1.medium.com/max/650/1*SpDeC8HpfXlZvE6xLc99_Q.png" /><figcaption>POMA PrimeCut outperforms conventional models by a significant margin.</figcaption></figure><p>AI retrieval systems lose information before the model even sees it. It’s one of their dirtiest, worst-kept secrets.</p><p>Consider a question that should be trivial for any retrieval system: <em>What was the average US banknote in circulation worth in 2011</em>? The answer ($32.70) sits in a denomination table inside a 150-page Treasury Bulletin. But a standard RAG pipeline, using the kind of naive text splitting that ships as the default in LangChain and every managed retrieval service, will chop that table in half. The numerator ends up in one chunk, and the denominator in another. The column headers that indicate which year you’re looking at are just… gone.</p><p>And that’s a typical AI retrieval system’s baseline!</p><p>Today, we’re releasing <a href="https://github.com/poma-ai/poma-officeqa">POMA-OfficeQA</a>, an open-source benchmark that quantifies exactly how much information is destroyed by conventional document ingestion (and on a more positive note, how much you can recover by respecting document structure during chunking).</p><p>In case you’re a tl;dr person: <strong>POMA’s structure-aware chunking achieves 100% context recall using 77% fewer tokens than both naive chunking and Unstructured.io.</strong></p><p>Benchmarks are notorious for featuring cherry-picked metrics, so we decided to measure the entire orchard instead (please forgive the tortured metaphor). That meant using 20 questions, 14 US Treasury Bulletins (~2,150 pages), three independent chunking pipelines, identical embeddings (text-embedding-3-large), and identical retrieval logic. The only variable is how the documents were chunked for RAG ingestion.</p><p>The benchmark, code, pre-computed embeddings, and every visualization are public on GitHub. Anyone can reproduce every number in this article with `git clone` and `python benchmark.py`.</p><h3>RAG chunking and ingestion: key benchmarking takeaways</h3><p>Here’s a table that compares popular chunking methods and how many tokens they require to achieve 100% recall. This is essentially their “worst-case cost,” or “how large the context window must be to guarantee no question goes unanswered.”</p><p>(You might recall that the largest context window currently in existence is the 1 million token behemoth from Anthropic’s Claude Opus 4.6. But as you’ll see below, even this wouldn’t be able to handle the non-POMA options without failing.)</p><figure><img alt="A table comparing the necessary context window size of POMA PrimeCut vs. conventional models. POMA PrimeCut uses 77% fewer tokens compared to naive chunking and Unstructured.io." src="https://cdn-images-1.medium.com/max/1024/1*eZkTYZJUuKZPabZbQ0hX4g.png" /></figure><figure><img alt="A bar chart comparing the context window needed to answer each question of a RAG chunking benchmark test. POMA PrimeCut used 77% fewer tokens than conventional models." src="https://cdn-images-1.medium.com/max/1024/1*CFI9J1lYuDoyt3NuX7umLA.png" /></figure><p>The only variable here is how documents are chunked, as all three methods use identical embeddings and retrieval logic. We know how common it is for benchmarks to juke the stats using apples-to-oranges comparisons, so we made a point to pit Granny Smith against Granny Smith (or whatever type of apple you prefer).</p><p>Aggregated across all 20 questions, the total token cost is even starker:</p><figure><img alt="A table comparing a benchmark’s total token cost for POMA PrimeCut (1.35m tokens) against naive chunking (5.78m tokens) and Unstructured.io (6.55m tokens)." src="https://cdn-images-1.medium.com/max/1024/1*xcqMiWOOD0opcWNAStHpmw.png" /></figure><figure><img alt="A bar chart comparing the context budget composition by question of POMA PrimeCut (1.35m tokens) vs. naive chunking (5.78m tokens) and Unstructured.io (6.55m tokens)." src="https://cdn-images-1.medium.com/max/1024/1*URKn7RSKui53wIIPY50hMA.png" /></figure><p>And there’s further upside. POMA produces both hierarchical chunks <em>and</em> “chunksets” (ready-to-embed paths from the root to each leaf/apple). By re-ranking chunksets with a weighted blend of both similarity signals — a variant we call <strong>POMA Mixed</strong> — 100% recall drops to just 260k tokens, and aggregate cost falls to <strong>1.18m</strong>. That’s an 82% reduction over Unstructured.io.</p><h3>Four takeaways that surprised us</h3><p>A “check out our benchmarks” article wouldn’t be complete without a pithy list of interesting discoveries. And as much as we love subverting expectations, we also know some standards exist for a reason. So on that note:</p><ul><li><strong>Unstructured.io performed no better than naive splitting.</strong> We expected element-level extraction to at least outperform brute-force 500-token chunks… but it didn’t. Unstructured.io needed 1.48m tokens to reach 100% recall, which is virtually identical to naive chunking’s 1.45m. It turns out fine-grained extraction without semantic grouping just trades one fragmentation pattern for another.</li><li><strong>The hardest questions weren’t about rare data</strong>. The questions that required the most context weren’t obscure at all! They just involved multi-row calculations across tables with spanning headers, and that’s exactly the layout structure that flat chunking destroys.</li><li><strong>Hierarchy is the feature, not chunk size</strong>. Tuning chunk size and overlap (i.e. the knobs everyone reaches for first) doesn’t solve the core problem. After all, a table value without its headers is just a number. POMA preserves the hierarchical relationship between headings, subheadings, table headers, and cell values. That structural context is what makes retrieval actually work.</li><li><a href="https://raw.githubusercontent.com/poma-ai/poma-officeqa/main/results/visualizations/accuracy_curves.png"><strong>The accuracy curves</strong></a><strong> show POMA reaching 100% recall far earlier than either baseline. </strong>This one’s pretty self-explanatory, but check out all the <a href="https://github.com/poma-ai/poma-officeqa">visualizations on GitHub</a> if you like colorful charts.</li></ul><h3>Real-world implications of document chunking for enterprise RAG</h3><p>Would <em>you</em> trust a hospital that can’t find its own data?</p><p>Imagine a regional hospital network wants to correlate outcomes of a specific surgical procedure with post-operative complications across five years of discharge summaries. The relevant data is locked in tables spanning multi-page PDFs: surgical volumes in one section, complication rates in another, demographic breakdowns in a third.</p><p>With conventional RAG ingestion, the retriever finds fragments. Looking for a complication rate? Here it is (but without its procedure type)! Need a volume number? You got it (without its year). And when the LLM receives these orphaned numbers, it does what it does best*.</p><p>*<em>Makes up a plausible-sounding but factually wrong correlation</em>.</p><p>With POMA, each table arrives as a semantic unit: headers, row labels, values, and footnotes intact. Instead of the retriever just finding the number 3.2%, it finds “3.2% post-operative infection rate for laparoscopic cholecystectomy, FY2024, Hospital B, age cohort 65+.” The LLM now has enough context to actually answer the question.</p><h3>POMA vs. Unstructured.io: what the benchmark reveals</h3><p>Unstructured.io extracts document elements (titles, tables, narratives). Nothing to scoff at there… except our benchmark shows that element-level extraction without hierarchical grouping produces the same token bloat as naive splitting. Both baselines need <strong>over 4x more tokens</strong> to reach the same recall as POMA Chunksets.</p><figure><img alt="A chart showing context token heaps for POMA PrimeCut (1.35m tokens) vs. naive chunking (5.78m tokens) and Unstructured.io (6.55m tokens)." src="https://cdn-images-1.medium.com/max/1024/1*hj7ryO8Z81aQAPU6TDD1Vg.png" /></figure><p>The difference is architectural. Unstructured.io identifies <em>what</em> something is (a table, a heading). POMA preserves <em>how things relate to each other</em> (e.g. heading A governs table B, which contains values CDE for years FGH). That relational structure is what RAG retrieval actually needs.</p><h3>The cost math of integrating POMA into your RAG pipeline</h3><p>For an enterprise processing 10,000 documents monthly, switching to POMA means:</p><ul><li><strong>77% fewer tokens retrieved, </strong>so you save 77% on embedding and inference costs</li><li><strong>Smaller context windows</strong>, so you enjoy faster response times and the ability to use smaller, cheaper models</li><li>F<strong>ewer hallucinations</strong> from fragmented context, so you need fewer human review cycles</li></ul><p>If you’re spending $50k/month on OpenAI API calls for a document QA system, a 77% reduction in retrieved context goes beyond optimization to unlock an entirely different cost structure.</p><h3>More potential applications</h3><p>The same structural fragmentation problem hits every domain with complex documents:</p><ul><li><strong>Legal &amp; Regulation:</strong> Contract clauses split from their governing definitions</li><li><strong>Finance &amp; Insurance:</strong> Policy terms separated from their coverage tables</li><li><strong>Engineering:</strong> Specifications divorced from their tolerance tables</li><li><strong>Medical: </strong>Regulatory requirements cut from their applicability criteria</li></ul><p>For organizations with lighter document processing needs, PrimeCut Eco mode is available for €0.003 per page.</p><h3>Smart RAG ingestion: try POMA if you’re tired of chunking workarounds</h3><p>We’d love it if everybody who ever had to chunk used POMA, and we do believe it has something to offer everyone. We’re also realistic, though, so below are some more concrete use cases. Many more than these are possible, but nobody has time to read a hundred examples so hopefully this small selection helps get your imagination-juices flowing:</p><p><strong>An AI/ML engineer</strong> building RAG pipelines who’s frustrated by retrieval quality on complex documents. Friend, you can stop tuning chunk sizes! Your real problem is that your chunks don’t carry structural context.</p><p><em>Expected gain</em>: dramatically fewer retrieval failures on structured or tabular content, with no changes to your embedding or generation stack.</p><p><strong>A data platform team</strong> managing document ingestion at scale. POMA processes documents through a single API and outputs both chunks and chunksets, so it’s ready for any vector store.</p><p><em>Expected gain:</em> 77% reduction in retrieval costs, plus reduced QA overhead from fewer hallucination-driven support tickets.</p><p><strong>A consulting or services firm</strong> building document intelligence for regulated industries. When your client asks “show me the evidence for that answer,” you need retrieval that preserves provenance.</p><p><em>Expected gain:</em> auditable retrieval chains where every answer traces back to a structurally complete source passage.</p><p><strong>A startup building on RAG</strong> who needs enterprise-grade document understanding without building a parsing team. POMA’s API handles the structural analysis so you can focus on your application layer.</p><p><em>Expected gain</em>: years of parsing engineering you don’t have to do.</p><h3>What you save</h3><p>“Money and sanity” sums it up pretty well, but we’re list-loving people:</p><ul><li><strong>Tokens</strong>: 77% fewer retrieved tokens means proportionally lower API costs</li><li><strong>Time</strong>: No more hand-tuning chunk sizes and overlaps per document type</li><li><strong>Accuracy</strong>: Fewer hallucinations from fragmented context means fewer review cycles</li><li><strong>Headaches</strong>: Tables, forms, and multi-column layouts just work</li></ul><h3>Get started with POMA</h3><p>The first 50 signups that give us a GitHub star via <a href="http://app.poma-ai.com/">app.poma-ai.com</a> get additional 2,000 free pages (worth 60 €).</p><ul><li><a href="https://app.poma-ai.com/"><strong>Try it</strong></a> — upload a document and see the structured output</li><li><a href="https://www.poma-ai.com/docs/">API docs</a></li><li><a href="https://github.com/poma-ai/poma-officeqa">Benchmark</a></li><li><a href="http://poma-ai.com/pricing](https://www.poma-ai.com/pricing">Pricing</a></li></ul><p>The benchmark code is open-source and MIT-licensed. Run it yourself: if your chunking strategy beats POMA on your documents, we want to hear about it. And if it doesn’t, DM us on any of the channels below.</p><p>—</p><p><em>POMA AI is a Berlin-based document intelligence company. Follow us on </em><a href="https://www.linkedin.com/company/poma-science/)"><em>LinkedIn</em></a><em>, </em><a href="https://github.com/poma-ai"><em>GitHub</em></a><em>, and </em><a href="https://x.com/_POMA_AI_"><em>X (Twitter)</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac20c75da8e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A quick introduction to POMA (Preserving Optimal Markdown Architecture)]]></title>
            <link>https://medium.com/@POMA_AI/a-quick-introduction-to-poma-preserving-optimal-markdown-architecture-e6e08190f171?source=rss-41a4db6ac78c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6e08190f171</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[POMA AI]]></dc:creator>
            <pubDate>Thu, 12 Jun 2025 17:31:59 GMT</pubDate>
            <atom:updated>2025-10-16T13:01:06.366Z</atom:updated>
            <content:encoded><![CDATA[<p>POMA (preserving optimal markdown architecture) is a toolkit. It’s a processing pipeline and a file format, as well. What POMA <em>is</em>, however, might be less interesting than what it <em>does</em>: greatly reduce hallucinations and energy overconsumption, two of the biggest issues currently facing AI tools and the LLMs (large language models) that power them.</p><p>This article provides a brief introduction to POMA’s purpose and how it works. It’s written for a tech-savvy general audience who are interested in questions like “why was this needed?” and “what can you do with it?”</p><p>If you’re a programmer who’d like a more rigorous introduction — including step-by-step guides for integrating POMA into various workflows (including LlamaIndex and LangChain) — you can <a href="https://github.com/poma-science/.github">visit our GitHub here</a>.</p><p>Let’s dive in.</p><h3>POMA: Structured chunking for LLMs</h3><p>“What’s the single most promising solution to AI’s rising rates of hallucinations?” If you ask this question to a hundred industry experts, the most common answer would be <strong>retrieval-augmented generation (RAG)</strong>, which allows an LLM to use information that wasn’t included in its original training library.</p><p>RAG involves slicing a document into “chunks” of information, which an LLM can then retrieve in response to a user prompt. This process is known as “chunking,” and there are many ways to do it (such as by number of tokens). Linear chunking methods have long predominated because they’re easier to develop.</p><p>Since 2020, however, RAG experts have speculated about a chunking method that works more organically, like the human brain. They’ve envisioned “structured” or “agentic” chunking, in which chunks would be created based on topic relevance.</p><p>This is what POMA does.</p><h3>POMA’s advantages over linear chunking</h3><p>Instead of traditional chunks that carve up a document by tokens or characters, POMA uses something called “<a href="https://medium.com/@POMA.SCIENCE/chunksets-cheatsheets-how-poma-solves-ais-chunking-puzzle-447bb8bc19c3">chunksets</a>,” which carve up the document by topic while remaining faithful to its original structure (e.g. title, chapter, heading, etc.).</p><p>Because chunksets maintain the document’s hierarchy of information, they eliminate the gaps that an LLM would otherwise have to fill by guessing or shoehorning in irrelevant information — which is how many AI hallucinations occur.</p><p>In concrete terms, a chunkset ensures that:</p><ul><li>Headings are never separated from their content</li><li>Lists remain intact with all items</li><li>Hierarchical relationships between sections are preserved</li><li>Context is never lost during retrieval</li></ul><p>Chunksets are then combined into “cheatsheets,” which are larger packets of information optimized for use by LLMs.</p><h3>How POMA works</h3><p>The process begins by converting a document into a .poma file. Many types of documents can be converted, such as:</p><ul><li><strong>PDFs</strong> (via page screenshots + OCR)</li><li><strong>Images</strong> (JPG, PNG, TIFF, etc.)</li><li><strong>HTML</strong> (raw structural DOM)</li><li><strong>Office documents</strong> (DOCX, PPTX, etc. via conversion to PDF)</li><li><strong>E-books</strong> (EPUB, MOBI, etc. via conversion to HTML)</li></ul><p>In a process called<em> </em>the doc2poma pipeline, these are then converted into a unified archive with:</p><ul><li><strong>content.md:</strong> markdown with one sentence per line for precise retrieval</li><li><strong>assets/</strong>: all extracted or rendered media</li></ul><p>We now have a clean .poma file with separated sentences, tables, and assets. These are then ready for chunking (or more precisely, chunksetting). From there, chunksets are compiled into a cheatsheet — which can also include original elements from the corresponding stored .poma file — for each request.</p><p>Since the structure is standardized, each time a document is inputted, it’s processed the same way regardless of its original format (and only once since POMA takes care of recognizing the same document again). This is true even for complex documents like scanned books, transcripts, or keyframed videos.</p><p>Now, let’s zoom in for a look at some of the key steps in the doc2poma pipeline.</p><h3>Sentence segmentation with POMA</h3><p>Before chunking is possible, the document must be divided into individual sentences. This is vital because it:</p><ul><li>Enables precise sentence-level identification</li><li>Prevents context confusion during retrieval</li><li>Allows for proper depth assignment in the hierarchy</li><li>Reduces hallucinations by maintaining clear sentence boundaries</li></ul><p>Essentially, this step forms the building blocks of chunksets. It’s done automatically as part of the doc2poma pipeline, but there’s also a special standalone tool called poma-senter* for those who only want sentence segmentation.</p><p><em>*Note for tech people: this module might be one of the best purely mathematical sentence splitters out there. We’re biased, of course, but you should really check it out for yourself. If you’ve ever balked at the heaviness of spaCy, this is going to make your life much more pleasant.</em></p><h3>Structural chunking with POMA</h3><p>Once the document has been divided into sentences, it’s time to get down to chunking. For general audience readers, this part might get a bit technical. However, the overall concept is simple:</p><p>Create chunks (and then chunksets) that fully preserve the document’s structure, so they can be recalled more accurately.</p><p>For readers who want a more detailed explanation, here’s a breakdown of POMA’s two-step chunking process using the poma-chunker tool:</p><ol><li><strong>Creating chunks with depth</strong></li></ol><ul><li><strong>Input</strong></li><li>.poma archive with sentence-aligned markdown</li><li><strong>Process</strong></li><li>Analyze each sentence to determine its hierarchical depth</li><li>Identify structural relationships between sentences</li><li>Process table to maintain tabular context</li><li><strong>Output</strong></li><li>chunks[] array with each sentence assigned a depth value</li></ul><p><strong>2. Building chunksets</strong></p><ul><li><strong>Input</strong></li><li>chunks[] array with depth information</li><li><strong>Process</strong></li><li>Group sentences into meaningful semantic units</li><li>Create complete root-to-leaf paths through the document</li><li>Preserve parent-child relationships</li><li>Maintain full hierarchical context</li><li><strong>Output</strong></li><li>chunksets[] array containing complete contextual paths</li></ul><p>After the chunksets have been built, they’re ready to be indexed. This can be done with whatever vector embedding or fulltext stack you prefer.</p><p>Now, let’s take a look at how these chunksets are used after they’ve been created and indexed.</p><h3>Retrieval process with POMA</h3><p>POMA’s retrieval process works differently than traditional RAG approaches, and has a number of significant benefits. For our general readers, we’ll share those first before explaining the actual retrieval process:</p><ul><li><strong>Complete context</strong>: Every fact carries its full hierarchical context</li><li><strong>Reduced tokens</strong>: Only relevant paths are included, not entire sections (or even documents) nor irrelevant or duplicate content</li><li><strong>Structural integrity</strong>: Document organization is preserved</li><li><strong>Improved accuracy</strong>: LLMs receive properly contextualized information</li></ul><p>The natural response to reading that list would be, “OK, but how does POMA manage to offer all that?” That’s a question best answered with another list — this one outlining the POMA retrieval process:</p><ol><li>Search for relevant chunksets using vector similarity, keyword search, metadata or any other custom matching methods</li><li>Extract chunk IDs from the retrieved chunksets</li><li>Enrich these IDs using the get_relevant_chunk_ids() function:</li></ol><ul><li>get_relevant_chunk_ids(chunk_ids, chunk_depths)</li><li><em>This function:</em></li><li>Deduplicates overlapping chunk IDs</li><li>Identifies and adds IDs of relevant parent and child nodes</li><li>Returns a complete set of chunk IDs that preserves document structure</li></ul><p>4. Fetch the actual text content for all resulting chunk IDs</p><p>Now, we’re ready for the final step of the POMA process: feeding our creation into an LLM.</p><h3>Creating cheatsheets: optimized content for LLMs</h3><p>Once the necessary chunksets have been fetched, the next step is:</p><p>5. Compile this content into a compact context block using generate_cheatsheet()</p><p>We’ve now produced a cheatsheet. All that’s left to do is:</p><p>6. Inject this cheatsheet as prompt context for any LLM (optionally: re-rank cheatsheets for multiple documents before injection)</p><p>Compact, contextually rich, and ideally suited for use by LLMs, a cheatsheet is free of duplicate information and irrelevant bits. This has a number of obvious benefits:</p><ul><li><strong>Token efficiency</strong>: Eliminates redundancy while preserving context</li><li><strong>Structural clarity</strong>: Maintains hierarchical relationships</li><li><strong>Improved reasoning</strong>: Helps LLMs understand document organization</li><li><strong>Reduced hallucinations</strong>: Provides complete context for facts</li></ul><h3>Conclusion</h3><p>We believe that the AI industry will only reach its full potential if people can trust its outputs, and if those outputs can be generated sustainably. And according to all the testing we’ve done so far, POMA seems to succeed on both fronts.</p><p>Most notably, POMA uses over 80 percent fewer tokens than traditional RAG methods. If such technology was adopted across the industry, the global AI industry could save $200 billion by the year 2030. And since less electricity would be needed to process this workload, POMA could also eliminate carbon emissions equivalent to several small countries.</p><p>We realize that those numbers might be hard to wrap your head around. But we have the research to back them up — and if you’re interested in discussing how POMA might work for you, we’d be happy to talk.</p><p>Just drop us a line at info(at)poma-ai(dot)com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6e08190f171" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chunksets & cheatsheets: how POMA solves AI’s chunking puzzle]]></title>
            <link>https://medium.com/@POMA_AI/chunksets-cheatsheets-how-poma-solves-ais-chunking-puzzle-447bb8bc19c3?source=rss-41a4db6ac78c------2</link>
            <guid isPermaLink="false">https://medium.com/p/447bb8bc19c3</guid>
            <category><![CDATA[chunking]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[POMA AI]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 18:18:16 GMT</pubDate>
            <atom:updated>2025-10-16T13:00:12.908Z</atom:updated>
            <content:encoded><![CDATA[<p>AI can’t remember facts. And that’s a problem for the multibillion dollar industry.</p><p>Consider a simple query: “When was Shakespeare born?” A large language model might confidently respond with 1564 — or perhaps 1565, or 1563. The uncertainty isn’t a bug; it’s a fundamental feature of how these models work.</p><p>Training a Large Language Model is like compressing the internet into an algebraic kaleidoscope. The precise sentences and facts vanish; only the statistical patterns of language remain. This is why a model can write a perfect Shakespeare-style sonnet yet mangle the Bard’s actual birth year. It doesn’t “remember” facts — it regenerates patterns.</p><p>For any task requiring factual accuracy, we must provide the facts at query time. This is the job of Retrieval-Augmented Generation (RAG, see <a href="https://medium.com/@AIBites/retrieval-augmented-generation-rag-a-quick-and-comprehensive-introduction-6cd5217a4ebb">here</a> or <a href="https://medium.com/@ignacioperezzv/stepbystep-understanding-rag-basics-its-patterns-and-its-stages-6a173869ae64">here</a> for a comprehensive introduction), which allows an LLM to consult external documents rather than rely on its static training data.</p><p>But here’s where the economics get brutal.</p><h3>The $100 billion chunking problem</h3><p>Our analysis of global RAG token usage reveals a staggering trajectory:</p><p>By 2030, the industry will consume approximately <a href="https://www.interconnects.ai/p/people-use-ai-more-than-you-think">40 quadrillion context tokens annually</a> — equivalent to $100 billion in compute costs at <a href="https://llmprices.dev/">current reference GPT-4o rates</a>. That’s not a typo: we’re heading toward a hundred-billion-dollar problem driven largely by inefficient document chunking.</p><p>What are context tokens? They’re the units of text that AI models process when retrieving information — think of them as the “words” the AI reads to answer your question. More tokens mean higher computational costs and slower responses.</p><p>The standard RAG process has a critical flaw. It chops documents into flat, target-length “chunks” and hopes for the best. This linear, brute-force approach creates a cascade of expensive problems:</p><ul><li><strong>Orphaned headings</strong> arrive in prompts without their corresponding text</li><li><strong>Split lists</strong> lose their integrity when cut in half</li><li><strong>Broken context</strong> occurs when crucial sentences are separated from their defining predecessors</li><li><strong>Hallucinatory gaps</strong> emerge when models receive partial context and fill voids with statistically likely — but factually incorrect — information</li></ul><p>The last point is particularly relevant, as AI “hallucinations” have become so prevalent that the <a href="https://www.nytimes.com/2025/05/05/technology/ai-hallucinations-chatgpt-google.html?campaign_id=9&amp;amp;emc=edit_nn_20250505&amp;amp;instance_id=153899&amp;amp;nl=the-morning&amp;amp;regi_id=55370892&amp;amp;segment_id=197320&amp;amp;user_id=861fd8fcc0091c6690e3b338636d5995"><em>New York Times</em> has warned that they’re getting worse</a> even as AI systems become more powerful. To counter these problems we need to “feed” the model better information at query time. Better information does not only mean more accuracy, though. With better information we need fewer tokens to answer a question, which makes the entire process more resource-efficient. Resource efficiency is the AI industry’s other main problem (<a href="https://www.technologyreview.com/2025/05/20/1116327/ai-energy-usage-climate-footprint-big-tech/">as covered here by <em>MIT Technology Review</em></a>).</p><p>This means the chunking problem isn’t just a quality issue; it’s an economic catastrophe hiding in plain sight. When you scale inefficient chunking across exponential growth in AI usage, you need to essentially burn billions of dollars to feed models redundant, fragmented text just to make sure all relevant information is included.</p><h3>From linear chunks to hierarchical chunksets</h3><p>POMA’s breakthrough is deceptively simple: respect a document’s native structure instead of imposing arbitrary boundaries. Like a master librarian who understands that knowledge has inherent organization, POMA understands the document’s hierarchy before breaking it apart.</p><p><strong>Traditional chunking:</strong></p><p>[Chunk 1: “…end of paragraph. 3. Health Insurance”]</p><p>[Chunk 2: “Employees are eligible for…”]</p><p>[Chunk 3: “…enrollment deadline is December 15. 4. Dental Coverage”]</p><p><strong>POMA chunksets:</strong></p><p>[Chunkset 1: Employee Handbook → Benefits → Health Insurance →</p><p>“Employees are eligible for… enrollment deadline is December 15.”]</p><p>The process follows human cognitive patterns:</p><ol><li><strong>Parse</strong> any source document (PDF, HTML, Office files) into clean, sentence-by-sentence structure</li><li><strong>Identify</strong> the hierarchy, assigning each sentence a “depth” in the document’s tree representation</li><li><strong>Group</strong> sentences into chunksets — complete, unbreakable root-to-leaf paths</li></ol><p>Hierarchy here does not only include the <em>explicit</em> (“obvious”) one through headlines, formatting etc. — but also the <em>implicit</em> one induced by sentences that detail others etc., anything a human reader would file <em>indented</em> under their <em>parent</em> one.</p><p>A chunkset preserves the full “breadcrumb trail” of context:</p><p>Employee Handbook → Benefits Section → Health Insurance → Enrollment Procedures → Deadline Requirements</p><p>This architectural approach guarantees that retrieved facts never arrive orphaned. Each piece of information brings its complete contextual lineage, eliminating the guesswork that leads to hallucinations or the context overfilling that leads to escalating cost and energy use.</p><h3>Cheatsheets: the final step to efficiency</h3><p>At query time, POMA gathers relevant chunksets and compiles them into a “cheatsheet” — a single, deduplicated, intelligently structured block of text optimized for LLM consumption — per document. Think of it as the difference between handing someone a stack of randomly torn book pages versus providing expertly crafted verbatim study notes.</p><p>The results are dramatic. In <a href="https://www.bopa.ad/Documents/Detall?doc=lo26067002">benchmark testing on a classic legal document</a>, traditional RAG required 1,542 tokens of context to answer a query about Andorra’s personalized license plate law. POMA delivered the same answer with just 337 tokens — an ~80% reduction with zero information loss.</p><h3>The global impact of structure-aware RAG</h3><p>Applied globally, we calculate that POMA’s approach would transform the economic landscape of AI:</p><ul><li><strong>2025</strong>: Save ~$10 billion in context token costs</li><li><strong>2027</strong>: Save ~$30 billion annually</li><li><strong>2030</strong>: Save ~$80 billion annually from the projected $100 billion total</li></ul><p>Beyond the financial impact, this efficiency gain would eliminate a proportional ~80% of energy consumption — approximately 8 terawatt-hours by 2030, equivalent to the annual energy usage of several small countries.</p><p>But the real victory isn’t just cost reduction. Structure-aware chunking produces higher-quality responses because models receive coherent, complete information rather than fragmented text soup. It’s the difference between consulting a well-organized reference library and rummaging through a pile of torn documents.</p><h3>Why this matters now</h3><p>We’re at an inflection point where RAG systems are scaling exponentially. Any large OEM processes tens of trillions of tokens quarterly, and enterprise adoption shows no signs of slowing.</p><p>Large context windows are powerful, but without structure, they become expensive, disorganized noise. Chunksets give AI systems a filing cabinet; cheatsheets hand them the correct folder, opened to the right page, with all relevant passages highlighted.</p><h3><strong>The path forward: engineering efficiency at scale</strong></h3><p>The economics of AI are forcing us to rethink fundamental assumptions about information retrieval. The global retrieval augmented generation market is <a href="https://www.grandviewresearch.com/industry-analysis/retrieval-augmented-generation-rag-market-report">expected to grow at a ~50% compound annual growth rate</a> from 2025 to 2030. As this market explodes, the difference between efficient and inefficient chunking compounds into massive economic and environmental impacts.</p><p>The challenge isn’t just technical — it’s existential for AI adoption. One million input tokens often cost at least $1 for normal current models and $10+ for more advanced models, <a href="https://llmprices.dev/">reaching up to $150(!)</a> for the most advanced. That’s <em>for each generation</em>.</p><p>So your RAG chatbot can cost you several dollars to answer just one question. When every query carries such weight, architectural decisions about how we structure and retrieve information become critical infrastructure choices.</p><p>This is why approaches like hierarchical chunking matter. They’re not just optimizations; they’re necessary adaptations to the realities of scale. The industry must move beyond brute-force retrieval, and POMA’s chunksets are a good starting point. The companies succeeding in this space will be those that recognize a fundamental truth: in the age of AI, information architecture is destiny.</p><p><strong>For developers and decision-makers:</strong> Start asking hard questions about your RAG pipeline. How does your system chunk documents? What percentage of tokens actually contribute to your answers? Every percentage point of efficiency gained today compounds into significant advantages as you scale.</p><p>The LLM kaleidoscope is beautiful, but when accuracy matters, when costs matter, when energy matters we need systems that remember not just patterns, but leverage the precise structure and content of human knowledge. That’s not just good engineering. It’s the foundation for sustainable AI.</p><p><em>POMA is currently freely available for evaluation and integration. Check out </em><a href="https://www.poma-ai.com/">https://www.poma-ai.com/</a> <em>for details or find the library on github at </em><a href="https://github.com/poma-ai">https://github.com/poma-ai</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=447bb8bc19c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>