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!

Water Fluoridation in Australia

https://en.wikipedia.org/wiki/Water_fluoridation_in_Australia
1•nomilk•30s ago•0 comments

Tlbic: A shared prompt for humanity and the future of ASI

1•michikawa59•6m ago•0 comments

Mike Stonebraker: Disagreeing with Google, Postgres and Future Problems [video]

https://www.youtube.com/watch?v=YPObBOwIrHk
1•teleforce•6m ago•0 comments

Oracle Cloud might start charing for their forever-free instances

https://old.reddit.com/r/oraclecloud/comments/1u4lzkk/new_free_tier_limits_confirmed_by_oracle_su...
2•bel8•11m ago•1 comments

Show HN: A-C Coupling – Deterministic Data Decomposition in O(n) with No Search

https://zenodo.org/records/20693980
1•A19dammer91•11m ago•0 comments

From Hookswitch to Grave

https://computer.rip/2026-06-14-hookswitch-to-grave.html
1•K7PJP•11m ago•0 comments

Terminal UIs Are an Abomination. AI Needs Better UX

https://medium.com/@balajibal/terminal-uis-are-an-abomination-so-are-chatbots-ai-needs-better-ux-...
2•rafaepta•12m ago•0 comments

Image Toolbox (T8RIN)

https://github.com/T8RIN/ImageToolbox/
2•unexpectedVCR•14m ago•1 comments

People quit because reality doesn't match the movie they created in their heads

https://timesofindia.indiatimes.com/technology/tech-news/quote-of-the-day-by-nvidia-ceo-jensen-hu...
2•teleforce•15m ago•1 comments

How Nvidia Dominates AI:11 Engineering Moves [video]

https://www.youtube.com/watch?v=vzM8mv1t_zM
2•skpothana•23m ago•0 comments

US and Iran announce deal to end military operations

https://www.bbc.com/news/live/cj0grpyg4v1t
36•vermilingua•26m ago•61 comments

Show HN: ItchCord – Discord Rich Presence for itch.io games

https://itchcord.vrma.dev
1•shredswap•31m ago•0 comments

Show HN: Morning Stack finds real job openings, tweaks resume and cover letter

https://morningstack.app/demo/
2•hillj23•33m ago•1 comments

Formal Methods and the Future of Programming

https://blog.janestreet.com/formal-methods-at-jane-street-index/
1•dcre•34m ago•1 comments

Show HN: Grade your growth rate using Paul Graham's two-number math

https://www.brutal-audit.com/growth
1•smakosh•36m ago•0 comments

Telescope Rancher Who Manages Telescopes Each Night on a Texas Ranch

https://www.techeblog.com/telescope-rancher-texas-ranch/
2•mhb•37m ago•0 comments

Your ePub Is Fine. Kobo Disagrees. Blame Adobe

https://andreklein.net/your-epub-is-fine-kobo-disagrees-blame-adobe/
3•sohkamyung•39m ago•1 comments

What's Going on with the Web?

https://iam.mt/whats-going-on-with-the-web/
3•thallavajhula•41m ago•4 comments

What even is food authenticity? Why we guard carbonara, and flatten chicken rice

https://iza.ac/posts/2026/06/food-authenticity/
3•infinitewalk•41m ago•0 comments

Show HN: Cordium – FOSS identity-based sandbox platform with zero-trust access

https://github.com/octelium/cordium
1•geoctl•46m ago•0 comments

Early Research Suggests a Path to Predict and Prevent Lung Cancer

https://www.nytimes.com/2026/06/04/well/lung-cancer-prevention.html
1•mhb•47m ago•0 comments

Stanford grads walk out on Google CEO Sundar Pichai speech

https://twitter.com/maattttbrown/status/2066215255987163246
30•sosomoxie•48m ago•5 comments

Nothing CEO: Phone Prices Will Rise, RAM Accounts for over 50% of Phone Costs

https://www.theverge.com/gadgets/949403/nothing-carl-pei-ram-phone-prices
2•karakoram•49m ago•1 comments

Antidepressants and antipsychotics could be alternatives to opioids, study finds

https://www.theguardian.com/society/2026/jun/14/other-medications-opioids-alternatives-study
1•bookofjoe•49m ago•1 comments

Chinese Drivers Are Using Tiny Plastic Heads to Fool Tesla Autopilot Safeguards

https://www.wired.com/story/chinese-drivers-are-using-tiny-plastic-heads-to-fool-teslas-autopilot...
3•srameshc•50m ago•0 comments

The Jqwik Anti-AI Affair

https://blog.johanneslink.net/2026/06/09/the-jqwik-anti-ai-affair/
3•dgellow•50m ago•1 comments

A New Path to Preventing Cancer

https://erictopol.substack.com/p/a-new-path-to-preventing-cancer
3•paulpauper•52m ago•0 comments

The Former GOP Operative Running a News Site for the 'Politically Homeless'

https://www.wsj.com/business/media/the-bulwark-sarah-longwell-77bc9475
2•paulpauper•53m ago•0 comments

Instagram is obsessed with me (and you)

https://denkthoughts.com/instagram-is-obsessed-with-me
1•mootdentures•53m ago•0 comments

Bob Dylan (and others) on turning 80

https://www.nytimes.com/2026/06/14/opinion/trump-turns-80.html
2•paulpauper•54m ago•0 comments