frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

A Brief History of Lab Notebooks

https://www.asimov.press/p/lab-notebooks
1•Luc•4m ago•0 comments

Expanding the human proteome with microproteins and peptideins

https://research.ucc.ie/en/publications/expanding-the-human-proteome-with-microproteins-and-pepti...
1•janandonly•4m ago•0 comments

$100 to upgrade Fresh IDE for ePub TUI reading

1•jph•6m ago•0 comments

Bitcoin Depot files for bankruptcy, takes 9000 Bitcoin ATMs offline

https://www.msn.com/en-us/money/news/bitcoin-depot-files-for-bankruptcy-takes-9000-bitcoin-atms-o...
1•janandonly•6m ago•0 comments

Productivity Paradox

https://en.wikipedia.org/wiki/Productivity_paradox
1•gyomu•13m ago•0 comments

Supercharge Claude Code, Cursor, Codex with Semantic Code Intelligence

https://github.com/colbymchenry/codegraph
1•beyti•14m ago•0 comments

To A.I. Executives, We're All Just 'Meat Computers'

https://www.nytimes.com/2026/05/24/business/meat-computer-brain-artificial-intelligence.html
1•sbulaev•15m ago•0 comments

The invisible fabric of AI: chips aren't a US-China war, but a 30-country chain

https://zoopa.es/en/innovation-technology/invisible-fabric-ai-chips-geopolitics/
1•carlosortet•16m ago•0 comments

Show HN: Fleet – Python supervisor for running coding agents in parallel

2•sermakarevich•18m ago•0 comments

Responsible Work with AI

https://www.satisfice.com/responsible
1•satisfice•19m ago•0 comments

I bypassed AWS API Gateway auth with a trailing slash. Got $12K bounty

https://theguptalog.blogspot.com/2026/04/i-bypassed-aws-api-gateway-auth-with.html
2•GeorgeWoff25•21m ago•1 comments

The AI Existential Crisis: Western AI Agents Will Win Commerce

https://medium.com/@vektormemory/the-ai-existential-crisis-western-ai-agents-will-win-finance-chi...
1•vektormemory•21m ago•0 comments

Which age-gates should be skill-gates and vice-versa?

https://shkspr.mobi/blog/2026/05/which-age-gates-should-be-skill-gates-and-vice-versa/
2•blenderob•27m ago•0 comments

Orchestration problems hurt legal AI

https://lexifina.com/blog/legal-ontologies-for-ai
1•alansaber•28m ago•0 comments

Lump of Labour Fallacy

https://www.investopedia.com/terms/l/lump-of-labour-fallacy.asp
2•nothrowaways•31m ago•0 comments

SpaceX's IPO Is a Bet Gravity Doesn't Apply to Elon Musk

https://www.wsj.com/tech/spacexs-ipo-is-a-bet-gravity-doesnt-apply-to-elon-musk-f798e814
2•1vuio0pswjnm7•31m ago•0 comments

New Tools for Taking on the Great Outdoors Properly

https://www.wired.com/story/14-new-tools-for-taking-on-the-great-outdoors-properly/
1•joozio•36m ago•0 comments

AI Stock Is the Ultimate Set-It-and-Forget-It Buy for Long-Term Investors

https://www.fool.com/investing/2026/05/19/this-ai-stock-is-the-ultimate-set-it-and-forget-it/
1•01-_-•36m ago•0 comments

Build Revit and Tekla plugins without Visual Studio – one PowerShell script

https://github.com/anis-ammar/bim-plugin-builder
1•anisarchi•38m ago•0 comments

Résumé vs. Portfolio: Both Are Rigged Against Most Candidates

https://comuniq.xyz/post?t=1141
1•01-_-•39m ago•0 comments

South Korea's deputy PM says AI wealth must benefit the public

https://www.cnbc.com/2026/05/23/ai-wealth-must-benefit-the-public-south-koreas-deputy-pm-says.html
1•geox•39m ago•0 comments

'Lede' vs. 'Lead' (2011)

https://howardowens.com/lede-vs-lead/
1•downbad_•39m ago•0 comments

Body wasn't built to last: a lesson from human mortality rates (2009)

https://gravityandlevity.wordpress.com/2009/07/08/your-body-wasnt-built-to-last-a-lesson-from-hum...
1•downbad_•40m ago•0 comments

The Pkg.go.dev API

https://go.dev/blog/pkgsite-api
1•birdculture•40m ago•0 comments

Open Book Publishers

https://www.openbookpublishers.com/
1•jruohonen•43m ago•0 comments

Quiet in the Zoo

https://danverbraganza.com/writings/quiet-in-the-zoo
1•nvader•44m ago•0 comments

Why Defining Teams Is So Hard – By John Cutler

https://cutlefish.substack.com/p/tbm-423-why-defining-teams-is-so
1•kiyanwang•46m ago•0 comments

The Worlds Left to Conquer

https://ludic.mataroa.blog/blog/the-worlds-left-to-conquer/
8•pards•51m ago•3 comments

Signing Is for the Bad Days

https://nesbitt.io/2026/05/24/signing-is-for-the-bad-days.html
1•jruohonen•52m ago•0 comments

No captain, my captain – a crewless warship

https://www.theregister.com/offbeat/2026/05/24/no-captain-my-captain-navantia-floats-crewless-war...
3•asdefghyk•57m ago•1 comments