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!

RSS Feeds Send Me More Traffic Than Google

https://shkspr.mobi/blog/2026/05/rss-feeds-send-me-more-traffic-than-google/
1•SpyCoder77•1m ago•0 comments

From a Harvard dropout to Oceanco visionary: 10 facts about Gabe Newell

https://www.boatinternational.com/features-reviews/who-is-gabe-newell-famous-for-valve-steam-oceanco
1•evo_9•6m ago•0 comments

What do you say when the AI asks "Let me know if you'd like me to proceed."

1•acquire9395•9m ago•0 comments

Was this Virginia office building built with missiles in mind?

https://www.washingtonpost.com/dc-md-va/2022/09/03/skyline-buildings-baileys-crossroads/
1•gnabgib•10m ago•1 comments

They Don't Look Like Me

https://niccolorastrelli.com/they-dont-look-like-me
3•cainxinth•11m ago•0 comments

OpenAI-Oracle data center construction proceeds despite Michigan town vote

https://fortune.com/2026/05/06/ai-data-center-michigan-saline-politics-farmland/
1•xyst•13m ago•0 comments

Hunk: Review-first terminal diff viewer for agentic coders

https://github.com/modem-dev/hunk
1•pella•17m ago•0 comments

Hourglass nanographenes unlock strong, robust multi-spin entanglement

https://phys.org/news/2026-05-hourglass-nanographenes-strong-robust-multi.html
1•WaitWaitWha•19m ago•0 comments

Gmail app bug locks some Microsoft 365 and Exchange Online users out on Android

https://piunikaweb.com/2026/05/06/gmail-app-android-microsoft-365-exchange-online-authentication-...
1•sega_sai•21m ago•0 comments

Taiwan cops say student's radio kit brought bullet trains to a standstill

https://www.theregister.com/cyber-crime/2026/05/06/taiwan-student-pwns-rail-comms-halts-high-spee...
4•rmason•24m ago•0 comments

Iran hit more U.S. military targets than has been reported, satellite images

https://www.washingtonpost.com/investigations/2026/05/06/iran-us-bases-satellite-images/
4•SanjayMehta•24m ago•0 comments

QR Code Generator

https://www.thonky.com/qrcode/
1•gurjeet•27m ago•0 comments

The Old Guard: Confronting America's Gerontocratic Crisis

https://harpers.org/archive/2026/05/the-old-guard-samuel-moyn-gerontocracy/
6•Caiero•28m ago•1 comments

Elon Musk's Last-Ditch Effort to Control OpenAI

https://www.wired.com/story/elon-musk-recruit-sam-altman-tesla-ai-lab-trial/
4•nico•30m ago•0 comments

How programmers are feeling about AI

https://thesoftwaresurvey.com/
2•yakkomajuri•32m ago•0 comments

We Need a Neural Network (2006)

https://thedailywtf.com/articles/No%2c_We_Need_a_Neural_Network
2•mjtk•34m ago•0 comments

Aphasia

https://en.wikipedia.org/wiki/Aphasia
3•soupspaces•35m ago•0 comments

We Built the Permanent Record

https://www.nationalreview.com/2026/05/we-built-the-permanent-record/
2•petethomas•37m ago•0 comments

Show HN: Sqlalchemy-Redshift Is Back: Reviving a Critical Python Data Library

https://github.com/sqlalchemy-redshift/sqlalchemy-redshift
2•TeddyCrep•40m ago•0 comments

Mass Deportation and American Jobs

https://www.wsj.com/opinion/mass-deportation-american-jobs-nber-university-of-colorado-boulder-st...
4•petethomas•46m ago•0 comments

Go is FIPS 140-3 certified

https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/5247
4•birdculture•47m ago•0 comments

Agents of Chaos

https://agentsofchaos.baulab.info/
2•giwook•48m ago•0 comments

ADT says customer data stolen in cyber intrusion

https://therecord.media/ADT-data-breach-cyberattack
5•PaulHoule•50m ago•2 comments

The Loudest Known Sound Ever (2024)

https://www.audiology.org/the-loudest-known-sound-ever/
2•thunderbong•52m ago•0 comments

Naval Character Living Inside iMessage

https://naval.chat
4•oqy•53m ago•2 comments

Correction Has to Occur – NYU Finance Professor Warn

https://finance.yahoo.com/news/correction-occur-nyu-finance-professor-160057855.html
5•laxmena•55m ago•0 comments

Have you sent a smile today?

https://mylightstillshines.wordpress.com/2026/05/06/have-you-smiled-at-somebody-today/
2•jaygirl•55m ago•0 comments

QUIC will soon be as important as TCP – but it's vastly different

https://www.theregister.com/on-prem/2026/04/16/quic-will-soon-be-as-important-as-tcp/5227423
4•Bender•58m ago•1 comments

Kash Patel's Personalized Bourbon Stash

https://www.theatlantic.com/politics/2026/05/kash-patel-fbi-bourbon/687066/
34•petethomas•59m ago•13 comments

Iran cybersnoops still LARPing as ransomware crooks in espionage ops

https://www.theregister.com/security/2026/05/06/iran-cyberspies-larping-as-ransomware-crims-in-es...
4•Bender•1h ago•0 comments