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!

Show HN: Less Prompts, More Guardrails

https://yasyf.com/writing/less-prompts-more-guardrails/
1•yasyfm•11s ago•0 comments

Coding Machines

https://www.teamten.com/lawrence/writings/coding-machines/
1•xk3•57s ago•0 comments

Birdle Explorer

https://start.birdle.world/
1•totetsu•1m ago•1 comments

I Investigated Coinbase a Year Ago For Forbes. The Bigger Story Now Is Its Power

https://thesignalmemo.substack.com/p/coinbase-wants-the-power-of-a-bank
1•sindhya1•3m ago•0 comments

EA Safety

https://contraptions.venkateshrao.com/p/ea-safety
2•emersonmacro•5m ago•0 comments

A Builder's Simple Perspective on the Future of the Job Market

https://wenbo.site/blog/a-builder-s-simple-perspective-on-how-ai-will-shape-the-job-market
1•tracyhenry•5m ago•0 comments

Lint-HTTP 0.1.0 – Easy to use, complete HTTP traffic linter

https://crates.io/crates/lint-http/0.1.0
1•gaigalas•13m ago•0 comments

While the human's away, do the agents slip into foul play?

https://dev.yuv.run/writing/while-i-sleep/
1•alkisyuv•14m ago•0 comments

Winning the Visa Lottery

https://www.aeaweb.org/research/immigration-restrictions-firms-workers
1•neehao•17m ago•0 comments

The Rise of Niche Consumption

https://www.aeaweb.org/articles?id=10.1257/mac.20210263
1•neehao•18m ago•0 comments

Presley Gerber, Son of Cindy Crawford and Rande Gerber, Dies at 27

https://www.hollywoodreporter.com/lifestyle/lifestyle-news/presley-gerber-dead-cindy-crawford-ran...
1•andsoitis•20m ago•0 comments

Talk to Hector Salamanca, powered by Jev and a bell

https://jev-hector.vercel.app/
2•xjconlyme•25m ago•0 comments

Rally English

https://en.wikipedia.org/wiki/Rally_English
1•red369•28m ago•0 comments

The Trouble with 'Ntile()'

https://blog.djnavarro.net/posts/2026-09-20_the-trouble-with-ntile/
1•luu•31m ago•0 comments

The Genesis of Attribute Grammars [pdf]

https://www.cs.miami.edu/home/odelia/teaching/csc419_spring17/syllabus/Knuth_AttributeHistory.pdf
1•luu•33m ago•0 comments

New wild cat species is identified for first time in 100 years

https://www.nbcnews.com/science/environment/new-wild-cat-species-identified-rcna598113
2•gmays•40m ago•0 comments

A Silicon Valley radical: Trump's AI whisperer pushing for limited regulation

https://www.theguardian.com/us-news/2026/sep/20/david-sacks-trump-ai-czar
2•kuerbel•41m ago•0 comments

Vibemaxxer

https://vibemaxxer.cro.sh/
1•namjh•43m ago•0 comments

China is not ready for a post-American world

https://www.economist.com/international/2026/09/15/china-is-not-ready-for-a-post-american-world
2•andsoitis•45m ago•0 comments

NYTimes Journalist Regrets Long Ordeal Sending Daughter to Worse NY Schools

https://www.nytimes.com/2026/09/20/magazine/ny-public-schools-black-students-segregation.html
1•doctorpangloss•46m ago•0 comments

Skills to Make the Perfect Website

https://github.com/NoamanKhalil/WebSkills
2•Noamank•49m ago•0 comments

Chemical and Biological Weapons Explained – Brett Edwards (2024) [video]

https://www.youtube.com/watch?v=x3J2w7-9XC8
1•verdverm•49m ago•1 comments

You Are the Executive Now

https://sundaylettersfromsam.substack.com/p/youre-the-executive-now
1•andsoitis•51m ago•0 comments

NASA's Moon Orbiter Spots New, 'Once-in-Century' Moon Crater

https://science.nasa.gov/solar-system/moon/nasas-moon-orbiter-spots-new-once-in-century-moon-crater/
1•gmays•1h ago•0 comments

Show HN: GrowSpot – checks if a plant can live in an exact spot, not just a room

https://growspotapp.com/spot-checker/
1•growspotapp•1h ago•0 comments

Show HN: Hibi – An open-source obsidian alternative

https://github.com/schmayterling/hibi
2•ryanamay•1h ago•0 comments

Linus demands real users before hazard pointers land

https://freenode.net/article/linus-demands-real-users-before-hazard-pointers-land
4•KinetiNode•1h ago•0 comments

How we're (actually) all going to die

https://siliconpalace.substack.com/p/heres-how-were-actually-all-going
4•shigalyov•1h ago•3 comments

Want to Entice New Residents? Offer Cash, for a Start

https://www.nytimes.com/2026/09/12/business/economy/rural-america-moving-incentives.html
1•lxm•1h ago•0 comments

Relativistic Raytracing

https://publish.obsidian.md/h1m3/Articles/Relativistic+raytracing
1•vismit2000•1h ago•0 comments