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!

Iran's Seizure of Chinese Security Ship Shows Its Favors for Friends Have Limits

https://www.wsj.com/world/china/irans-seizure-of-chinese-security-ship-shows-its-favors-for-frien...
1•JumpCrisscross•1m ago•0 comments

I tried to make Claude make me money on Algora bounties (data and tool)

https://github.com/ztc00/algora-scout/blob/main/POST.md
1•ztc00•3m ago•0 comments

Samsung is developing nearline SSDs up to 1 PB

https://www.blocksandfiles.com/flash/2026/05/15/scality-says-samsung-is-developing-nearline-ssds-...
1•ziofill•4m ago•0 comments

Open WebUI: Jupyter code execution works despite ENABLE_CODE_EXECUTION=false

https://github.com/open-webui/open-webui/security/advisories/GHSA-482j-2pq6-q5w4
1•logickkk1•4m ago•0 comments

Irst Apple M5 memory exploit discovered using Anthropic AI

https://www.tomshardware.com/tech-industry/cyber-security/apple-m5-architecture-suffers-first-pri...
1•Timofeibu•8m ago•0 comments

OpenAI caught NPM supply chain chaos after employeedevices compromised

https://www.theregister.com/security/2026/05/15/openai-caught-in-tanstack-npm-supply-chain-chaos-...
2•Timofeibu•9m ago•0 comments

$60B AI chip darling Cerebras almost died early on, burning $8M a month

https://techcrunch.com/2026/05/16/60b-ai-chip-darling-cerebras-almost-died-early-on-burning-8m-a-...
1•ent101•11m ago•0 comments

Spend Your Compute on Correctness

https://juanreyero.com/article/ai/spend-compute-on-correctness
2•juanre•13m ago•0 comments

Ask HN: When did computers stop being fun?

1•klez•14m ago•0 comments

Will A.I. Make College Obsolete?

https://www.newyorker.com/news/fault-lines/will-ai-make-college-obsolete
1•momentmaker•15m ago•0 comments

How I use LLMs as a staff engineer in 2026

https://www.seangoedecke.com/how-i-use-llms-in-2026/
1•lalitmaganti•15m ago•0 comments

50 Years of Text Games by Aaron Reed

https://www.thepsmiths.com/p/review-50-years-of-text-games-by
1•momentmaker•15m ago•0 comments

Understanding Singleflight in Go

https://www.codingexplorations.com/blog/understanding-singleflight-in-golang-a-solution-for-elimi...
1•ghostbit•19m ago•0 comments

How to Achieve Truly Serverless GPUs

https://modal.com/blog/truly-serverless-gpus
1•birdculture•20m ago•0 comments

AI face is taking over – and driving plastic surgeons crazy

https://www.businessinsider.com/ai-generated-images-chatgpt-reshape-plastic-surgery-beauty-expect...
2•andreylangovoy•34m ago•0 comments

Built a Website for Embedded Software Engineering Interview Preparation

https://srnvl.github.io/Embedded_SWE_Prep/
2•sangramnavale•39m ago•1 comments

Pity the poor AI datacenters facing 'discrimination'

https://www.theguardian.com/commentisfree/2026/may/16/pity-the-poor-ai-datacenters-facing-discrim...
4•devonnull•39m ago•0 comments

Dutch government objects to proposed US law restricting ASML's China exports

https://www.reuters.com/world/asia-pacific/dutch-government-objects-proposed-us-law-restricting-a...
8•jonbaer•45m ago•2 comments

Classic – Hacker News

https://news.ycombinator.com/classic
3•rvnx•52m ago•0 comments

Twilight of the Velocipede: Typesetting Races Before the Age of Linotype

https://publicdomainreview.org/essay/twilight-of-the-velocipede/
1•benbreen•52m ago•0 comments

Google AI Overview – "Tersely"

https://www.google.com/search?q=tersely&oq=tersely
1•flawn•55m ago•0 comments

Liquid Breathing

https://en.wikipedia.org/wiki/Liquid_breathing
1•Markoff•55m ago•0 comments

asp-classic-emulator: Run ASP Classic on macOS, Linux and BSD

https://github.com/MarceloDelgadoDev/asp-classic-emulator
2•866-RON-0-FEZ•1h ago•0 comments

Show HN: Artist Kit – One-Page Website Builder for DJs and Music Artists

https://www.artistkit.co/
3•truetaurus•1h ago•1 comments

I used AI to help market my bagel shop. Then the one-star reviews came in

https://www.businessinsider.com/bagel-shop-owner-removes-ai-social-media-marketing-2026-5
2•michaelsbradley•1h ago•2 comments

Scenario with Low Demand for AI

2•tesdinger•1h ago•1 comments

How does your team capture decisions and action items after meetings?

2•Skm-12•1h ago•0 comments

AI Is Technology, Not a Product

https://daringfireball.net/2026/05/ai_is_technology_not_a_product
2•mattas•1h ago•0 comments

Show HN: Firehooks – Get app users from TikTok without paid ads

https://ads.firehooks.io/
1•Tanvir3•1h ago•0 comments

Do Job Postings Show Early Labor‑Market Effects of AI?

https://libertystreeteconomics.newyorkfed.org/2026/05/do-job-postings-show-early-labor-market-eff...
3•wslh•1h ago•0 comments