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!

Towards GPU Type Inference

https://winwang.blog/posts/dphm-1
1•winwang•1m ago•0 comments

Tesla moves to electrify trucking after a decade of work and delays

https://techcrunch.com/2026/09/25/tesla-finally-moves-to-electrify-trucking-after-a-decade-of-wor...
1•m463•1m ago•0 comments

Separating Protocol from Application Logic

https://builder.aws.com
1•mlhpdx•1m ago•0 comments

Tesla Semi enters volume production

https://electrek.co/2026/09/25/tesla-semi-volume-production-launch-nevada-factory/
1•m463•3m ago•0 comments

Why I like JavaScript as a compilation target

https://gilmi.me/blog/post/2023/07/08/js-as-a-target
1•thunderbong•4m ago•0 comments

AI agent hacks government website for first time: why this breach matters

https://www.nature.com/articles/d41586-026-03024-z
1•digital55•8m ago•0 comments

CliDoc – JSDoc/TSDoc but for command line tools

https://clidoc.dev/
1•bhouston•10m ago•0 comments

Beacon: A prime-gap world record (merit 42.5192) on four RTX 5090 GPUs

https://zenodo.org/records/22963326
1•mvojvoda•12m ago•0 comments

Jev for Input Validation

https://unstack.io/jev-for-input-validation
2•ScottWRobinson•12m ago•0 comments

FiOTP an offline TOTP and HOTP authenticator for macOS

https://github.com/mehmetfiskindal/fiotp-multiplatform
1•arbayi•13m ago•0 comments

Private equity-backed Florida railway company Brightline files for bankruptcy

https://www.ft.com/content/ad2f9563-7853-4a6a-b46c-fe6afeccbbc0
1•throwaway2037•14m ago•1 comments

Interactive Map of Songs Mentioning Places in Their Titles

https://www.chrisdallariva.com/songs-about-places
1•noisymortimer•16m ago•0 comments

Peter Thiel slams pope's AI encyclical as gift to Chinese Communist Party

https://www.politico.com/news/2026/09/24/peter-thiel-slams-popes-ai-encyclical-as-gift-to-chinese...
3•1vuio0pswjnm7•16m ago•1 comments

US weekly jobless claims decrease as labor market regains footing

https://www.reuters.com/world/us/us-weekly-jobless-claims-decrease-labor-market-regains-footing-2...
1•frank_clover•18m ago•1 comments

VeriLoop E2 Release: 27B Post-Trained Model and Full GGUF BF16 to IQ1_M

https://discuss.huggingface.co/t/veriloop-e2-release-27b-post-trained-model-and-full-gguf-precisi...
1•simonpure•19m ago•0 comments

Is this true? "50% of recent YC startups don't have an AWS account"

https://twitter.com/ivanburazin/status/2066629066069831850
1•DataDisciple•22m ago•1 comments

Oxide – a native terminal for macOS and Linux, built on GPUI

https://github.com/oxide-terminal/oxide
1•bobbycoleman-de•22m ago•0 comments

Flip fluid simulation on flip dots

https://mitxela.com/projects/flipflip
1•fanf2•23m ago•0 comments

Forty Computers

https://blog.log101.dev/yazi/forty-computers
1•adityaathalye•24m ago•0 comments

How many Flock devices in the United States? 300k

https://theintercept.com/2026/09/24/how-many-flock-devices-in-united-states-300000/
1•discostrings•24m ago•0 comments

I built and deployed a 21-app B2B storefront from scratch in 4 hours

https://vercel.com
1•JillMillington•24m ago•0 comments

Open Source and Making Money in 2026

https://debamitro.github.io/blog/open-source-and-making-money-in-2026/
2•adityaathalye•26m ago•0 comments

Nearly 2,400-year-old school where Aristotle taught Alexander the Great

https://www.livescience.com/archaeology/nearly-2-400-year-old-school-where-aristotle-taught-alexa...
2•tzury•27m ago•0 comments

September Update: Meet the Latchkey CLI

https://latchkey.dev/blog/latchkey-cli
1•hevaka•29m ago•0 comments

I gave my AI agent one harmless permission. It became a backdoor for everyone

https://medium.com/@roeehersh/i-gave-my-ai-agent-one-harmless-permission-it-became-a-backdoor-for...
1•roeehersh•31m ago•0 comments

Jev in Weather Forecasting

https://ninetysky.com/research
1•ayazdi90•32m ago•3 comments

What we should avoid on the AI path.

https://carlosr301101.is-a.dev/blog/what-we-should-avoid-on-the-ai-path/
1•int-64•32m ago•0 comments

Handmade in the Age of AI

https://code2net.com/handmade
2•xyz_ielh•35m ago•1 comments

Random-bench / Benchmarks are Astrology for LLMs

https://www.isaac-fisher.com/Blog.html#random-bench
1•isaac1000000•35m ago•0 comments

An OpenAI Engineer and His Friends Debate the Future

https://www.newyorker.com/culture/the-new-yorker-documentary/an-openai-engineer-and-his-friends-d...
1•arjunbanker•35m ago•0 comments