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!

Ask HN: Has the vegan movement been effective?

1•xg15•46s ago•0 comments

Unpatched Ollama Vulnerabilities: Phishing Overlays and Data Exfiltration

https://www.promptarmor.com/resources/unpatched-ollama-vulnerabilities-phishing-overlays-and-data...
1•gathorway•1m ago•0 comments

How the Largest IPO in history became your problem

https://medium.com/@firstfromreverse/how-the-largest-ipo-in-history-quietly-became-your-problem-c...
1•WishingWisp•5m ago•0 comments

Bringing a dead Spring Boot project back to life with Claude

https://tomaytotomato.com/spring-data-solr-lazarus/
1•tomaytotomato•9m ago•0 comments

Google Buying Computing from SpaceX in $920M-a-Month Deal

https://www.bloomberg.com/news/articles/2026-06-05/google-buying-computing-from-spacex-in-920-mil...
4•berlianta•12m ago•0 comments

GitHub Accidentally Deletes Slack and Teams Subscriptions

https://www.githubstatus.com/incidents/2nmfnbknhlnv
2•SparkyDogs•12m ago•0 comments

An imperative command-line-interface for AI workload orchestration

https://pypi.org/project/terradev-cli/
1•Facingsouth•12m ago•1 comments

I need financial help, pls share

5•alonsovm44•14m ago•1 comments

Autonomous Agentic Design for Photonics

https://arxiv.org/abs/2606.00915
1•twhughes•15m ago•1 comments

Tokugawa Japan kept 260 warlords from war for 250 years

https://jivx.com/edo
2•momentmaker•15m ago•0 comments

Show HN: Bash Runtime for AWS Lambda

https://github.com/interchecks/bash-lambda-runtime
1•tw1gz•15m ago•0 comments

ICEs Plan to Let Cops Around the Country Scan Faces to Verify Immigration Status

https://www.404media.co/ices-plan-to-let-cops-around-the-country-scan-faces-to-verify-immigration...
3•emschwartz•16m ago•0 comments

iPhone Deployment of End-to-End Perception via Auto-Labeled Synthetic Data

https://arxiv.org/abs/2604.25949
1•PaulHoule•17m ago•0 comments

VibeOS

https://en.wikipedia.org/wiki/VibeOS
1•maayank•18m ago•0 comments

Show HN: TuringLLM – a LLM-powered Universal Turing machine

https://github.com/gmlion/TuringLLM
1•gmlion•18m ago•0 comments

Apple Silicon's on-device AI bet hasn't moved – only the chip range that runs it

https://tbreak.com/apple-silicon-on-device-ai-doug-brooks-wwdc/
2•Austin_Conlon•19m ago•0 comments

Three of our worst VC stories

https://twitter.com/eastdakota/status/2062860530360959273
3•orgonon•20m ago•0 comments

Nvidia DGX Spark GB10 – AI Models and Guide with vLLM and Autonomous Script

https://github.com/omnia-projetcs/spark-dgx
1•nico248•22m ago•0 comments

What people don't get about safety at Anthropic

https://twitter.com/kevins8/status/2062969935379513431
1•kevinatac•24m ago•0 comments

How Elon Musk Killed Hundreds of Thousands of People

https://www.currentaffairs.org/news/how-elon-musk-killed-hundreds-of-thousands-of-people
7•tastyface•24m ago•0 comments

S&P 500 rejects SpaceX, also blocking entry for OpenAI and Anthropic

https://arstechnica.com/tech-policy/2026/06/sp-500-blocks-fast-spacex-entry-wont-waive-rule-for-u...
1•AndrewDucker•27m ago•1 comments

How to Stop Shipping Low-Quality RL Environments (With Examples)

https://www.latent.space/p/bad-envs
1•swyx•29m ago•0 comments

Show HN: Busbar – every LLM behind one URL, in a single Rust binary

https://github.com/MattJackson/busbarAI
1•mattjackson86•30m ago•0 comments

UK orders Google to allow publishers to opt out of AI scraping

https://apnews.com/article/google-britain-ai-competition-regulation-ce2016a4519fbe234799e009bac8f120
3•1vuio0pswjnm7•31m ago•0 comments

The effects of foods on LDL cholesterol levels

https://www.sciencedirect.com/science/article/pii/S0939475321000028
1•brandonb•32m ago•0 comments

I Put ChatGPT Browser Inside My Terminal [video]

https://www.youtube.com/watch?v=YErIWOPytuc
1•tomerbd•33m ago•0 comments

The Wrath of the Killdozer (2009)

https://www.damninteresting.com/the-wrath-of-the-killdozer/
1•bookofjoe•34m ago•0 comments

Data Centers Have a New Adversary: Tigers and Leopards at a Zoo

https://www.bloomberg.com/news/articles/2026-06-05/data-centers-have-a-new-adversary-tigers-and-l...
1•1vuio0pswjnm7•35m ago•0 comments

Amazon Employees Show Up to City Council Meetings, Demand Limits on Data Centers

https://www.wired.com/story/amazon-employees-publicly-demand-regulations-on-data-centers/
6•1vuio0pswjnm7•37m ago•0 comments

We Built Plainform and What It Means for Your Next Project

https://plainform.dev
2•eradon•37m ago•0 comments