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!

Axon Vision

https://www.axon.com/products/axon-vision
1•Cider9986•2m ago•0 comments

Cherrapunji

https://en.wikipedia.org/wiki/Cherrapunji
1•marysminefnuf•5m ago•0 comments

Show HN: A Claude Code skill that scopes problems like Peter Naur

https://github.com/spinchange/cartographer-skill/blob/main/skills/cartographer/SKILL.md
1•spinchange•5m ago•0 comments

Tuning CPU-only Qwen3-30B inference with an IBM Quantum sampling loop

https://github.com/Shack870/qwen-air-qpu-mcp-lab
1•Royce-CMR•14m ago•0 comments

"The Apple Boogie" 1987 Mac Promo Album Cassette Tape [video]

https://www.youtube.com/watch?v=chJHB-btMNI
2•1970-01-01•19m ago•0 comments

We open source our threejs based game engine

https://buildwithstem.com
1•productexperts•27m ago•0 comments

WH proposes rules giving political appointees final approval on research grants

https://www.scientificamerican.com/article/white-house-proposes-new-rules-giving-political-appoin...
8•jordanpg•30m ago•1 comments

Restoring macOS on an Intel T2 Mac via Target Disk Mode from Apple Silicon

https://it-solutions-usa.github.io/mac-admin/reports/macos_restore_tdm_report.html
1•convmsdsdsd•30m ago•0 comments

Aedis – An open-source macroeconomic framework for the AI transition Body

https://github.com/rand55/project-aedis-framework/tree/main
1•Randal1964•30m ago•0 comments

US Counterterrorism Strategy 2026 [pdf]

https://www.whitehouse.gov/wp-content/uploads/2026/05/2026-USCT-Strategy-1.pdf
3•ki4jgt•31m ago•0 comments

G116: Nanosecond-level hardware jitter detection on Linux

https://github.com/ON1-Hao/ON1/blob/main/README_G116.md
1•ON1-Hao•38m ago•0 comments

How the West Lost to China in EVs [video]

https://www.youtube.com/watch?v=UhhZu0ZHdw4
1•arciini•40m ago•1 comments

Mac External Display Support by Chip

https://retinadesk.com/tools/external-display-support/
1•firexcy•43m ago•0 comments

Stephen Hawking's father worried his son 'does not study much', diaries reveal

https://www.theguardian.com/science/2026/may/23/stephen-hawking-father-worried-son-does-not-study...
2•pseudolus•44m ago•0 comments

Show HN: Formally verified polygon intersection – Opus 4.8 oneshots, prev failed

https://github.com/schildep/verified-polygon-intersection
2•permute•48m ago•0 comments

Red went from the #1 to the #5 colour for Japanese schoolgirls' backpacks

https://jivx.com/randoseru
1•momentmaker•59m ago•0 comments

Movwin: My (Unpublished) TUI Framework

https://movq.de/blog/postings/2026-05-29/0/POSTING-en.html
1•zdw•1h ago•0 comments

In situ cryo-ET defines the ultrastructure of ER exit sites in human cells

https://www.nature.com/articles/s41556-026-01964-2
1•bookofjoe•1h ago•0 comments

What a 98-Year Old Children's Book Teaches Us About AI

https://angrystaffofficer.com/2026/05/28/what-a-98-year-old-childrens-book-teaches-us-about-ai/
2•caycep•1h ago•0 comments

Textile Markup Language Documentation

https://textile-lang.com/
3•GaryBluto•1h ago•2 comments

Triassic-era crocodile relative walked on 2 legs, had a beaked mouth

https://interestingengineering.com/science/new-triassic-fossil-two-legged-crocodile
1•gmays•1h ago•0 comments

Genomic test could spare millions of breast cancer patients chemotherapy

https://www.theguardian.com/society/2026/may/29/groundbreaking-genomic-test-spare-breast-cancer-p...
3•pseudolus•1h ago•0 comments

Summary of Key Changes in OMB's Proposed Federal Financial Assistance Rule

https://elizabethginexi.substack.com/p/summary-of-key-changes-in-ombs-proposed
1•frigidwalnut•1h ago•0 comments

Key Chemistry Question Answered, No Quantum Computer Required

https://www.quantamagazine.org/key-chemistry-question-answered-no-quantum-computer-required-20260...
2•vi_sextus_vi•1h ago•0 comments

Why we're pivoting away from healthcare

https://saffron.health
4•tanishqkanc•1h ago•1 comments

Goldman's Model Shows Spain as 26% Probable World Cup Winner

https://www.bloomberg.com/news/articles/2026-05-29/goldman-s-model-shows-spain-as-26-probable-wor...
4•vismit2000•1h ago•0 comments

Google Chrome adds session cookie theft protection for all users

https://www.bleepingcomputer.com/news/security/google-chrome-adds-session-cookie-theft-protection...
3•deadbolt•1h ago•0 comments

TokioConf 2026 Talks

https://www.youtube.com/playlist?list=PLgVIJ9TpEgOmHj0ADDpf-qGckYEJs4QCE
4•nomaxx117•1h ago•0 comments

You're Underutilizing Java's Standard Library

https://feds-will-find.you/blog/youre-underutilizing-javas-standard-library
2•onesingleblast•1h ago•0 comments

The largest RC Boeing 777-9X takes flight

https://www.popsci.com/technology/worlds-largest-remote-controlled-boeing7779x/
2•qwertyuiop_•1h ago•0 comments