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!

Show HN: Clara – a decision model that returns a probability for every answer

https://api.saanora.com/docs
1•AKSaathwik•1m ago•0 comments

Samsung running a TensorFlow lite model on 960x540 image to track you

https://twitter.com/mike64_t/status/2114150399406202896
1•mashally•3m ago•0 comments

Abstraction Fatigue

https://shubhamjain.co/2026/10/15/abstraction-fatigue/
1•shubhamjain•4m ago•0 comments

Jev-style decisions for IMAGES: Fovea-4B, open 4B, one forward pass

https://huggingface.co/Sivasuthan/fovea-4b
1•sivasuthansukum•6m ago•0 comments

CVE-2026-107891: musl Libc Integer Overflow in regcomp Leading to Heap Issues

https://www.openwall.com/lists/oss-security/2026/10/21/18
1•birdculture•9m ago•0 comments

The Commentapocalypse Is Nigher

https://lars.ingebrigtsen.no/2026/10/24/the-commentapocalypse-is-nigher/
1•theshrike79•14m ago•0 comments

Djedi Project

https://en.wikipedia.org/wiki/Djedi_Project
1•stein1946•14m ago•0 comments

Show HN: Philosophic Moon in Your Terminal

https://github.com/SorBalda/philosophic-moon
1•sorbalda•15m ago•0 comments

Rivian buys startup to turn 400,000 daily clips into 3D sims

https://electrek.co/2026/10/23/rivian-third-dimension-acquisition-self-driving-simulation/
1•cisc•18m ago•0 comments

Show HN: Where does my tax go? A UK tax receipt calculator (2026/27)

https://wheredoesmytaxgo.co.uk/
1•heyiamluke•22m ago•0 comments

Show HN: Echoboard where AI agents do science and humans only watch

https://jevontane.com/echoboard/
1•jevontane•27m ago•0 comments

The design skill that ends AI slop

https://github.com/Nutlope/hallmark
2•capex•27m ago•0 comments

The Essence of Writing

https://app.fluxlinks.com/ezra/logical-compilation-collapsing-linear-prose-into-explicit-proposit...
1•ezrasu•28m ago•0 comments

Be Aware of What's in Your Logs

https://fireborn.mataroa.blog/blog/be-aware-of-whats-in-your-logs/
2•joshcsimmons•28m ago•0 comments

Trafficity – a city builder focused on traffic – gameplay trailer [video]

https://www.youtube.com/watch?v=fUkBn6H-d-A
1•cyrc•30m ago•0 comments

Reseter.css 3.0 brings a major overhaul to the lightweight CSS reset library

https://ikrishg.github.io/reseter.css/
1•javatuts•36m ago•0 comments

Musk says SpaceX restricted Ukraine's Starlink connection as service restored

https://www.bbc.co.uk/news/articles/cvx28ljp8n4xo
2•iamflimflam1•43m ago•0 comments

Difftastic, a Structural Diff

https://difftastic.wilfred.me.uk/
1•Tomte•44m ago•0 comments

France asked ISPs to prepare temporary DNS blocks for major social platforms

https://www.blast-info.fr/articles/2026/information-exclusive-blast-le-premier-ministre-a-prepare...
27•noplay•48m ago•5 comments

Econvitals

https://econvitals.org/
1•Ihmahr•51m ago•0 comments

Ask HN: Are tab completion models dead?

3•sandruso•53m ago•1 comments

Nikon photography contest winner loses title after scientists spot signs of AI

https://www.techspot.com/news/114171-nikon-photography-contest-winner-loses-title-after-scientist...
4•thunderbong•54m ago•0 comments

Active Sonar: Mitigating Hardware CV Aimbots via Kinematics [RFC]

https://github.com/LeoLordin/Active-Sonar-AntiCheat
2•LeoLordin•54m ago•0 comments

Brutalist Architecture

https://en.wikipedia.org/wiki/Brutalist_architecture
1•tosh•54m ago•0 comments

An artist's take on AI in math

https://3blue1brown.substack.com/p/an-artists-take-on-ai-in-math
2•Eridanus2•55m ago•0 comments

The AI and Steve Strogatz

https://cultureandcompass.substack.com/p/the-ai-and-steve-strogatz
2•artninja1988•57m ago•0 comments

Decompiling Fast Food Tycoon 2: Drawing the World

https://healeycodes.com/decompiling-fast-food-tycoon-2-drawing-the-world
1•ingve•1h ago•0 comments

Dump Shock

https://wiki.c2.com/?DumpShock
2•ColinWright•1h ago•0 comments

Show HN: OpenXet

https://github.com/stubbi/openxet
2•stubbi•1h ago•0 comments

Allocating Off-Heap Memory: Typically 6-18x Faster in JDK 28

https://inside.java/2026/10/23/confined-pools/
4•karussell•1h ago•1 comments