frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•1y ago
Hi HN,

We’re Chonkie (https://github.com/chonkie-inc/chonkie) — we build open source tools that help split documents into meaningful chunks for use with AI models.

When you use LLMs over large documents or codebases, you often need to break them into smaller parts to fit the model’s context window. Our chunkers do this in a smart way: they preserve structure and meaning, so only the most relevant pieces are passed into the model. This reduces hallucinations, avoids confusion, and improves performance and accuracy.

Today we’re launching our Code Chunker — a fast, structure-aware way to break down source code into high-quality, token-aware chunks.

How it works:

(See the code: https://github.com/chonkie-inc/chonkie/blob/main/src/chonkie...)

Code Chunker uses tree-sitter (https://tree-sitter.github.io/tree-sitter/) to parse your code into an abstract syntax tree (AST). It then recursively merges and groups nodes in a way that respects both code structure and token limits.

It supports all languages that tree-sitter supports, and is designed to preserve formatting and semantics. Large functions or class definitions won’t be split in the middle of a block — instead, we dive recursively into the AST to produce clean, coherent chunks that fit your configured token budget.

What it’s useful for:

  - Embedding-based code search

  - RAG (retrieval-augmented generation) over codebases

  - Long-context analysis of code

  - Preparing repos for fine-tuning or pretraining
Try it out:

  - Open source package: https://docs.chonkie.ai/chunkers/code-chunker

  - Hosted playground (free with account): https://cloud.chonkie.ai
Happy Chonking!

Has academia become institutionally narcissistic?

https://philpapers.org/rec/JOVTAF
1•thestructuralme•5m ago•0 comments

NELA – Net-Based Executable Logic Automaton

https://github.com/heikowagner/nela-lang
1•chrisch•6m ago•0 comments

Dark Bio [pdf]

https://dark.bio/whitepaper.pdf
1•ricochet11•7m ago•0 comments

Show HN: A small game where you have to guess the stars of GitHub repositories

https://starguessr.vincentwill.com/
1•Vincenius•9m ago•0 comments

Enhanced Games: Think Olympics with No Rigid Doping Rules

https://www.npr.org/2026/05/24/nx-s1-5831252/enhanced-games-steroids-olympics-trump
1•signa11•13m ago•0 comments

24/7 Renewables Outcompete Fossil Fuels on Costs

https://www.irena.org/News/pressreleases/2026/May/24-7-Renewables-Outcompete-Fossil-Fuels-on-Firm...
2•xbmcuser•16m ago•0 comments

Trump admin shutting key US researchers out of global virus response talks

https://www.cnn.com/2026/05/25/politics/global-virus-response-trump-administration
2•doener•23m ago•0 comments

Dangerously-skip-permissions is the only safe mode

https://www.granola.ai/blog/dangerously-skip-permissions-is-the-only-safe-mode
1•p44v9n•28m ago•0 comments

Maybe Don't Rely on Google's "Modern Web Guidance"

https://adrianroselli.com/2026/05/maybe-dont-rely-on-googles-modern-web-guidance.html
1•moebrowne•28m ago•0 comments

Chinese Room re-visited: How LLM's have real but different understanding of word

https://www.lesswrong.com/posts/PpCHgKsg2xDdPDQhu/the-chinese-room-re-visited-how-llm-s-have-real...
2•stevefan1999•31m ago•0 comments

Market Makers Print Money

https://zozo123.github.io/market-making-sandbox/
1•zozo123-IB•32m ago•0 comments

Owl 3: A minimalist UI framework built on Signals and Proxies

https://odoo.github.io/owl/documentation/v3/owl/
2•pointedulac•33m ago•0 comments

BadHost – CVE-2026-48710 Starlette Host-Header Auth Bypass

https://mcp-scan.nemesis.services/
2•ylk•34m ago•1 comments

Proposals for cyber-propaganda de-escalation

https://www.tandfonline.com/eprint/3VSGIKQQFNMBQXMCS7BR
1•instagraham•35m ago•0 comments

Agile, as we know it, is disappearing

https://ajagara.com/en/blog/agile-wie-wir-es-kennen-verschwindet/
1•fcse•35m ago•0 comments

India moves a step closer to 114 Rafales deal: 'LoR ready to be sent to France'

https://timesofindia.indiatimes.com/india/india-moves-a-step-closer-to-114-rafales-deal-lor-for-m...
2•vrganj•35m ago•0 comments

Spent an afternoon on a perf issue that 56 bytes of padding fixed

https://cong-or.xyz/false-sharing-cache-lines
1•cong-or•39m ago•0 comments

GPU-Accelerated Alpha Factor Discovery: 30x Faster Than Python GPLearn

https://medium.com/@DolphinDB_Inc/30x-faster-alpha-factor-mining-the-gpu-edge-every-quant-needs-5...
2•CrazyTomato•41m ago•0 comments

How Claude helped me to find a RCE in XReader/Evince/Atril

https://medeiros.zip/posts/CVE-2026-46529-evince
1•0x38B•41m ago•0 comments

End of an Era: Iconic Shibuya Hands to Close After 48 Years

https://spoon-tamago.com/iconic-shibuya-hands-to-close-november/
1•thm•41m ago•0 comments

Build High-Frequency Order Books from Tick Data

https://medium.com/@DolphinDB_Inc/build-high-frequency-order-books-from-tick-data-9da2a6cc2fcf
2•Polly_Liu•43m ago•0 comments

Physical Lens on the Cell

https://physicallensonthecell.org/
1•o4c•47m ago•0 comments

PrivatePulse – Estimate what your private company equity is worth today

https://www.privatepulse.online
1•OscarDK•47m ago•0 comments

It's Hot, Close the Windows

https://www.eneigualauno.com/mental/meanderings/2026/05/25/hot-close-the-window.html
2•reallydontask•49m ago•0 comments

Medieval King Arthur manuscript could fetch £2M at auction

https://www.theguardian.com/books/2026/may/26/medieval-king-arthur-manuscript-auction
2•sandebert•53m ago•0 comments

Inside Google’s Agentic Search Revolution

https://puck.news/inside-googles-agentic-search-revolution/?sharer=425101&token=b032e98a72528abbe...
2•thm•54m ago•0 comments

Checking the math behind OpenAI and Anthropic's latest headlines

https://garymarcus.substack.com/p/checking-the-math-behind-openai-and
2•ColinWright•54m ago•0 comments

How to write code, miss every deadline, and make everyone miserable

https://github.com/Senuto/nodeshub-seo-skills
1•NodesHub•57m ago•1 comments

Scoped Error in Rust

https://kanru.info/scoped-error/
2•fanf2•59m ago•0 comments

The robots are replacing the packages

https://spatie.be/blog/the-robots-are-replacing-the-packages
1•moebrowne•1h ago•0 comments