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!

Does AI pose an existential threat to mathematicians?

https://kityates.substack.com/p/does-ai-pose-an-existential-threat
1•headalgorithm•1m ago•0 comments

Was It a Billion Dollar Mistake?

https://www.gingerbill.org/article/2026/01/02/was-it-really-a-billion-dollar-mistake/
1•gingerBill•3m ago•0 comments

Hacking Welfare Doubles Somalia's GDP

https://jessicar.substack.com/p/fraudulent-businesses-paid-the-equivalent
1•mensetmanusman•4m ago•0 comments

Show HN: I mapped System Design concepts to AI Prompts to stop bad code

https://github.com/nimin1/system-design-vibecoding
1•systemdesignai•4m ago•1 comments

Questions to ask yourself every year (2016)

https://stephango.com/40-questions
1•ayoisaiah•5m ago•0 comments

The Chicken Game and the Evolution of the DRAM Industry from 2006 to 2014 [pdf]

https://s-space.snu.ac.kr/bitstream/10371/95351/1/01%20Jeho%20Lee.pdf
2•walterbell•5m ago•0 comments

A "Fresh" New Terminal Text Editor

https://www.youtube.com/watch?v=dspEVA8eoUg
1•bane•6m ago•0 comments

Charlie Angus, Lafayette, Joni Askola, Outsiders Who See Collapse Coming First

https://www.americanmuckrakers.com/p/charlie-angus-lafayette-joni-askola
1•americanmuck•6m ago•0 comments

From many to one – parallel reductions on the GPU

https://double-dissent.fika.bar/from-many-to-one-01KDZ2KP81YSFJ4XJ1241QQK80
2•txus•7m ago•0 comments

How to add two vectors, fast

https://double-dissent.fika.bar/how-to-add-two-vectors-fast-01KDFNX4WQA7C70TZ19K8P1JAV
1•txus•7m ago•0 comments

A Study Is Retracted, Renewing Concerns About the Weedkiller Roundup

https://www.nytimes.com/2026/01/02/climate/glyphosate-roundup-retracted-study.html
2•instagib•10m ago•0 comments

Documented source code for The Sentinel on the BBC Micro

https://github.com/markmoxon/the-sentinel-source-code-bbc-micro
2•z303•10m ago•0 comments

The Click Communicator combines Blackberry function with modern smartphone form

https://www.androidpolice.com/clicks-launches-blackberry-like-communicator-phone/
2•cuu508•14m ago•0 comments

Show HN: Get company brand data API

https://www.brand.dev/
2•ICodeSometimes•17m ago•1 comments

The Handyman Principle: Why Your AI Forgets Everything

https://vexjoy.com/posts/the-handyman-principle-why-your-ai-forgets-everything/
3•AndyNemmity•22m ago•1 comments

Google AI Overviews put people at risk of harm with misleading health advice

https://www.theguardian.com/uk-news
3•chrisjj•25m ago•2 comments

Liars and Outliers: Enabling the Trust That Society Needs to Thrive, 2nd Edition

https://www.wiley.com/en-us/Liars+and+Outliers%3A+Enabling+the+Trust+that+Society+Needs+to+Thrive...
2•rendx•25m ago•0 comments

Why I'm skipping Dry January

https://www.statnews.com/2026/01/01/dry-january-moderate-drinking-research/
4•thm•27m ago•1 comments

How much the richest people made in 2025

https://qz.com/wealthiest-richest-trillions-billionaires-2025-musk-ellison
2•bgwalter•28m ago•0 comments

Tell HN: Check if the site is down. Also monitor your site

https://updown.fly.dev/
3•ejncman•29m ago•0 comments

Fighting Fire with Fire: Scalable Oral Exams

https://www.behind-the-enemy-lines.com/2025/12/fighting-fire-with-fire-scalable-oral.html
3•sethbannon•31m ago•0 comments

Nice to Meet You: Synthesizing Practical MLIR Abstract Transformers [pdf]

https://users.cs.utah.edu/~regehr/papers/popl26.pdf
2•PaulHoule•31m ago•0 comments

Accounting for Computer Scientists (2011)

https://martin.kleppmann.com/2011/03/07/accounting-for-computer-scientists.html
4•tosh•34m ago•0 comments

Low-Price 12.9" MacBook with A18 Pro Chip Reportedly Launching Early This Year

https://www.macrumors.com/2026/01/02/12-9-inch-macbook-spring-2026-rumor/
4•tosh•35m ago•0 comments

Bitcoin Security

https://philippdubach.com/posts/bitcoin-security/
3•7777777phil•35m ago•1 comments

Slow Dopa

https://www.profgalloway.com/slow-dopa/
3•simonebrunozzi•36m ago•0 comments

MTV's Music-Only Channels to Go Off the Air

https://www.rollingstone.com/music/music-news/mtv-music-only-channels-off-air-1235492854/
2•thunderbong•38m ago•0 comments

Show HN: Built Needfind to find my first customers – now dogfooding it on itself

https://needfind.app
1•ohMoshko•38m ago•0 comments

Show HN: BmuS – Backup tool for Linux, Pi, NAS with dedup and encryption

https://github.com/back-me-up-scotty/bmus
2•bmus•38m ago•0 comments

The overfitted brain: Dreams evolved to assist generalization (2021)

https://www.sciencedirect.com/science/article/pii/S2666389921000647
3•smartmic•38m ago•0 comments