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!

Live benchmark of web scraping APIs and residential proxies (2026)

https://github.com/tianjun588/llm-web-scraping-benchmark
1•tianjun588•12s ago•0 comments

Show HN: Agent-arcade – Terminal games that pause when Claude Code/Codex is done

https://github.com/Kuldeep-045/agent-arcade
1•Kuldeep045•2m ago•0 comments

Name the UK Space Agency's Active Debris Removal Mission

https://space.blog.gov.uk/2026/10/15/name-the-uk-space-agencys-first-national-mission-%f0%9f%9b%b...
1•helsinkiandrew•4m ago•0 comments

Do At-Proto Users Know This Is Public?

https://melaniekat.com/blog/public-on-pds/
1•birdculture•5m ago•0 comments

Why Do I Sometimes Hate Myself

https://tomaszdziurko.substack.com/p/why-do-i-sometimes-hate-myself
3•Tiwariparth6165•6m ago•0 comments

Essays on the Nature and Role of Mathematical Elegance by Edsger Dijkstra

https://www.cs.utexas.edu/~EWD/transcriptions/EWD06xx/EWD619.html
1•rramadass•9m ago•1 comments

Getting Google Cast on My Soundbar

https://codon.org.uk/~mjg59/blog/p/getting-google-cast-on-my-soundbar/
1•robin_reala•15m ago•0 comments

The First Agentic Native Hobby Operating System

https://github.com/vahmoh/Veda
1•sevda11•20m ago•0 comments

FK Sofa – Truck

https://www.truck-furniture.co.jp/en/backstories/fk-sofa/
2•Michelangelo11•30m ago•1 comments

Faststrap: Component-based FastHTML extension that provides reusable UI elements

https://github.com/Faststrap-org/Faststrap
1•indigodaddy•31m ago•0 comments

Power of Raycast, Now on iOS

https://www.raycast.com/ios
2•rene_d•49m ago•0 comments

Punchy – a security Tamagotchi that boxes the internet

https://punchy.virtualserv.uk
1•raister•58m ago•0 comments

What if your ChatGPT conversations have a dashboard that can track things

https://chatgpt.com/plugins/plugin_asdk_app_6ad58e43cfe881919841205d69cff9cf
2•vasanthps•59m ago•0 comments

Good writing is a business advantage (2020)

http://adaged.blogspot.com/2020/04/good-writing-is-business-advantage.html
1•zenincognito•1h ago•0 comments

Non-autoregressive NC LLM spits tokens 21x faster than text diffusion

https://hazyresearch.stanford.edu/blog/2026-10-12-ncm
2•LarsDu88•1h ago•0 comments

Junglia theme park in Okinawa posted ¥17.3B (US$109.84) loss in first year

https://www.japantimes.co.jp/business/2026/09/26/junglia-okinawa-first-year-loss/
1•guessmyname•1h ago•0 comments

Farewell – ETAOIN SHRDLU – 1978 [video]

https://vimeo.com/127605643
1•apical_dendrite•1h ago•0 comments

Ask HN: Is the Microsoft buyout just a long overdue correction?

2•sky2224•1h ago•2 comments

Push Ifs Up and Fors Down

https://matklad.github.io/2023/11/15/push-ifs-up-and-fors-down.html
3•dboon•1h ago•0 comments

From the Analytics Department to a Lone Operator with a Laptop

https://medium.com/@smoking2man/from-the-analytics-department-to-a-lone-operator-with-a-laptop-ho...
1•Aldus551•1h ago•0 comments

Digital Minimalism

https://vitalik.eth.limo/general/2026/10/31/digital_minimalism.html
4•wilbertliu•1h ago•0 comments

Mexico urges respect for treaties after Texas seizes nine islands on Rio Grande

https://english.elpais.com/usa/2026-10-30/mexico-urges-respect-for-treaties-after-texas-seizes-ni...
2•geox•1h ago•0 comments

Ask HN: Is anyone else struggling with AI wealth FOMO?

2•kadhirvelm•1h ago•4 comments

Automated Subtle Emergent Misalignment Research

https://alignment.anthropic.com/2026/automated-em-search/
2•pretext•1h ago•0 comments

UTF-34 BASE-4: Codespace 4^34 = 2^68, Zero-Waste Theorem, and 1M Binary Codes

https://media.githubusercontent.com/media/anhkhoavanhua/utf34/refs/heads/main/utf34_base4_1M_bina...
1•jackhua18112001•1h ago•0 comments

Cold showers benefit the environment and your health

https://www.unibas.ch/en/News-Events/News/Uni-Research/cold-showers-health-environment.html
5•DeepLogin•1h ago•1 comments

Tier 1 ISPs react to unfair pricing

https://www.datacenterknowledge.com/networking/cogent-unplugs-telia-in-peering-dispute
1•countWSS•1h ago•1 comments

Google Adopts New AI Training Control

https://www.seroundtable.com/google-ai-training-control-42430.html
2•thm•1h ago•1 comments

Spanish minister refuses to resign over second major train crash on his watch

https://www.channelnewsasia.com/world/spain-transport-minister-resign-train-crash-6507826
2•Markoff•1h ago•2 comments

Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories

https://arxiv.org/abs/2606.03979
4•olalonde•1h ago•0 comments