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!

Show HN: Code Island – teaches programming logic with drag-and-drop blocks

https://zslava.itch.io/code-island
1•zslava88•3m ago•0 comments

From Company Brain to an AI Operating System

https://medium.com/@calufa/from-company-brain-to-an-ai-operating-system-a9378d697f1a
1•_hfqa•5m ago•0 comments

Why People Get Autonomy Wrong

https://autonomousagents19.com/blog/founder-dependency/why-most-people-get-autonomy-wrong
1•KissMySaas•5m ago•0 comments

NASA to wear Prada as luxury group pushes into space industry

https://www.reuters.com/science/nasa-wear-prada-luxury-group-pushes-into-space-industry-2026-06-07/
1•JumpCrisscross•7m ago•0 comments

Palestinian baby shot dead by Israeli troops

https://www.theguardian.com/world/2026/jun/06/palestinian-baby-shot-dead-israeli-troops-occupied-...
2•astroanax•8m ago•0 comments

Three decades of warming in temperate forests destabilizes soil organic matter

https://www.sciencedirect.com/science/article/pii/S0048969726004419?via%3Dihub
1•PaulHoule•9m ago•0 comments

UK Home Office retires 25-year-old asylum database, keeps spreadsheets

https://www.theregister.com/public-sector/2026/06/07/home-office-ditches-legacy-asylum-database-k...
1•logickkk1•12m ago•0 comments

Show HN: Shunbox, Your inbox sorted before you open it

https://www.shunbox.app/
1•albertyang•12m ago•0 comments

A Categorical Framework for Agentic Artificial Intelligence

https://arxiv.org/abs/2606.01444
1•ssivark•14m ago•1 comments

Can Mark Carney Get Canadians to Trust AI?

https://www.cbc.ca/news/politics/artificial-intelligence-mark-carney-analysis-9.7225476
3•devonnull•16m ago•0 comments

Yann LeCun Says LLMs Have 2 Years Left

https://www.youtube.com/watch?v=85M0cTnNKCI
2•root-parent•16m ago•0 comments

Who uses the CPU when you type `tail -f`? – SABTI Riad

https://blog.sabti.dev/posts/who-uses-the-cpu-tail-f/
1•rbanffy•18m ago•0 comments

Why Are Linux I/O Devices Called TTY? [video]

https://www.youtube.com/watch?v=31JBOlrzPXs
2•zdw•19m ago•1 comments

Microbe with tiny genome may be evolving into a virus

https://www.science.org/content/article/microbe-bizarrely-tiny-genome-may-be-evolving-virus
1•stared•21m ago•0 comments

Risk Has an Owner, and It's Not the AI

https://aaddrick.com/blog/risk-has-an-owner
2•aaddrick•27m ago•0 comments

India told millions to get degrees. Now even peon jobs are out of reach

https://www.indiatoday.in/jobs/story/graduate-unemployment-in-india-what-sc-ruling-reveals-about-...
4•rustoo•28m ago•0 comments

Show HN: VPets.net – a cozy pixel pet world

https://vpets.net/start
1•solidarnosc•37m ago•1 comments

Nemotron 3 Ultra is open weight and open data [video]

https://www.youtube.com/watch?v=D8LIIvQVGS4
2•TheJCDenton•39m ago•0 comments

The First AI QFT Textbook

https://www.math.columbia.edu/~woit/wordpress/?p=15735
1•jjgreen•42m ago•0 comments

Data centers consumed 264B gallons of water as drought hits nearly 63% of US

https://www.barchart.com/story/news/2339834/ai-data-centers-water-consumption-breaks-264-billion-...
19•yogthos•43m ago•14 comments

Compression and Intelligence 3blue1brown [video]

https://www.youtube.com/watch?v=l6DKRf-fAAM
3•2bird3•43m ago•0 comments

Painting that made Turner's name gets second public showing since 1799

https://www.thetimes.com/culture/art/article/painting-turner-abergavenny-bridge-rcvx8hglh
1•bookofjoe•44m ago•1 comments

Investing Is Compression

https://arxiv.org/abs/2604.10758
2•lisper•45m ago•0 comments

The Zebra v4.4.1 Chronicles: Independent Audit

https://github.com/Alex74SjS3/THE-ZCASH-ZEBRA-v4.4.1-CHRONICLES
1•Alex74-SjS3•49m ago•0 comments

Spyro the Dragon returns with a new game after almost two decades

https://www.theguardian.com/games/2026/jun/07/spyro-the-dragon-returns-with-a-new-game-after-almo...
2•TechTechTech•52m ago•0 comments

Thoughts on starting new projects with LLM agents

https://eli.thegreenplace.net/2026/thoughts-on-starting-new-projects-with-llm-agents/
3•zdw•52m ago•0 comments

VibeOS: First ever AI-native operating system

https://vibeos.sh/
4•doener•54m ago•0 comments

Flock Safety Price List [pdf]

https://www.omniapartners.com/suppliers-files/E-J/Flock_Safety/Contract_Documents/R250203/5_29_20...
2•ourmandave•56m ago•0 comments

A Portrait of the Software Engineer, 2031

https://jamesjboyer.substack.com/p/a-portrait-of-the-software-engineer
2•aesthetics1•56m ago•0 comments

Ask HN: Is Facebook registration procedure broken?

2•stefanos82•57m ago•0 comments