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!

We don't use AI in any of our design or production processes

https://mass-driver.com/article/from-human-hands
2•tony_cannistra•27s ago•0 comments

Anthropic, Blackstone bet the next trillion-dollar AI business is implementation

https://techcrunch.com/2026/07/15/anthropic-blackstone-bet-the-next-trillion-dollar-ai-business-i...
2•atomon•29s ago•0 comments

World Base Map (Natural Earth 6.0)

https://source.coop/opengeos/natural-earth
2•marklit•49s ago•0 comments

The AI Investment Race [pdf]

https://www.bis.org/publ/work1367.pdf
1•johnbarron•1m ago•0 comments

Dopamine TV: How China's short dramas are redefining entertainment

https://www.thedial.world/articles/news/chinese-micro-dramas
1•herbertl•3m ago•0 comments

When Bugs Feel Like Sabotage

https://joeldare.com/when-bugs-feel-like-sabotage
2•codazoda•6m ago•1 comments

OTPme Testers Wanted

https://github.com/the2nd/otpme
1•otpme•6m ago•0 comments

Why AI isn't going to become conscious [video]

https://www.ted.com/talks/anil_seth_why_ai_isn_t_going_to_become_conscious
1•wertyk•9m ago•0 comments

SpaceX sell-off wipes $1T from Elon Musk's rocket group

https://www.ft.com/content/94959f40-1874-4ece-b629-b18f43aa3ede
4•JumpCrisscross•11m ago•0 comments

Odin 2 Portal Exploded

https://github.com/virtudude/armada/issues/94
2•dcu•12m ago•0 comments

The Legend of the Gibbet

https://www.historytoday.com/archive/history-matters/legend-gibbet
1•Petiver•13m ago•0 comments

The End of Creativity

https://hugodaniel.com/posts/the-end-of-creativity/
2•hugodan•17m ago•1 comments

Mother Earth Mother Board (1996)

https://www.wired.com/1996/12/ffglass/
1•theanonymousone•18m ago•0 comments

Tokenspeed

https://mikeveerman.github.io/tokenspeed/?rate=30&mode=code
1•handfuloflight•19m ago•0 comments

Must actively fund open source AI [pdf]

https://www.siegelendowment.org/wp-content/uploads/2026/07/fortune-david-siegel-open-source-ai.pdf
2•bilsbie•20m ago•0 comments

California Steps Back from Dangerous Expansion of Its Age-Gating Law

https://www.eff.org/deeplinks/2026/07/california-steps-back-dangerous-expansion-its-age-gating-law
4•iamnothere•20m ago•1 comments

Building a Robust Ingestion System for Any File of Any Size

https://www.mixedbread.com/blog/infinite-file-sizes
1•program_404•21m ago•0 comments

DreamWorks and Canonical Develop Snap Installer for MoonRay

https://www.aswf.io/blog/dreamworks-and-canonical-develop-snap-installer-for-moonray/
2•andsoitis•22m ago•0 comments

Inkling Model Card

https://thinkingmachines.ai/model-card/inkling/
3•Topfi•25m ago•0 comments

Ask HN: Who build production apps with out seeing code?

1•amukbils•28m ago•1 comments

DoD says soldiers over age 30 to be screened for testosterone deficiency

https://www.theguardian.com/us-news/2026/jul/15/us-military-testosterone-screening-hegseth
2•Jimmc414•29m ago•2 comments

Show HN: Autoportrait Playground – painting timelapses in the browser

https://philipweiss.net/autoportrait/
1•philipfweiss•29m ago•1 comments

The Expert as Tourist

https://lareviewofbooks.org/article/this-land-is-your-land-beverly-gage-history/
1•samclemens•29m ago•0 comments

AI Data Centers and the Concentration of Wealth

https://www.schneier.com/blog/archives/2026/07/ai-data-centers-and-the-concentration-of-wealth.html
3•BrunoBernardino•30m ago•0 comments

US Interconnection Queues by Region, State, and County

https://emp.lbl.gov/maps-projects-region-state-and-county
2•toomuchtodo•30m ago•1 comments

Show HN: Impossible to Pass Level 42

https://itpl42.com/
1•braingymdev•31m ago•0 comments

I Built an AI Slop Machine

https://cmart.blog/slop-machine/
1•chrismartin•32m ago•0 comments

Stacks

https://morphing.cloud/hypercard/
1•frizlab•33m ago•0 comments

Apple just closed a popular workaround for buying an unlocked iPhone

https://9to5mac.com/2026/07/15/unlocked-iphone-carrier-financing/
2•logickkk1•33m ago•0 comments

Show HN: GitHub Contribution Graph Painter

https://contributist.stupidity.works/en
1•fabianse•33m ago•0 comments