frontpage.
newsnewestaskshowjobs

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!

Monarchies of Malaysia

https://en.wikipedia.org/wiki/Monarchies_of_Malaysia
1•thunderbong•33s ago•0 comments

Getting GLM 5.2 running on my slow computer

1•vforno•36s ago•0 comments

CEO

1•frajaro•5m ago•0 comments

Etcd v3.7.0

https://etcd.io/blog/2026/announcing-etcd-3.7/
1•enz•5m ago•0 comments

Timeline Studio – browser AI voiceover editor running ONNX locally

https://video-editor.ai-creator.top/
1•martindelophy•6m ago•0 comments

The robotaxi law that could ban Tesla

https://www.theverge.com/transportation/962309/new-jersey-robotaxi-bill-lidar-tesla
2•baranul•7m ago•0 comments

Before AI Ships Code, Show Me the Receipts

https://www.pagerduty.com/eng/before-ai-ships-code-show-me-the-receipts/
1•mlashcorp•9m ago•0 comments

The AI didn't get smarter about my project. My notes did

https://www.syncpen.io/blog/your-ai-doesn-t-get-better-your-workspace-does
1•airbuzz•11m ago•0 comments

LingBot-World 2.0: Interactive world generation from image, text, and actions

https://github.com/Robbyant/lingbot-world-v2
1•jallenjia•11m ago•0 comments

International timekeepers to vote on changing the leap second to a leap hour

https://www.scientificamerican.com/article/international-timekeepers-to-vote-on-changing-the-leap...
3•beardyw•15m ago•0 comments

$130M Series A to Build the Open Superintelligence Stack

https://www.primeintellect.ai/blog/series-a
1•ronfriedhaber•17m ago•0 comments

Quantum Pairs Stitch Space-Time (2015)

https://www.quantamagazine.org/tensor-networks-and-entanglement-20150428/
1•throwaway81523•17m ago•0 comments

World Tour Finals 2026 Algorithm: Human vs. AI Exhibition Match

https://atcoder.jp/login?continue=https%3A%2F%2Fatcoder.jp%2Fcontests%2Fawtf2026algo%2Fstandings%...
1•limoce•19m ago•0 comments

A certain kind of talk around LLMs that I find increasingly puzzling

https://twitter.com/esrtweet/status/2074889702381953222
2•tosh•20m ago•0 comments

The Web's HTTP Header Junk Drawer

https://jonlu.ca/posts/http-headers-top-1000
2•luu•20m ago•0 comments

Another German state heads down the open source sovereignty road

https://www.theregister.com/software/2026/07/08/another-german-state-heads-down-the-open-source-s...
1•baranul•22m ago•0 comments

Stride Game Engine

https://www.stride3d.net/
1•notRobot•27m ago•0 comments

I built a $10M run rate AI Startup in 150 days [video]

https://www.youtube.com/watch?v=VMyHC7qUrhI
1•zetamax•33m ago•0 comments

SanDisk has highest unrealized losses

https://old.reddit.com/r/StockMarket/comments/1uqmktf/sandisk_has_highest_unrealized_losses/
1•mgh2•35m ago•0 comments

The potential role of iron fuel in Europe's clean energy transition

https://www.cell.com/chem-circularity/fulltext/S3051-2948(26)00043-5?_returnURL=https%3A%2F%2Flin...
1•Tomte•38m ago•1 comments

Why new €3 customs charge tells a bigger story about global trade

https://www.rte.ie/brainstorm/2026/0709/1582146-3-euro-customs-charge-online-shopping-global-trad...
2•austinallegro•41m ago•0 comments

The 4th Amendment Moves to the Cloud: Chatrie and the Future of Digital Privacy

https://www.wilmerhale.com/en/insights/client-alerts/20260702-the-fourth-amendment-moves-to-the-c...
1•greyface-•43m ago•0 comments

Show HN: PandaPage – host an HTML page with one curl, no signup, auto-expires

https://pandapage.clawshop.sh
1•itskritix•43m ago•0 comments

Local codereview tool for handing structured review to agent

https://github.com/rosenbjerg/local-review
1•mrosenbjerg•48m ago•1 comments

Probelock – lockfile for LLM tool calling

https://github.com/kelkalot/probelock
1•rar101x•48m ago•0 comments

Show HN: Reddit-opportunities – See who is asking for you in Reddit

https://karmybot.com/reddit-opportunities
1•dhante•49m ago•0 comments

New Horizons Pluto probe just woke itself up after 321 days of hibernation

https://www.theregister.com/science/2026/07/09/new-horizons-pluto-probe-just-woke-itself-up-after...
3•jnord•52m ago•0 comments

Show HN: Facebook Videos Downloader

https://chromewebstore.google.com/detail/video-downloader/depedcledfjjdoikcjfbdjlncjfbpjjg
1•qwikhost•54m ago•0 comments

Show HN: Stockoscope – 5-dimension stock analysis where you set the weights

https://stockoscope.com
1•navdhand•54m ago•0 comments

1-in-2 phones sold in Africa exfiltrate whole-device activity to China

https://www.nowsecure.com/blog/2026/07/08/what-the-transsion-telemetry-research-means-for-mobile-...
4•lmbbuchodi•56m ago•0 comments