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!

Crypto Bear Market Playbook 2026: How to win by not dying

https://hduynam99.substack.com/p/crypto-bear-market-playbook-2026
1•hoangthuytrang•1m ago•0 comments

OpenAI Mulls Delaying IPO Until 2027

https://www.investors.com/news/technology/openai-ipo-ai-startup-mulls-delaying-until-2027-spacex/
1•helsinkiandrew•2m ago•0 comments

Making Equality Saturation Usable for Developing Vectorized Compilers

https://dl.acm.org/doi/full/10.1145/3802603
1•matt_d•2m ago•0 comments

Modern GPU Programming for MLSys Book

https://mlc.ai/modern-gpu-programming-for-mlsys/
1•tanelpoder•2m ago•0 comments

Pliny the Younger's Letters About the Eruption of Vesuvius

https://www.pompeii.org.uk/s.php/tour-the-two-letters-written-by-pliny-the-elder-about-the-erupti...
1•pncnmnp•6m ago•0 comments

DeepSeek Is Recruiting

https://app.mokahr.com/social-recruitment/high-flyer/140576
1•RIshabh235•11m ago•0 comments

Reading AI Model Compilation in MLIR Through the Lens of Formal Theories

https://arxiv.org/abs/2606.25244
2•matt_d•11m ago•0 comments

Context loss is the real reason AI coding slows down engineering teams

https://brunelly.com/
2•RihabAI•12m ago•0 comments

AI in research: we need to stop treating every AI-related issue as misconduct

https://www.frontiersin.org/news/2026/06/26/ai-in-research-why-we-need-to-stop-treating-every-ai-...
2•giuliomagnifico•17m ago•0 comments

How the DeepMind mafia brought the AI boom to London

https://www.ft.com/content/6a3a46b9-4725-469e-a909-917768a74afb
1•mmarian•17m ago•1 comments

Trump administration asks OpenAI to stagger release of new model

https://ca.finance.yahoo.com/news/trump-administration-asks-openai-stagger-204300837.html
2•Palmik•19m ago•0 comments

AI coding will be more expensive than human developers

https://www.heise.de/en/news/Forecast-By-2028-AI-coding-will-be-more-expensive-than-human-develop...
1•slow_typist•19m ago•0 comments

4chan dating app is FOSS

https://github.com/duolicious/duolicious
1•xc90•19m ago•0 comments

What we miss when we ignore male infertility

https://www.bbc.co.uk/news/articles/cx2w4kz7z1ko
1•mmarian•21m ago•0 comments

King Charles reveals he paid £12.9M in tax for 2024-25

https://www.bbc.co.uk/news/articles/c8x2151y8q4o
1•mmarian•22m ago•0 comments

Show HN: Turns Any XPost into Carousel

https://tocarousel.app
1•ckkampy•23m ago•0 comments

Trump administration asks OpenAI to stagger release of new model

https://ca.finance.yahoo.com/news/us-presses-meta-agree-ai-213859668.html
1•wahnfrieden•26m ago•0 comments

A Survey on Lawvere's Fixed-Point Theorem (2025)

https://arxiv.org/abs/2503.13536
2•measurablefunc•29m ago•0 comments

I wrote a 750-page book on self-hosting in production

https://selfdeployment.io/#table_of_contents
4•kocyigityunus•31m ago•1 comments

Supercomplete.ai

https://www.supercomplete.ai/
2•ishener•32m ago•0 comments

Facebook/Astryx

https://github.com/facebook/astryx
2•geoffbp•34m ago•0 comments

Show HN: Appaca – AI Workspace for Operators

https://www.appaca.ai/
4•susros•34m ago•0 comments

Seeing Radio Waves at 30fps

https://www.crowdsupply.com/scale-rf/quadrf
2•mrtnmcc•37m ago•0 comments

MIT Open Courseware: Sailing Yacht Design

https://ocw.mit.edu/courses/2-996-sailing-yacht-design-13-734-fall-2003/download/
2•mlhpdx•44m ago•0 comments

Fundamental principles of the universe called into question by two physicists

https://www.scientificamerican.com/article/fundamental-principles-of-the-universe-called-into-que...
2•Jimmc414•46m ago•1 comments

Ludwig Spec Driven Development MCP

https://github.com/samdvr/ludwig
2•monoids•48m ago•0 comments

The Long-Term Thinker

https://zhenyi.gibber.blog/the-long-term-thinker
2•zhenyi•50m ago•0 comments

Show HN: Trophikos – a calm, ad-free recipe and cocktail library for iOS

https://apps.apple.com/us/app/trophikos/id6773508921
3•fetus8•52m ago•0 comments

Architectural Studies #02

https://www.fashionablylatetakes.com/p/architectural-studies-02
2•paulpauper•54m ago•0 comments

Bayer scores landmark victory as Supreme Court overturns Roundup verdict

https://www.fiercepharma.com/pharma/bayer-scores-major-win-scotus-overturns-roundup-verdict
3•olvy0•54m ago•1 comments