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!

GLiClass: Open-Source JEV

https://github.com/knowledgator/gliclass
1•handfuloflight•1m ago•0 comments

The Arrival of Java 27

https://inside.java/2026/09/15/jdk-27-available/
3•ejboy•4m ago•0 comments

EU approves sending mountains of trash to Turkey despite environmental fears

https://www.politico.eu/article/eu-trash-turkey-environment-plastic-recycle/
2•leonidasrup•7m ago•0 comments

Verification of a Generational Garbage Collector

https://arxiv.org/abs/2609.13186
2•matt_d•9m ago•0 comments

Salesforce and Nvidia launch Koa, a CRM reasoning model

https://www.salesforce.com/news/press-releases/2026/09/15/koa-reasoning-model/?bc=HL
2•snikolaev•15m ago•0 comments

Antonio Gramsci: How Language Makes Power Feel Like Common Sense

https://linguistically.substack.com/p/antonio-gramsci-how-language-makes
1•akbarnama•16m ago•0 comments

Replicating Jev with Qwen-2.5

https://nitter.perennialte.ch/harshagundal/status/2100044305536889015
1•E-Reverance•19m ago•0 comments

Revisiting Soundness for Occurrence Typing, Semantically

https://arxiv.org/abs/2609.16299
1•matt_d•20m ago•0 comments

Black Holes or Black Hole Stars?

https://www.quantamagazine.org/black-holes-or-black-hole-stars-astronomers-spar-over-webb-telesco...
1•the-mitr•20m ago•0 comments

GPT-6 Astra vs. GPT-5.6 Sol: Is a 1.6x Higher Cost Worth It per Verified Bug?

https://ent-website-gamma.vercel.app/blogs/gpt-6-astra-cost-1.6x-more-per-verified-bug-than-gpt-5...
1•Entelligence25•22m ago•0 comments

Reclaim the Terminal

https://nishantjosh.dev/blogs/reclaim-the-terminal/
1•ballanitesh•23m ago•0 comments

Nature Is Our Learning Environment

https://periodic.com/news/nature-is-our-learning-environment
1•EvgeniyZh•28m ago•0 comments

Hello HN

1•Mohamed_Amineio•28m ago•0 comments

The Chemistry of Cookery XVII (1884)

https://en.wikisource.org/wiki/Popular_Science_Monthly/Volume_26/November_1884/The_Chemistry_of_C...
1•wmchen•32m ago•0 comments

Bug Bounty Operating Principles

https://medium.com/@JasonPuglisi/bug-bounty-principles-c379a2062614
1•smurda•35m ago•0 comments

CodeProject in read-only mode since October 2024

https://en.wikipedia.org/wiki/CodeProject
1•vismit2000•35m ago•0 comments

What's New in macOS 27 for Developers?

https://www.freecodecamp.org/news/whats-new-in-macos-27-for-developers/
1•DanielKehoe•36m ago•0 comments

Effectively Does a Model Use Its Memory (2025)

https://www.liquid.ai/blog/how-effectively-does-a-model-use-its-memory
1•eigenBasis•39m ago•1 comments

OpenAI breakthrough triggers 'existential crisis' in math

https://www.science.org/content/article/openai-breakthrough-triggers-existential-crisis-math
3•sbulaev•41m ago•0 comments

Show HN: 2049 - a roguelike that fuses 2048 and Minesweeper

https://github.com/skorotkiewicz/2049
1•modinfo•41m ago•0 comments

Why Scheme?

https://goeteia.dev/why
1•edfsadfer•44m ago•0 comments

Symbolic Artificial Intelligence

https://en.wikipedia.org/wiki/Symbolic_artificial_intelligence
1•ijidak•44m ago•0 comments

AI models in 'surreal' dialect mixing poetic language and tech bro jargon

https://www.theguardian.com/technology/2026/sep/15/syd-barrett-ai-chat-language-poetic-tech-bro-j...
3•danielmorozoff•47m ago•0 comments

Show HN: Context Freshness Ledger – a tiny schema for reviewable agent memory

https://github.com/chengyixu/context-freshness-ledger
1•Wilson_Xu•47m ago•0 comments

Novel Particle Beam Could Challenge Einstein's Theory of Gravity

https://ethz.ch/en/news-and-events/eth-news/news/2026/09/novel-particle-beam-could-challenge-eins...
1•geox•50m ago•0 comments

FBI boarded Texas-bound oil tanker to investigate cyberattack

https://www.cbsnews.com/news/coast-guard-fbi-board-oil-tanker-texas/
3•virgulino•50m ago•1 comments

NASA-backed scientists turn plastic waste into edible cookies

https://www.sciencedaily.com/releases/2026/09/260912220033.htm
2•danielmorozoff•51m ago•1 comments

"Filmmaker" suing PassThePopcorn may be banned user out for revenge

https://arstechnica.com/tech-policy/2026/09/filmmaker-suing-passthepopcorn-may-be-banned-user-out...
1•shscs911•54m ago•0 comments

William Buckland's Theology of Geology

https://www.historytoday.com/archive/great-debates/william-bucklands-theology-geology
1•Petiver•54m ago•0 comments

Broken Windows, Abstractions and the Cost of Always Keeping Things Simple

https://pgilmartin.substack.com/p/broken-windows-abstractions-and-the
1•snikolaev•56m ago•1 comments