frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•11mo 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!

Hello old new "Projects" directory

https://blog.tenstral.net/2026/04/hello-projects-directory.html
1•LorenDB•1m ago•0 comments

Working hurts less than procrastinating, we fear the twinge of starting (2011)

https://www.lesswrong.com/posts/9o3QBg2xJXcRCxGjS/working-hurts-less-than-procrastinating-we-fear...
1•davikr•4m ago•0 comments

The Abstraction Fallacy: Why AI Can Simulate but Not Instantiate Consciousness [pdf]

https://philpapers.org/archive/LERTAF.pdf
1•danielmorozoff•6m ago•0 comments

The Impact of New Housing Supply on the Distribution of Rents

https://www.journals.uchicago.edu/doi/10.1086/733977
1•littlexsparkee•7m ago•0 comments

Silicon Valley Is Turning into Its Own Worst Fear (2017)

https://www.buzzfeednews.com/article/tedchiang/the-real-danger-to-civilization-isnt-ai-its-runaway
1•nz•8m ago•0 comments

Adventure Travel in Costa Rica Done Right

https://johnquam.substack.com/p/adventure-travel-in-costa-rica-done
1•headmonkey•9m ago•0 comments

How to Fine-Tune a Reasoning Model?

https://huggingface.co/papers/2604.14164
1•Anon84•11m ago•0 comments

Show HN: Readox – Turn web pages and PDFs into a playable reading queue

https://readox.ai/
2•siegers•12m ago•0 comments

When Students Believe That Personal Characteristics Can Be Developed (PDF, 2012)

https://thrive.arizona.edu/sites/default/files/Mindsets%20That%20Promote%20Resilience%20When%20St...
1•lucidplot•14m ago•0 comments

Science Home

https://sah.borca.ai/
1•parksb•14m ago•0 comments

Trump's reversal on day care upends a bipartisan push to lower costs

https://www.washingtonpost.com/politics/2026/04/15/trump-childcare-abandoned-pledge/
1•doctaj•15m ago•0 comments

Failed Companies Are Selling Old Slack Chats and Email Archives to Train AI

https://gizmodo.com/failed-companies-are-selling-old-slack-chats-and-email-archives-to-train-ai-2...
2•01-_-•16m ago•1 comments

Babies Born from Dead Parents Will Increase with New Tech

https://www.404media.co/babies-born-from-dead-parents-will-increase-with-new-tech-are-we-ready/
1•salkahfi•20m ago•0 comments

Euro-Office: License compliance and what open source means

https://nextcloud.com/blog/euro-office-license-compliance-and-what-open-source-means/
1•maxloh•25m ago•0 comments

LingBot-Map: Geometric Context Transformer for Streaming 3D Reconstruction

https://github.com/Robbyant/lingbot-map
2•flux_w42•25m ago•0 comments

Modern Spectacle

https://px.philosopheasy.com/architecture-illusion-soral-media-control/
1•obscureline•25m ago•0 comments

Isaac Asimov: The Last Answer (1980)

https://www.highexistence.com/the-last-answer-short-story/
1•genphy1976•26m ago•0 comments

Client-Led Game/Simulation Projects' Effects on Motivation and Career Readiness

https://dl.acm.org/doi/book/10.1145/3786353?af=R
1•salkahfi•28m ago•0 comments

Generative Drinker: An Idea for Improving Wine Compatibility

https://hajo.me/blog/2026/04/18/generative-drinker-an-idea-for-improving-wine-compatibility/
1•fxtentacle•28m ago•0 comments

A Japanese poet's diary helps scientists reconstruct solar cycles

https://www.npr.org/2026/04/18/nx-s1-5788782/how-a-japanese-poets-diary-helps-scientists-reconstr...
1•Brajeshwar•32m ago•0 comments

Value Numbering

https://bernsteinbear.com/blog/value-numbering/
2•tekknolagi•36m ago•0 comments

Graph RAG finds what's similar. We should aim for what's relevant

https://github.com/FlowElement-ai/m_flow
59•hjeffery•36m ago•5 comments

The Most Remarkable Case in Swedish UFO History [video]

https://www.youtube.com/watch?v=4nqAJrqvXlY
2•keepamovin•36m ago•0 comments

Why is my MacBook zapping me lately?

1•pavas•38m ago•2 comments

Atmospheric Aging and the Respiratory Toxicity of Nanoplastic Particles

https://pubs.acs.org/doi/10.1021/acs.chemrestox.5c00237
1•PaulHoule•39m ago•0 comments

EnsembleData – Social Media Scraping APIs, feedback!!

https://ensembledata.com/
1•slackwy•40m ago•1 comments

The Great Man-Made River of Libya

https://en.wikipedia.org/wiki/Great_Man-Made_River
2•keiferski•41m ago•0 comments

Running a Minecraft Server and More on a 1960s Univac Computer

https://farlow.dev/2026/04/17/running-a-minecraft-server-and-more-on-a-1960s-univac-computer
1•brilee•42m ago•0 comments

Managing Complexity with Mycelium

https://yogthos.net/posts/2026-02-25-ai-at-scale.html
1•tosh•44m ago•0 comments

LogsGo – an experimental log ingestion/query project I built to learn

1•SaumyaCodes•53m ago•0 comments