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!

Plumbum v2.0.0 Pythonic Shell Combinators Released

https://plumbum.readthedocs.io/en/latest/
1•GalaxySnail•1m ago•0 comments

I Used to Send Stories and Poetry in Envelopes for Your Consideration

https://tumbleweedwords.com/from-stamps-to-submittable-what-published-means-now.html
1•tumbleweedwords•2m ago•0 comments

Efficient and Training-Free Single-Image Diffusion Models

https://arxiv.org/abs/2606.04299
1•yorwba•4m ago•0 comments

Europe as a global standard-setter (2020)

https://www.epc.eu/publication/The-strategic-importance-of-Europe-37f244/
1•Tomte•4m ago•0 comments

Klarna CMO created an AI "venting machine" of himself

https://www.businessinsider.com/klarna-cmo-built-ai-replica-himself-colleagues-vent-at-2026-5
1•navs•6m ago•0 comments

Heavybad

https://github.com/loverofpizzas/heavybad
1•loverofpizzas•7m ago•0 comments

Show HN: Best setup local LLM found for a 5090 (llama.cpp fork + turboquant)

https://local-llm.utop.workers.dev/
1•utopman•12m ago•0 comments

twentyforty [pdf]

https://www.hiig.de/wp-content/uploads/2020/03/twentyforty-book-1.pdf
1•jruohonen•12m ago•0 comments

What we know about the plan to give Americans an equity stake in AI

https://www.ft.com/content/8559a3f9-86de-4a1c-8a75-6623e83e6a00
1•Timofeibu•14m ago•0 comments

CaaStle CEO Confessed to Fraud. The Board Let Her Stay

https://www.nytimes.com/2026/06/07/business/caastle-fraud-christine-hunsicker.html
1•sbulaev•15m ago•0 comments

AI Memory Fails Spectacularly: 95% Error Rate Unveiled

https://www.machinebrief.com/news/ai-memory-fails-spectacularly-95percent-error-rate-unveiled-ewj0
2•decorner•18m ago•0 comments

SourceHut Disrupted by LLM Crawlers

https://status.sr.ht/issues/2026-06-06-llms-again/
3•BrunoBernardino•28m ago•0 comments

A Dark Cave

https://a-dark-cave.com/
1•suralind•30m ago•1 comments

Ask HN: What do you currently use for AI coding (personal or professional)?

1•joelthelion•33m ago•0 comments

Grid connection requested for US fusion power plant

https://www.world-nuclear-news.org/articles/grid-connection-requested-for-us-fusion-power-plant
2•beardyw•36m ago•1 comments

Reality: The Final Eval – Vending Bench Eval

https://www.latent.space/p/andon
1•davedx•40m ago•0 comments

How to Stay Resilient in a Difficult Job

https://andiroberts.com/executive-coaching/how-to-stay-resilient-in-a-difficult-job
1•Garbage•42m ago•0 comments

I've Built 4 Products – Traffic Has Killed All of Them. Organic Growth Strategy?

1•Clikdeo•43m ago•1 comments

Companies Are Using Reddit to Manipulate ChatGPT and Google AI Search

https://www.404media.co/companies-are-using-reddit-to-manipulate-chatgpt-and-google-ai-search/
3•latexr•46m ago•0 comments

DentaQuest Data Breach Analysis

https://www.rescana.com/post/dentaquest-data-breach-analysis-shinyhunters-leak-exposes-pii-and-ph...
2•01-_-•59m ago•0 comments

Rodents in the Attic (Small C64 demo) [video]

https://www.youtube.com/watch?v=fbXIdK3o3NU
1•atesti•59m ago•0 comments

Google Tag Manager Is Not a Skill. It Never Was

https://dev4321.tagcompanion.com/blog/gtm-is-not-a-skill-it-never-was/
2•ybor•59m ago•0 comments

Maybe You Can Get Rid of Code Reviews

https://rogermarley.com/blog/maybe-you-can-get-rid-of-code-reviews/
2•rogermarley•59m ago•0 comments

Hey guys made my first indie game from India called Inverta

https://play.google.com/store/apps/details?id=com.invertagame.app&hl=en_US
1•vamsikv28•1h ago•1 comments

Science and Society need more interaction instead of mere communication

https://elephantinthelab.org/science-and-society-need-more-interaction-instead-of-mere-communicat...
1•jruohonen•1h ago•0 comments

Centrality in the DNS

https://www.potaroo.net/ispcol/2026-05/dns-centrality.html
2•fanf2•1h ago•0 comments

Commandments of Synchronization (2011) [pdf]

https://www.cs.cornell.edu/courses/cs4410/2012fa/papers/commandments.pdf
1•signa11•1h ago•0 comments

A Proposal for an Open Credential Lifecycle Standard

https://gist.github.com/abrambailey/086c1cc4f6417a1f504ef7360962dbfc
1•funkdified•1h ago•0 comments

Ask HN: Who here still codes without AI, and why?

1•jakemanger•1h ago•0 comments

Reverse Engineered Razer Keyboard Control

https://www.rizldizl.com/
2•scienceisneato•1h ago•1 comments