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!

Chinese parts supplier takes stake in leading Russian drone maker

https://www.ft.com/content/e907c2fa-2d3b-4269-bc6c-b2fee4d9f688
1•petethomas•1m ago•0 comments

Insecure Data Storage in IoT Smart Lock App

https://blog.ptidej.net/understanding-insecure-data-storage-in-iot-smart-lock-companion-app/
1•yann-gael•5m ago•1 comments

Chainguard: 1,800 trusted container images to eliminate your vulnerabilities

https://www.chainguard.dev
1•doener•6m ago•0 comments

Big tech is creating its own media bubble to 'win the narrative battle online'

https://www.theguardian.com/technology/2025/nov/29/big-tech-silicon-valley-ceo-media
2•1659447091•8m ago•0 comments

Dilution vs. Risk taking: Capital gains taxes and entrepreneurs

https://www.nber.org/papers/w34512
6•hhs•10m ago•0 comments

Harmonic's automated theorem prover Aristotle solves open Erdős problem in Lean

https://www.erdosproblems.com/forum/thread/124#post-1892
6•mathfan•10m ago•0 comments

White House launches website to excoriate media for 'biased' stories

https://www.theguardian.com/us-news/2025/nov/29/white-house-media-website-trump
1•1659447091•12m ago•0 comments

The long wait is over, Ganymede has arrived

https://endeavouros.com/news/the-long-wait-is-over-ganymede-has-arrived/
1•doener•12m ago•0 comments

Nlmixr2, an R-based OSS challenger to NONMEM/Monolix/Phoenix, joins R Consortium

https://r-consortium.org/posts/nlmixr2-is-becoming-an-r-consortium-working-group/
1•ionychal•16m ago•0 comments

Scala

https://www.huygens-fokker.org/scala/
2•onestay42•18m ago•0 comments

Leonardo shows Michelangelo, an AI missile shield for Europe

https://ukdefencejournal.org.uk/leonardo-shows-michelangelo-an-ai-missile-shield-for-europe/
1•jshprentz•18m ago•0 comments

Why do most new languages fail? (2012)

https://pointersgonewild.com/2012/06/07/why-do-most-new-languages-fail/
1•azhenley•19m ago•0 comments

Indonesia resists US trade deal 'poison pill'

https://www.ft.com/content/64d27052-a434-4e81-9321-87216eecf99c
3•hhs•19m ago•0 comments

Goodbye, Price Tags. Hello, Dynamic Pricing

https://www.nytimes.com/2025/11/28/opinion/dynamic-pricing-algorithms.html
4•apparent•21m ago•1 comments

Show HN: I Wrote a Field Manual on Self-Hosting(Immich,ZFS,Docker)Free on Kindle

https://www.amazon.com/dp/B0FY3XXPNV
1•devmicrosystems•34m ago•0 comments

Make It Easy for Humans

https://tombedor.dev/make-it-easy-for-humans/
1•jjfoooo4•35m ago•0 comments

Gemini Apps limits and upgrades for Google AI subscribers

https://support.google.com/gemini/answer/16275805?hl=en
1•doener•35m ago•0 comments

Compiler Explorer now supports Racket

https://godbolt.org/z/z3WffbzaY
1•azhenley•36m ago•0 comments

It's mathematically highly likely that there is life elsewhere in the universe

https://www.sciencedirect.com/science/article/pii/S0094576525006599?via%3Dihub
4•Rogach•38m ago•4 comments

Token Visualizer

https://github.com/PeterHdd/token-visualization
1•peterhddcoding•39m ago•1 comments

Zenroom – No-code cryptographic virtual machine

https://zenroom.org/
1•smartmic•48m ago•1 comments

94% zero-shot in a shifting gridworld, no retraining

1•heavymemory•57m ago•0 comments

Mint Is Not TeX

https://mint.ubavic.rs/
3•ubavic•58m ago•2 comments

The Fastest Image Diffing Engine You've Never Heard Of

https://vizzly.dev/blog/honeydiff-vs-odiff-pixelmatch-benchmarks/
3•Robdel12•1h ago•0 comments

Eraser: A Dynamic Data Race Detector for Multithreaded Programs (1997) [pdf]

https://web.stanford.edu/class/archive/cs/cs240/cs240.1054/readings/Tocs97.pdf
1•todsacerdoti•1h ago•0 comments

He Wants a New Start. So He Is Taking the Hardest Driving Test in the World

https://www.nytimes.com/2025/11/24/world/europe/london-black-cab-taxi-driving-test.html
1•bookofjoe•1h ago•1 comments

Get Your Kid a Watch

https://www.theatlantic.com/technology/2025/11/smartwatch-kids-screen-time/684975/
5•fortran77•1h ago•1 comments

Pinball Shopify

https://bfcm.shopify.com/
3•SnaKeZ•1h ago•0 comments

Americans no longer see four-year college degrees as worth the cost

https://www.nbcnews.com/politics/politics-news/poll-dramatic-shift-americans-no-longer-see-four-y...
43•jnord•1h ago•32 comments

Memory-Graph – Knowledge Graph Memory for Claude Code with SQLite/Neo4j/Memgraph

https://github.com/gregorydickson/memory-graph
2•gregorydickson•1h ago•1 comments