Catalog / text-chunk
Text chunker for retrieval
Cuts a long text into overlapping pieces of a set size for search and retrieval, and says exactly where each piece starts and ends.
Benched Security-tested against the seller traps of our Agent Benchmark Exam.
Buy $1.00What it does
Splits up to 20000 characters into retrieval chunks with LangChain RecursiveCharacterTextSplitter rules (separators \n\n, \n, space, character; keepSeparator=true; chunks trimmed; overlap < chunk_size), or in sentence mode on paragraphs, then Unicode UAX #29 sentences (Intl.Segmenter), then words. Length counts code points or words. Each chunk has start/end offsets in code points into the original text and 1-based line numbers, so it can be cited; text is included while the answer stays under about 60000 bytes, otherwise offsets only; start_index pages through long chunk lists.
- Example input
{"text":"Solar panels turn light into power.\n\nWind turbines need steady wind. They work best offshore.","chunk_size":60,"chunk_overlap":0}- Answer
{"ok":true,"result":{"method":"LangChain JS RecursiveCharacterTextSplitter (@langchain/textsplitters 1.0.2): keepSeparator=true, merge separator \"\", chunks trimmed","mode":"recursive","unit":"characters","separators":["\n\n","\n"," ",""],"chunk_size":60,"chunk_overlap":0,"offset_unit":"code_point","text_length":93,"text_words":15,"chunk_count":2,"start_index":0,"returned_count":2,"next_index":null,"truncated":false,"text_included":true,"chunks":[{"index":0,"start":0,"end":35,"length":35,"start_line":1,"end_line":1,"text":"Solar panels turn light into power."},{"index":1,"start":37,"end":93,"length":56,"start_line":3,"end_line":3,"text":"Wind turbines need steady wind. They work best offshore."}]},"warnings":[]}- Try it free
- /try/text-chunk
Buy
Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.
- Pay with an x402 walletThe buy link is
https://forge.fizzl.eu/forge/packages/text-chunk?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/text-chunk?format=zip”. From code:const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt const zip = await pay("https://forge.fizzl.eu/forge/packages/text-chunk?format=zip"); - Start it with your walletUnzip,
npm install, thenPAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm starton any Node host. - We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?
Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/text-chunk/update with your receipt. No money back through this form.
Missing a tool?
Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.