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!

Eliminate GPU Waste by Cutting the Retry Tax

https://rahmipruitt.me/content/gpu-retry-tax/
1•rjpruitt16•1m ago•0 comments

There continue to be reasons for software to be slow

https://typesanitizer.com/blog/performance-issues.html
1•birdculture•1m ago•0 comments

Show HN: MacAIApps – a directory of AI-powered Mac apps

https://www.macaiapps.com/
1•sujee•4m ago•0 comments

ChatGPT

https://openai.com/index/chatgpt/
1•websiteapi•5m ago•0 comments

Trix: Embeddable stack-based scripting VM with cooperative concurrency

https://github.com/mcguidarelli/trix
1•oxryly1•6m ago•1 comments

iPhone 18 Pro Could Get a Signature New Color – Here's What the Latest Leaks Sug

https://moztako.me/iphone-18-pro-colors-dark-cherry/
1•cecyev•12m ago•0 comments

Will farm animals always suffer?

https://worksinprogress.co/issue/will-farm-animals-always-suffer/
1•mooreds•12m ago•0 comments

Ben Sasse on Faith, Family, and Facing Death [audio]

https://www.econtalk.org/ben-sasse-on-faith-family-and-facing-death/
1•mooreds•13m ago•0 comments

Tiny drones are powered by sound

https://actu.epfl.ch/news/these-tiny-drones-are-powered-by-sound-2/
1•simonebrunozzi•17m ago•0 comments

Jane Street took $15B hit in July tied to Situational Awareness

https://www.reuters.com/business/finance/jane-street-took-15-billion-hit-july-tied-situational-aw...
1•paulpauper•18m ago•0 comments

A mother has spent years caring for her special-needs child

https://www.washingtonpost.com/health/2026/08/16/she-spent-years-caring-her-child-with-disabiliti...
1•paulpauper•19m ago•0 comments

Worse Is Better Considered Harmful

https://cs.stanford.edu/people/eroberts/cs201/projects/2010-11/WorseIsBetter/index.php/Main_Page....
4•so-cal-schemer•19m ago•1 comments

Stock Market Bargains Are Hiding in This Overlooked Place

https://www.wsj.com/finance/stocks/stock-market-bargains-are-hiding-in-this-overlooked-place-6239...
2•paulpauper•20m ago•0 comments

ASCII City Update: Interiors, Elevation and Skyscrapers [video]

https://www.youtube.com/watch?v=UCKEDWowc0o
1•galleywest200•22m ago•1 comments

Companies that buy and sell your data are not following CA’s strict privacy laws

https://hai.stanford.edu/news/companies-that-buy-and-sell-your-data-are-not-following-californias...
1•hhs•23m ago•0 comments

Free Brain-Computer Interface in Udemy

https://www.reddit.com/r/PiEEG_club/comments/1vvq6j7/5_free_eegbci_courses_join_the_new_1020_acad...
1•Christiangmer•25m ago•0 comments

Digital amnesia: Taking screenshots makes you more likely to forget information

https://www.binghamton.edu/news/story/6397/digital-amnesia-taking-screenshots-makes-you-more-like...
1•hhs•28m ago•1 comments

Quiet on set. How AI transformed China's microdrama scene

https://www.cnn.com/2026/08/22/style/short-drama-ai-china-intl-hnk
1•T-A•30m ago•0 comments

Stelm – A BYOC canvas for AWS infra

https://stelm.dev/
1•tredex•30m ago•0 comments

Europe Is Building an Impossible Fusion Reactor [Ben Miles] [video]

https://www.youtube.com/watch?v=bPUAKW1Dyek
2•mdp2021•31m ago•0 comments

Netscape's Rise and Fall: A Browser Wars History

https://medium.com/@gp2030/netscapes-rise-and-fall-a-browser-wars-history-8546e3b52092
1•Bluestein•33m ago•1 comments

How much is crawling your content worth to an AI bot?

https://insights.som.yale.edu/insights/how-much-is-crawling-your-content-worth-to-an-ai-bot
1•hhs•33m ago•0 comments

MiniMax M3 Medium hits 73.17% F1 on DeepSearchQA, near GPT-5 High

https://huggingface.co/datasets/youdotcom/minimax-m3-deepsearchqa-skill-eval
1•EdwardIrby•34m ago•0 comments

People vs. the AI Overlords

https://anarc.at/blog/2026-08-18-people-vs-ai-overlords/
1•edward•36m ago•0 comments

From Mega-Machines to Mega-Algorithms (2015)

https://thenewinquiry.com/from-mega-machines-to-mega-algorithms/
1•measurablefunc•37m ago•0 comments

Mysterious Astroturf Group Popped Up to Defend the Paramount Merger

https://theintercept.com/2026/08/21/paramount-merger-warner-discovery-david-ellison-antitrust/
3•mukmuk•39m ago•0 comments

The Biblical myth of the CREATION of EVE, the first woman

https://medium.com/freedomofthought/the-biblical-myth-of-the-creation-of-eve-the-first-woman-0f2d...
1•raynchad•39m ago•0 comments

Follow live the open training of a 535B (23B activated) LLM

https://twitter.com/percyliang/status/2090918065634684997
1•ggcr•42m ago•1 comments

436× faster exact state updates with a disk-backed incremental Merkle tree

https://github.com/yangofzeal/Hkd_merkle
1•msyang2004_82•43m ago•0 comments

Show HN: Structo – Claude Code for short form writing

https://structo.redbeardlab.com/
2•siscia•43m ago•0 comments