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!

AI is a Sword not a Shield [video]

https://www.youtube.com/watch?v=TdbMZRlTDaI
1•saltysalt•2m ago•0 comments

Typing Some Python Quirks

https://blog.mathieui.net/typing-python-quirks.html
1•Einenlum•2m ago•0 comments

A million baby monitors and security cameras were easily viewable by hackers

https://www.theverge.com/tech/926487/meari-technology-hack-baby-monitor-security-camera
1•starkparker•3m ago•0 comments

Ask HN: How are you preparing for interviews nowadays?

1•holden_nelson•6m ago•0 comments

Show HN: Compiled an archive of copium content for SF Bay Area engineers

https://copium.fyi/
1•average_ana•8m ago•0 comments

Uniform Rental Contracts Explain the U.S. Economy

https://www.thebignewsletter.com/p/fine-print-how-uniform-rental-contracts
1•connor11528•8m ago•0 comments

What Challenging a Bowling Monopoly Says About America

https://www.thebignewsletter.com/p/monopoly-round-up-what-challenging
1•connor11528•9m ago•0 comments

Counterfactual samples synthesizing for mitigating hallucination in LLMs

https://pubmed.ncbi.nlm.nih.gov/41729914/
1•fragmede•14m ago•1 comments

Tashk – a todo manager written in pure bash

https://github.com/agamoaltrove/tashk
1•agamoaltrove•17m ago•0 comments

The lab where Ford is trying to crack the code on cheap EVs

https://www.theverge.com/transportation/923704/ford-ev-skunkworks-lab-long-beach
2•dkobia•18m ago•0 comments

Elon Musk and Tim Cook among CEOs expected to accompany Trump on China trip

https://www.bbc.com/news/articles/c5yx757w048o
3•bigyabai•20m ago•0 comments

Tensor Shapes

https://pyrefly.org/en/docs/tensor-shapes/
2•rexledesma•20m ago•0 comments

French woman was told by doctors hantavirus symptoms were just anxiety

https://www.theguardian.com/world/2026/may/11/french-womandoctors-hantavirus-symptoms-hv-hondius
4•cdrnsf•21m ago•0 comments

OpenDyslexic: A Typeface for Dyslexia

https://opendyslexic.org/
2•oldfuture•21m ago•0 comments

Cloud Storage Rapid: Turbocharged object storage for AI and analytics

https://cloud.google.com/blog/products/storage-data-transfer/cloud-storage-rapid-turbocharges-obj...
1•leg•24m ago•0 comments

My First AI Project: An "Evidence-Based" System Architect. Looking for Feedback

https://github.com/maioio/genesis-architect
1•maioio•24m ago•0 comments

Surprise X-Ray Discovery May Explain Red Dots in Early Universe

https://www.sciencealert.com/surprise-x-ray-discovery-may-explain-strange-red-dots-in-early-universe
2•smooke•24m ago•0 comments

Swatch and Audemars Piguet Are Planning a Collaboration Watch

https://www.hodinkee.com/articles/its-official-swatch-and-audemars-piguet-are-planning-a-collabor...
1•nstj•28m ago•0 comments

Lawsuit accuses ChatGPT of helping gunman plan FSU mass shooting

https://www.pbs.org/newshour/nation/lawsuit-accuses-chatgpt-of-helping-gunman-plan-fsu-mass-shooting
5•anigbrowl•30m ago•0 comments

Childhood Computing

https://lilysthings.org/blog/childhood-computing/
2•birdculture•34m ago•0 comments

Olive CSS: Lisp powered vanilla CSS utility-class a la Tailwind

https://codeberg.org/jjba23/olive-css
2•PaulHoule•35m ago•0 comments

Gamingshuvo

https://blog.cloudflare.com/post-quantum-warp/
1•Gamingshuvo•36m ago•0 comments

Family of Florida mass shooting victim sues OpenAI in US court

https://www.reuters.com/legal/government/family-florida-mass-shooting-victim-sues-openai-us-court...
2•tartoran•39m ago•0 comments

Tech Companies Fail to Kill Colorado's 'Right to Repair' Law

https://www.techdirt.com/2026/05/11/tech-companies-fail-to-kill-colorados-right-to-repair-law/
3•cdrnsf•40m ago•0 comments

All Roads Lead to AI Rome

https://medium.com/towards-artificial-intelligence/all-roads-lead-to-ai-rome-1c601f1ec440
1•vektormemory•40m ago•1 comments

Tesla recalls every Cybertruck RWD ever sold because the wheels could fall off

https://finance.yahoo.com/markets/stocks/articles/tesla-recalls-every-cybertruck-rwd-140500699.html
5•cdrnsf•41m ago•0 comments

Day After Grizzly Attack, Dimwitted Tourist Takes Video of Bear from 5 Feet Away

https://cowboystatedaily.com/2026/05/08/day-after-grizzly-attack-dimwitted-tourist-takes-video-of...
3•Bender•41m ago•1 comments

People Who Don't Like People Are Making All of Our Decisions

https://www.theatlantic.com/ideas/2026/05/waymo-self-driving-cars/687119/
3•bentaber•42m ago•1 comments

Griffin PowerMate driver for modern macOS

https://github.com/jameslockman/Griffin-PowerMate-Driver
2•classichasclass•43m ago•0 comments

Making your developer platform agent-ready

https://hookdeck.com/blog/developer-platform-agent-ready
1•mooreds•43m ago•0 comments