frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

The fashion industry that is tech

https://www.baldurbjarnason.com/2025/the-fashion-that-is-tech/
1•random_duck•3m ago•1 comments

Adsly – a marketplace for direct sponsorships and partnerships

https://adsly.io
1•ksl_dev•5m ago•1 comments

Can you legally defend yourself against an attacking police officer? (2017)

https://law.stackexchange.com/questions/16695/can-you-legally-defend-yourself-against-an-attackin...
2•zahlman•5m ago•0 comments

Keifu – A TUI for navigating commit graphs with color and clarity

https://github.com/trasta298/keifu
1•indigodaddy•6m ago•0 comments

Satellogic to Deliver Two Mark V High-Resolution Satellites

https://investors.satellogic.com/news-releases/news-release-details/satellogic-signs-18mm-usd-agr...
1•wslh•8m ago•0 comments

Acetaminophen during pregnancy does not increase risk of autism, ADHD or IDs

https://medicalxpress.com/news/2026-01-acetaminophen-pregnancy-autism-adhd-intellectual.html
1•bikenaga•9m ago•0 comments

The One Trick to 10x Your Database Performance [video]

https://www.youtube.com/watch?v=934J1v_B238
1•p0u4a•17m ago•0 comments

LLMs Are Lagging Indicators

https://hollisrobbinsanecdotal.substack.com/p/llms-are-lagging-indicators
1•HR01•20m ago•0 comments

Show HN: Claude-Config – Dotfiles for Claude Code

https://github.com/sumchattering/claude-config
1•sumeruchat•30m ago•0 comments

Show HN: WPTR – We built an automated audit lab for Headless WordPress

https://www.wptr.net
1•gezginweb•30m ago•0 comments

Show HN: Commander AI – Mac UI for Claude Code

https://commanderai.app/
1•krzyzanowskim•30m ago•0 comments

Structural Stability and Morphogenesis: An Outline of a General Theory of Models [pdf]

https://uberty.org/wp-content/uploads/2015/12/Thom-Structural-Stability-and-Morphogenesis.compres...
1•foster_nyman•31m ago•1 comments

Bank opacity and deposit rates

https://www.nber.org/papers/w34618
2•hhs•34m ago•0 comments

Bazalgette Embakment

https://diamondgeezer.blogspot.com/2026/01/bazalgette-embakment.html
1•zeristor•35m ago•0 comments

The past, present and future of LLM coding

https://www.hermandaniel.com/blog/20260116-my-take-on-LLM-coding/
2•kekqqq•36m ago•1 comments

HTTP Instagram.com Japouni_02

1•chahinee•36m ago•0 comments

Show HN: Super AI Markets – Testing Ground for AI Shopping Agent Security

https://superaimarkets.com/
1•jmchugh9•39m ago•0 comments

Why Americans Can't Buy the Best Electric Car

https://www.nytimes.com/2025/07/08/opinion/byd-china-car-ev.html
5•zzzeek•40m ago•2 comments

How Nature Works: The Science of Self-Organized Criticality [pdf]

https://neurocurso.wordpress.com/wp-content/uploads/2016/05/per-bak_how-nature-works_-the-science...
1•foster_nyman•41m ago•0 comments

Langauge Modeling, Part 3: Vanilla RNNs

https://connorjdavis.substack.com/p/language-modeling-part-3-vanilla
1•cjamsonhn•45m ago•0 comments

Simulario – A physics simulation based game

https://x.com/ZoldenGames
2•LordSeptum•50m ago•0 comments

Why 'basic science' is the foundation of innovation

https://news.berkeley.edu/2026/01/15/from-quantum-theory-to-the-modern-laser-why-basic-science-is...
1•hhs•50m ago•0 comments

Engine-Bench: Benchmarking Coding Agents on TCG Game Engine Tasks

https://github.com/JoshuaPurtell/engine-bench
1•JoshPurtell•52m ago•0 comments

FLUX.2 [Klein]: Towards Interactive Visual Intelligence

https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence
2•GaggiX•52m ago•0 comments

Caliper: Right-size your CI runners

https://www.attune.inc/blog/caliper
1•greenRust•52m ago•0 comments

Babyfiend.net

https://babyfiend.net/
1•martialg•55m ago•0 comments

Why So Many Journalists Fear to Look Within

https://matthewgreenglobal.substack.com/p/transforming-global-media-james-scurry
2•rendx•56m ago•0 comments

Iran restores sending and receiving SMS

https://www.iranintl.com/en/202601163057
2•ukblewis•57m ago•1 comments

Mysterious 'iron bar' discovery in space may reveal Earth's future

https://www.bbc.com/news/articles/ckgxlvv0wdko
3•mooreds•59m ago•0 comments

Ask HN: OfficeHours and AlphaSense Spam

1•holografix•59m ago•0 comments