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!

Is This Video a Psyop? With Charlie Warzel

https://www.youtube.com/watch?v=z7lQdkiQfo4
1•handfuloflight•38s ago•0 comments

Show HN: Cardel, a site builder for authors and other solo professionals

https://www.cardel.io
1•Orin-zzBots•1m ago•0 comments

Advanced Singulation Technology – Moving Different Objects with the Celluveyor [video]

https://www.youtube.com/watch?v=MxHdzHDbJz0
1•Brosper•2m ago•0 comments

Building Commerce Agents with Claude

https://claude.com/blog/claude-for-commerce-agents
1•mirzap•3m ago•0 comments

Content Creator

1•pjohnso•3m ago•0 comments

The Post-AI Internet Doesn't Look Great

https://www.jordangoodman.xyz/the-post-ai-internet-doesnt-look-great/
2•speckx•4m ago•0 comments

The OCW Update [video]

https://www.youtube.com/watch?v=WCMFdrTGAEY
1•Brosper•4m ago•0 comments

Sam Altman: Water use for 1 almond same as 38,000 ChatGPT queries [video]

https://www.youtube.com/watch?v=VeizK1M7V7E
2•delichon•4m ago•0 comments

The Nvidia-sized hole in US GDP statistics

https://epoch.ai/publications/the-nvidia-sized-hole-in-us-gdp-statistics
1•gmays•4m ago•0 comments

The Future Is Not Tech-Forward

https://www.thetechbubble.info/p/the-future-is-not-tech-forward
1•cdrnsf•6m ago•0 comments

Unsubscribe links without a login: Django signing

https://belderbos.dev/blog/unsubscribe-without-login-django-signing/
2•jgalt212•8m ago•0 comments

Limiting Overshoot – Navigating exceedance of 1.5°C and pathways towards return

https://www.unep.org/resources/limiting-overshoot-navigating-exceedance
1•matteoraso•8m ago•0 comments

Muse Spark 1.3

https://developer.meta.com/ai/models/muse-spark/
21•bvaldivielso•10m ago•3 comments

Privacy Policies Are Boring

https://nonconfirmed.com/privacy-policy
2•colenikol2•12m ago•0 comments

The Email Verification API

https://resend.com/blog/email-verification-api
4•mirzap•12m ago•0 comments

Study of Brain Proteins Spurs Optimism for Autism Treatments

https://www.nytimes.com/2026/08/27/science/autism-treatments.html
1•bookofjoe•15m ago•1 comments

Muse Spark 1.3

https://www.bloomberg.com/news/articles/2026-09-02/meta-releases-more-powerful-ai-model-edging-cl...
4•guybedo•15m ago•0 comments

New type of dice guarantees no tie when deciding who goes first

https://www.cbc.ca/radio/asithappens/dice-mystery-board-game-9.7328614
3•rdmuser•16m ago•0 comments

You may have heard of nohello.net, but have you heard of yesmuppets.net?

https://yesmuppets.net
3•haydenbarnes•19m ago•0 comments

Introducing Muse Spark 1.3

https://research.meta.ai/blog/introducing-muse-spark-1-3
13•scrlk•19m ago•0 comments

Scientists Observe Einstein's Gravity in the Quantum World

https://thequantuminsider.com/2026/09/02/scientists-observe-einsteins-gravity-in-the-quantum-world/
2•geox•21m ago•0 comments

SF's Tech Right Debates the Ideal Dictator

https://bayareacurrent.com/sfs-tech-caesar/
3•counteroptimize•22m ago•0 comments

Show HN: Sol, a fast, powerful music player for macOS, with Subsonic support

https://sol.fulltimefeline.com/
2•fulltimefeline•22m ago•0 comments

Clankers and Data Races

https://www.tbray.org/ongoing/When/202x/2026/09/01/Un-Racing
2•worik•24m ago•0 comments

Show HN: StealthOS, an iOS privacy sandbox with local AI and Tor

https://www.stealthos.app/
2•steffi_oliver•24m ago•0 comments

Explainable deep learning improves human mental models of self-driving cars

https://www.nature.com/articles/s41586-026-10950-5
1•aanet•25m ago•1 comments

Framamèmes

https://framamemes.org/en/
1•rdmuser•25m ago•0 comments

It's getting harder to get hired on HN

https://112358132134.xyz/blog/harder-to-get-hired-on-hn/
2•sdsd•26m ago•2 comments

Persistent Continuity MCP

https://api.willow-intelligence.com/mcp
2•haleykurtz•27m ago•1 comments

Uber to cut 3,300 corporate jobs in management overhaul

https://www.theguardian.com/technology/2026/sep/02/uber-to-cut-3300-corporate-jobs-in-management-...
3•tjwds•27m ago•0 comments