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!

The Isomorphic Labs Drug Design Engine unlocks a new frontier beyond AlphaFold

https://www.isomorphiclabs.com/articles/the-isomorphic-labs-drug-design-engine-unlocks-a-new-fron...
1•andsoitis•50s ago•0 comments

The Largest Vocabulary in Hip Hop (2017)

https://pudding.cool/2017/02/vocabulary/index.html
1•cdrnsf•53s ago•0 comments

Show HN: Qwen3.6-35B-A3B on a 16 GB M1 Pro with SSD-streamed MoE

https://github.com/andreaborio/ds4
1•andreaborio•7m ago•0 comments

NASA Taps SpaceX's Starlink to Deliver Artemis III Imagery from Orion

https://www.nasa.gov/blogs/missions/2026/07/16/nasa-taps-spacexs-starlink-to-deliver-artemis-iii-...
3•connicpu•9m ago•0 comments

Maybe dark energy doesn't need to exist after all

https://www.ucdavis.edu/blog/taking-dark-energy-out-equation
2•gumby•9m ago•0 comments

'See the whole world in lichens,' the marvels that grow anywhere

https://www.seattletimes.com/pacific-nw-magazine/see-the-whole-world-in-lichens-the-marvels-that-...
2•cainxinth•10m ago•0 comments

What a Monopoly importer learned when it tried to make things in the USA

https://www.npr.org/2026/07/12/nx-s1-5887378/monopoly-tariffs-china-manufacturing-made-inusa
2•hhs•12m ago•0 comments

Brazilian scientist propose a "shortcut" to Mars in just 7 months

https://en.clickpetroleoegas.com.br/brazilian-scientist-uses-asteroid-data-and-artificial-intelli...
1•evo_9•12m ago•0 comments

Plumbing Homebrew into the Vulnerability Ecosystem

https://nesbitt.io/2026/07/17/plumbing-homebrew-into-the-vulnerability-ecosystem.html
1•chmaynard•13m ago•0 comments

HanToggle – Toggle selected Chinese text between Simplified and Traditional

https://github.com/minorole/HanToggle
1•minorole•13m ago•1 comments

What Early Hackers Understood That We've Forgotten [video]

https://www.youtube.com/watch?v=XHeMsXDyw2A
1•phenrys•13m ago•0 comments

What is a bio-metal? Exploring the metallic mystery of an ancient maw

https://publishing.aip.org/publications/latest-content/what-is-a-bio-metal-exploring-the-metallic...
2•hhs•15m ago•0 comments

What have note-taking PKMs accomplished, really?

https://brennan.day/what-have-note-taking-pkms-accomplished-really/
1•ExMachina73•17m ago•0 comments

LG monitors installing adware on Windows PCs

https://www.techradar.com/televisions/lgs-gaming-monitors-and-tvs-are-facing-a-user-revolt
5•0xC0ncord•18m ago•1 comments

Problematic Social Media Use and ADHD Symptoms in Adolescents

https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2851740?guestAccessKey=9298d7c8-e27e...
1•bookofjoe•20m ago•0 comments

Sensing warm and cool: how the body detects temperature changes

https://news.uq.edu.au/2026-07-sensing-warm-and-cool-how-body-detects-temperature-changes
2•hhs•21m ago•0 comments

The Most Powerful People in A.I

https://observer.com/list/2026-ai-power-index/
2•andsoitis•21m ago•0 comments

Show HN: Poems, an .ISO Puzzle

http://wii.sjmulder.nl/2026/poems/
1•sjmulder•23m ago•0 comments

One year of Kiro: a look back, and a look ahead

https://kiro.dev/blog/one-year/
1•mariuz•25m ago•0 comments

Ableton Live 12, Max for Live and Push on Linux

https://github.com/shibco/ableton-linux
1•ta988•30m ago•0 comments

Building Systems That Build Systems: Setting Up the SDLC in LangGraph

https://mattmccormick.ca/building-systems-that-build-systems-setting-up-the-sdlc-in-langgraph/
1•mattm•31m ago•0 comments

Value Polymorphism in Rust

https://remy.wang/blog/value-polymorphism.html
1•remywang•37m ago•0 comments

ICME Labs – formal proofs for agent work

https://docs.icme.io/documentation/our-products
1•_doctor_love•40m ago•0 comments

Three Languages, Two FFIs, and One Rope: Building a Local-First IDE

https://ropenotes.dev/blog/hardest-problems-building-rope-notes/
1•momentarylegacy•42m ago•0 comments

I Think AGI Just Happened

https://danielmiessler.com/blog/i-think-agi-just-happened
3•dimava•42m ago•1 comments

Dynamic black holes explained by simple thermodynamics?

https://www.psu.edu/news/eberly-college-science/story/dynamic-black-holes-explained-simple-thermo...
2•westurner•43m ago•1 comments

Ask HN: What Is Happening to Messenger.com?

2•darknavi•44m ago•0 comments

4,500 Google Employees Sign Petition Demanding Layoff Protections

https://abc7news.com/post/4500-google-employees-sign-petition-demanding-layoff-protections/19522280/
3•harambae•45m ago•1 comments

Patreon Blocks AI Crawlers from Copying Content: 'Creators Deserve Compenstion'

https://petapixel.com/2026/07/13/patreon-blocks-ai-crawlers-from-copying-content-creators-deserve...
1•gnabgib•50m ago•0 comments

Texas wins court order to suspend domain name for violating age-verification law

https://www.texasattorneygeneral.gov/news/releases/attorney-general-ken-paxton-secures-landmark-l...
12•letmevoteplease•51m ago•0 comments