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!

Sigilo da fonte – – nãO pode ser salvo-conduto para jornalistas criminosos

https://geraldoaugustoseabra.substack.com/p/sigilo-da-fonte-nao-pode-ser-salvo
1•newsgames•2m ago•0 comments

CertChecker – stop finding out too late that an SSL cert expired

https://certchecker.dev/
1•dajubes•2m ago•0 comments

Project VEGA

https://www.microsoft.com/en-us/research/project/project-vega/
1•geox•3m ago•0 comments

Mark J. Wielaard (Mjw) Receives Distinguished Service Award in Software Freedom

https://sfconservancy.org/news/2026/aug/12/mark-j-wielaard-receives-2-annual-award/
2•darkr•5m ago•0 comments

Ask HN: What should I know before hosting eprints?

1•logicallee•7m ago•0 comments

Qwen3.8 27B Runs 200 tok/s on a Single RTX 5090

https://twitter.com/sgl_project/status/2088281320422322413
1•unseenmars•9m ago•0 comments

An easy way to build self-diagnosing and self-learning AI agents in production

https://www.youtube.com/watch?v=2x0BKQBMbF4
1•supportm•10m ago•1 comments

Castform now supports supervised finetuning

https://castform.com/blog/sft-launch/
1•kumama•11m ago•0 comments

UI is hell: four-function calculators

https://lcamtuf.substack.com/p/ui-is-hell-four-function-calculators
1•jandeboevrie•13m ago•0 comments

Capyreader: A smallish Android RSS reader

https://github.com/jocmp/capyreader
1•thunderbong•14m ago•0 comments

Independent Internet Forums

https://indieforums.linklists.net/
1•rdmuser•16m ago•0 comments

Comparing React and Htmx for Building Chatbots

https://carlkolon.com/2026/08/14/htmx-react-chat/
1•cckolon•18m ago•0 comments

The Making of Pro Office Calculator, Part 1 – Fragment-Based Architecture

https://deadbeef.io/procalc_making_of_1
1•rjinman•18m ago•0 comments

When facts change, should AI memory change?

https://github.com/Anchorstate-Lab/GMR
1•Zongming•19m ago•0 comments

Turning molecules into reliable electronic devices

https://news.mit.edu/2026/turning-molecules-into-reliable-electronic-devices-0803
1•gmays•20m ago•0 comments

Human brain cells do next-token prediction

https://parasma.com/news/human-brain-cells-do-next-token-prediction
1•alach11•21m ago•0 comments

Apple trains its own AI model for China market with Alibaba's support, sources

https://www.reuters.com/business/retail-consumer/apple-trains-its-own-ai-model-china-market-with-...
3•newusertoday•22m ago•0 comments

Trust Boundary Collapse: Two Campaigns That Bypassed Artifact Inspection

https://lateos.ai/articles/trust-boundary-collapse-teampcp-clickfix
1•leochong•23m ago•0 comments

Multi-hop reasoning collapses by 1M tokens; with a learning system it doesn't

https://zenodo.org/records/21937795
1•lvrzhn•23m ago•0 comments

Rustc_codegen_JVM: Compile Rust to Java bytecode and runnable JARs

https://github.com/IntegralPilot/rustc_codegen_jvm
1•fanf2•23m ago•0 comments

AI Thinks the Internet Is Reddit. We Have 8,616 Answers Proving It

https://growtika.com/blog/reddit-ai-visibility-research
3•Growtika•23m ago•2 comments

1,1 mld USD dla River AI: Co oznacza rewolucja spersonalizowanego AI?

https://neurise.io/blog-auto-1-1-mld-usd-dla-river-ai-rewolucja-spersonalizowanego-ai.html
1•mbarczynski•24m ago•0 comments

Can Boeing Be Forced to Let a Blind Machinist Build Planes? New Lawsuit Says Yes

https://viewfromthewing.com/can-boeing-be-forced-to-let-a-blind-machinist-build-planes-a-new-laws...
1•crescit_eundo•25m ago•1 comments

LLM Web Search Benchmarks: More Searches Beat a Better Search Engine

https://openrouter.ai/blog/announcements/web-search-benchmark/
1•DGAP•26m ago•0 comments

Earn yield through machine learning vault on DeFi

https://twitter.com/macbrennan_cc/status/2088295071024034226
1•panterafii•28m ago•1 comments

150 years of Gibbs' phase rule

https://www.chemistryworld.com/features/150-years-of-gibbs-phase-rule/4023900.article
2•akshatjiwan•29m ago•0 comments

Predicting short interest from FINRA daily short volume shows 0.414 correlation

https://equibles.com/research/does-daily-short-volume-predict-short-interest
1•daniel3303•30m ago•0 comments

An advanced attacker is targeting Salesforce and ServiceNow instances worldwide

https://www.reco.ai/blog/city-forum-campaign-salesforce-servicenow
1•daretograsp•31m ago•0 comments

PostgreSQL: The database that should be dead but runs the Internet [video]

https://www.youtube.com/watch?v=_CB_Aa2ODeM
1•teleforce•31m ago•1 comments

US Court rules AFP health programs can't import Gilead medications from overseas

https://www.cnbc.com/2026/08/14/court-ruling-gilead-medications-overseas-afps.html
1•ck2•32m ago•1 comments