frontpage.
newsnewestaskshowjobs

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!

Out of Writing Ideas? Don't Ask ChatGPT, Ask Yourself

https://medium.com/@vincent.ferreira/out-of-writing-ideas-dont-ask-chatgpt-ask-yourself-a56c2f761a6f
2•vincenfer•6m ago•0 comments

A startup is able to detect fires within minutes using satellites and AI

https://netbajura.blogspot.com/2026/08/ororatech-startup-that-detects.html
2•AllForAll•15m ago•0 comments

The Present Must Prove the Past

https://lab.parano1d.org/research/the-present-must-prove-the-past/
4•ignotusnemo•17m ago•0 comments

If You Get in a Car Crash, the Risk Is Growing Your Insurance Won't Pay

https://www.wsj.com/finance/if-you-get-in-a-car-crash-the-risk-is-growing-your-insurance-wont-pay...
2•bookofjoe•18m ago•2 comments

Sorry if this is a dumb question, but

https://www.thetrueengineer.com/p/for-those-who-work-full-time-in-a
2•adletbalzhanov•22m ago•0 comments

Zuckerberg faces questions over why superyacht declined to help stranded boat

https://www.theguardian.com/us-news/2026/aug/09/zuckerberg-superyacht-boat-alaska
4•higginsniggins•23m ago•0 comments

The Fermi Paradox Just Got Worse [video]

https://www.youtube.com/watch?v=s-MgHZ_oGl0
1•Bender•24m ago•0 comments

John Crowley Has Died

https://en.wikipedia.org/wiki/John_Crowley_(author)
3•atombender•24m ago•1 comments

Idol Mahjong Final Romance: A Slideshow Disguised as a Video Game

https://nicole.express/2026/more-like-idle-mahjong.html
2•nicole_express•24m ago•0 comments

Polyethylene may be causing liver damage

https://scitechdaily.com/this-widely-used-plastic-could-be-harming-your-liver/
3•Gaishan•26m ago•0 comments

Show HN: Lumabri – What if LLMs worked like Napster?

https://github.com/JustVugg/lumabri
2•vforno•27m ago•0 comments

3G at Last

https://nickvsnetworking.com/3g-at-last/
1•birdculture•33m ago•0 comments

The malignant rise of OnlyFans managers

https://www.theguardian.com/society/2026/jun/18/malignant-rise-onlyfans-managers-exploiting-groom...
4•mukmuk•35m ago•1 comments

Show HN: An AI chief of staff for founders who can't afford one

https://useairo.co
1•vidit99•37m ago•0 comments

The rise of illegal tobacco in Australia tracked in wastewater

https://www.abc.net.au/news/2026-08-10/charting-the-rise-of-illegal-tobacco-in-australia/106941130
2•Gaishan•39m ago•0 comments

Neural Scaling Law

https://en.wikipedia.org/wiki/Neural_scaling_law
1•frozenseven•40m ago•0 comments

Testing Anthropic's RSI Claims

https://ankitmaloo.com/rsi-claims/
1•ankit219•43m ago•0 comments

Quoted $1M for AI code review. Built it for free

https://sagivo.com/blog/i-was-quoted-1m-to-get-ai-diff-review-tool
3•shubidubi•44m ago•0 comments

What Garbage Collection Costs

https://shivanshuag.com/blog/what-garbage-collection-actually-costs/
1•shivanshuag•45m ago•0 comments

Who Should Pay for Source Code Availability?

https://kristoff.it/blog/source-code-availability/
3•Retro_Dev•45m ago•0 comments

Black lung rates in Appalachia are high as the 1970s

https://text.npr.org/nx-s1-5894884
5•mooreds•49m ago•2 comments

I got 30% better AI coding results

https://github.com/akasula09/CodeSlimmer
2•kushthedevmmm•49m ago•0 comments

To Recruit Teachers, School Districts Are Building Homes

https://www.nytimes.com/2026/07/28/business/affordable-housing-schools-teachers.html
7•mooreds•50m ago•0 comments

Sen. Chuck Grassley mourns Beth, 49yo vacuum cleaner

https://twitter.com/ChuckGrassley/status/2086178745191133662
2•nianderwallace•51m ago•0 comments

High car prices lead to long-term auto loans

https://www.marketplace.org/story/2026/08/07/high-car-prices-lead-to-longterm-auto-loans
3•mooreds•51m ago•1 comments

Tape scratching the "Peter Piper" routine, using a homemade tape loop [video]

https://www.youtube.com/watch?v=L6SMyND8hso
1•CharlesW•51m ago•0 comments

Why.com – Explore any topic by repeatedly asking why

https://why.com/
2•m5r•51m ago•0 comments

Quantifying dynamics of failure across science, startups and security

https://arxiv.org/abs/1903.07562
1•highfrequency•55m ago•0 comments

The Post-Quantum WebPKI

https://rmhrisk.github.io/classical-webpki/
1•tomwas54•58m ago•0 comments

AI assistant hacks gym website in first known Australian autonomous cyber attack

https://www.abc.net.au/news/2026-08-10/ai-assistant-hacks-gym-website-aus-cyber-attack/107007986
2•stared•59m ago•0 comments