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!

University Professors Disturbed to Find Their Lectures Chopped Up into AI Slop

https://www.404media.co/asu-atomic-ai-modules-arizona-state-university/
2•abdelhousni•3m ago•0 comments

ASU Using AI Tool to Create Courses from Professors' Work Without Their

https://azfreenews.com/2026/05/asu-using-ai-tool-to-create-courses-from-professors-work-without-t...
2•abdelhousni•4m ago•0 comments

ChatGPT crashed my browser when I continued 1k+ conversations

1•Sharedmemory•4m ago•0 comments

Punk, or why I don't stream anymore

https://geohot.github.io//blog/jekyll/update/2026/05/03/punk-or-why-i-dont-stream.html
1•mefengl•4m ago•0 comments

Make Your Own Microforest

https://ambrook.com/offrange/environment/a-forest-in-your-pocket
1•bookofjoe•5m ago•0 comments

Former Nintendo Executive Says Amazon Once Requested 'Illegal' Price Discounts

https://kotaku.com/reggie-fils-aime-says-nintendo-stopped-selling-to-amazon-after-being-asked-to-...
1•m463•7m ago•0 comments

Simulating Cells Fighting to the Death

https://jamiesimon.io/blog/cell-fight/
1•jamie-simon•12m ago•0 comments

Flock repeatedly flags 76-year old Grandmother for arrest, erroring zero for "O"

https://guessingheadlights.com/colorado-grandma-keeps-getting-pulled-over-because-police-cameras-...
1•chasil•13m ago•0 comments

Neanderthal DNA Implicated in Autism Susceptibility

https://communities.springernature.com/posts/neanderthal-dna-implicated-in-autism-susceptibility
1•janandonly•14m ago•0 comments

Show HN: Decentralized compute network. CLI-first

https://github.com/profullstack/c0mpute
1•buffer_overlord•16m ago•0 comments

HealthFormer: Transformers for irregular electronic health record events [pdf]

https://www.medrxiv.org/content/10.64898/2026.03.25.26349262v1.full.pdf
1•brandonb•16m ago•0 comments

Show HN: I modeled Peru's 1993 Constitution as a Git history

https://github.com/Duvet05/Constitucion-Politica-del-Peru
1•Duvet05•17m ago•0 comments

The Paradox of Medical AI Implementation

https://erictopol.substack.com/p/the-paradox-of-medical-ai-implementation
1•brandonb•20m ago•0 comments

People who are blind from birth never develop schizophrenia

https://theconversation.com/people-who-are-blind-from-birth-never-develop-schizophrenia-what-this...
4•debo_•21m ago•0 comments

Moving from Node to Bun spikes container CPU and memory usage until it crashes

https://github.com/oven-sh/bun/issues/17723
1•emigre•22m ago•0 comments

I vibecoded a game, its making money, heres what I learned

https://gunguesser.com
2•saladvr•22m ago•1 comments

Show HN: A public web artwork made by its visitors

https://fluidart.dev/
1•denieler•23m ago•0 comments

Italy's 'Cheese Bank' where Parmigiano becomes financial gold

https://www.cnn.com/2026/05/02/food/italy-cheese-bank-parmigiano-reggiano-intl
1•Tomte•23m ago•0 comments

We Need to Rewild the Internet

https://www.noemamag.com/we-need-to-rewild-the-internet/
1•josh-sematic•23m ago•0 comments

Using IDEs as a Harness for Thinking and Writing

https://ravivyas.com/2026/05/03/ide-as-thinking-harness/
2•ravivyas•27m ago•1 comments

With developer verification, Google's Apple envy threatens open legacy

https://arstechnica.com/gadgets/2026/03/with-developer-verification-googles-apple-envy-threatens-...
1•abdelhousni•29m ago•0 comments

Comparing a Store-Less Password Manager with Traditional Password-Only Auth

https://ieeexplore.ieee.org/document/11415666
1•gnabgib•29m ago•0 comments

Minimal Fab Promoting Organization

https://www.minimalfab.com/en/
1•nz•29m ago•0 comments

SunTrace3D – Browser-based 3D solar planning and shadow simulation

https://suntrace3d.com
2•tomcraft•30m ago•0 comments

eBay soars on report that GameStop is preparing a takeover bid

https://fortune.com/2026/05/01/ebay-stock-gamestop-takeover-bid-ryan-cohen/
2•randycupertino•34m ago•1 comments

Why does my harness forget me? Agent engineering

https://twitter.com/nicbstme/status/2050301124314563025
1•nbstme•34m ago•0 comments

AI models that consider user's feeling are more likely to make errors

https://arstechnica.com/ai/2026/05/study-ai-models-that-consider-users-feeling-are-more-likely-to...
1•milkglass•34m ago•0 comments

36k People Pledged $22M to ‘Buy’ Spirit Airlines - Then the Site Crashed

https://letsbuyspirit.com/
4•djfobbz•35m ago•1 comments

Show HN: Wove 2.0 "Beautiful Python async" adds inline Celery execution

https://github.com/curvedinf/wove
1•curvedinf•35m ago•1 comments

SysSimulator: System design simulator in Rust/WASM, free, No login

https://syssimulator.com/
1•ronitdahiya•35m ago•4 comments