frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

At the Cafe – or the online "playground" for Caffeine

https://caffeine-lang.run/blog/at-the-cafe
1•bob-surfs•4m ago•0 comments

Reatom – State managers for any kind of apps

https://v1000.reatom.dev/
1•reconvene1290•6m ago•0 comments

Agentic AI in Retail: How Autonomous Shopping Is Redefining the Customer Journey

https://www.bain.com/insights/agentic-ai-in-retail-how-autonomous-shopping-redefining-customer-jo...
1•gmays•7m ago•0 comments

From Hand-Signed Forms to LLM's: The Evolution of Order Submission

https://blog.everstrike.io/evolution-of-order-submission/
1•mo3rew4r•12m ago•0 comments

COVID Origins. Debunking the Grift, Pseudoscience, & Politics of Lab Leak Theory

https://www.youtube.com/watch?v=ra0WKNhQZ0U
1•vo2maxer•15m ago•0 comments

Interactive Visualization of the Standard Model of Particle Physics

https://llsourcell.github.io/physics/standard_model.html
1•llSourcell•16m ago•1 comments

5 Jobs 4 years and the mindspace leading to it

https://ritavdas.substack.com/p/the-things-i-said-id-never-do
1•fandango1•21m ago•0 comments

What happens when the coding becomes the least interesting part of the work

https://obie.medium.com/what-happens-when-the-coding-becomes-the-least-interesting-part-of-the-wo...
1•obiefernandez•21m ago•0 comments

Ask HN: How do you give a local AI model long-term memory?

1•javantanna•22m ago•0 comments

LibXML2, Used by Steam, Chromium, Others Is Now Abandoned

https://www.youtube.com/watch?v=GDr4fKXmUvc
2•rasengan0•24m ago•0 comments

OSS Friday Update – Fibers Are the Future of Ruby

https://noteflakes.com/articles/2025-12-12-friday-update
1•todsacerdoti•28m ago•0 comments

Show HN: Guftaguu – Anonymous Chat and Real-Time Games (No Login Required)

https://guftaguu.vercel.app
2•SeeYouInHelL•33m ago•1 comments

GitHub Is Down

https://github.com/
2•diek•35m ago•3 comments

ChatGPT 5.2 Tested: How Developers Rate the New Update (Another Marketing Hype?)

https://www.finalroundai.com/blog/chatgpt-5-2-developer-reactions
2•birdculture•38m ago•0 comments

Catland, the Louis Wain Archive

https://catland.distin.org/
1•graypegg•38m ago•0 comments

The state of the kernel Rust experiment

https://lwn.net/SubscriberLink/1050174/63aa7da43214c3ce/
1•dochtman•39m ago•0 comments

Pdf-sign – Adobe-compliant PDF signing with GPG Agent

https://github.com/0x77dev/pdf-sign
1•0x77dev•42m ago•0 comments

Shaping the future of AI from the history of Transformer [2024]

https://docs.google.com/presentation/d/1u05yQQaw4QXLVYGLI6o3YoFHv6eC3YN8GvWD8JMumpE/edit?slide=id...
1•qouteall•42m ago•1 comments

The state of the kernel Rust experiment

https://lwn.net/SubscriberLink/1050174/604164032b9a01cc/
2•howtofly•52m ago•0 comments

React Is Rainbow Colored

https://skyview.social/?url=https%3A%2F%2Fbsky.app%2Fprofile%2Fsh03.dev%2Fpost%2F3m7tz3zhl522f&vi...
2•Shoetp•53m ago•1 comments

Crowd-sourced comparison of USB security tokens

https://docs.google.com/spreadsheets/d/1XlwmreiBkt82F4HG965Yp9ncULkgnFpNyfe7WAAtYPk/edit?gid=0#gid=0
2•stv0g•58m ago•0 comments

AI Can Write Your Code. It Can't Do Your Job

https://terriblesoftware.org/2025/12/11/ai-can-write-your-code-it-cant-do-your-job/
1•thunderbong•59m ago•0 comments

Musk's Mars mission adds risk to red-hot SpaceX IPO

https://www.reuters.com/business/aerospace-defense/musks-mars-mission-adds-risk-red-hot-spacex-ip...
1•TMWNN•1h ago•0 comments

EZ File Changer – Private, client-side image converter

https://www.ezfilechanger.com
2•waqaar-ansari•1h ago•0 comments

Ozempic Turned a 1970s Hit into an Inescapable Jingle (2024)

https://www.nytimes.com/2024/04/09/arts/music/ozempic-jingle-oh-oh-oh-its-magic-pilot.html
1•nxobject•1h ago•0 comments

Firefox Version 146.0

https://www.firefox.com/en-US/firefox/146.0/releasenotes/
3•ksec•1h ago•1 comments

Can't take setting up another bucket for images

https://images.labnocturne.com/
3•jjenkins•1h ago•0 comments

Switzerland Engineered the Perfect Country [video]

https://www.youtube.com/watch?v=OMbV1rIPhCg
2•keepamovin•1h ago•0 comments

The New Allowance

https://www.theatlantic.com/family/2025/12/kids-allowance-investing-parenting/685214/
2•gmays•1h ago•0 comments

Show HN: Zootopia OC Maker – Create Zootopia-Style Original Characters with AI

https://aiocmaker.com/oc-maker/zootopia-oc-maker
1•qianjin1979•1h ago•0 comments