frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•7mo 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: Apple OS 1 inspired personal website

https://benrichardson.dev
1•ben-gy•3m ago•0 comments

Moore Threads IPO – "China's Nvidia" 400%+ Surge

https://www.cnbc.com/2025/12/05/china-nvidia-moore-threads-trading-debut-1-billion-listing-ipo-sh...
1•victorbuilds•5m ago•0 comments

Life Is Most Important in Life Is the Most Important Truth in Life

https://davidwishengrad.github.io/Life-is-Most-Important-in-Life-is-The-Most-Important-Truth-in-L...
1•DavidWishengrad•8m ago•0 comments

Grok got me to demand the CT scan that saved my life from a ruptured appendix

https://old.reddit.com/r/grok/comments/1pdzrk1/how_a_latenight_conversation_with_grok_got_me_to/
3•pr337h4m•12m ago•0 comments

Linux Instal Fest Belgrade

https://dmz.rs/lif2025_en
1•ubavic•13m ago•0 comments

Smile, You're on Camera: Live from Inside Lazarus Group's IT Workers Scheme

https://any.run/cybersecurity-blog/lazarus-group-it-workers-investigation/
1•intunderflow•15m ago•0 comments

Eskimos – Old Age – Revelations

https://www.theinitialjourney.com/features/eskimos-old-age/
1•ZeljkoS•17m ago•0 comments

Colour 0.4.7 has been released

https://www.colour-science.org/posts/colour-047-is-available/
1•kelsolaar•24m ago•0 comments

It's Not Just You. Users Struggle with the Instagram Repost Button

https://www.nytimes.com/2025/12/06/technology/instagram-repost-button-accidental.html
1•fleahunter•25m ago•0 comments

LeetCode Wrapped – Spotify Wrapped for LeetCode

https://leetcodewrapped.com
1•collinboler2•25m ago•1 comments

Show HN: The notepad that thinks in numbers

https://numla.app
1•daviducolo•27m ago•0 comments

Dsk Mode – A desktop-OS like taskbar for Android (shows open Apps)

https://play.google.com/store/apps/details?id=app.ijp.dskmode&hl=en_US
1•Jahcks•28m ago•1 comments

Scientists Are Measuring Ocean Currents in Hopes of Charting AMOC's Future

https://www.nytimes.com/2025/12/06/climate/amoc-collapse-ocean-current-arctic-climate-change.html
1•fleahunter•29m ago•0 comments

What happened on energy and climate in China this year?

https://www.sustainabilitybynumbers.com/p/chinese-emissions-2025
2•ZeroGravitas•30m ago•0 comments

We Talked with Chuck Benton about the Forerunner to Leisure Suit Larry

https://spillhistorie.no/2025/12/05/chuck-benton-and-softporn-adventure/
2•thelok•39m ago•0 comments

Show HN: Nano.noq – Experimental key-container format

https://github.com/NOQ-DAFFACTOR/NANO.NOQ
1•Daffactor•44m ago•0 comments

Trustpilot accused of running a "mafia-style extortion" scheme

https://www.reuters.com/business/review-platform-trustpilots-shares-slump-after-grizzly-research-...
3•thm•47m ago•0 comments

Verbatim: What Is a Photocopier?

https://www.nytimes.com/video/opinion/100000002847155/verbatim-what-is-a-photocopier.html
1•jameslk•48m ago•0 comments

Amnesty: Smartphones silently infected via malicious ads and 0-click

https://securitylab.amnesty.org/latest/2025/12/intellexa-leaks-predator-spyware-operations-exposed/
1•bellajbadr•50m ago•0 comments

Dyalog APL 20.0

https://www.dyalog.com/dyalog/dyalog-versions/200.htm
2•tosh•53m ago•0 comments

Python, Is It Being Killed by Incremental Improvements? [video]

https://www.youtube.com/watch?v=03DswsNUBdQ
2•Fudgel•54m ago•0 comments

Frank Gehry, legendary Canadian-American architect, dies aged 96

https://www.theguardian.com/artanddesign/2025/dec/05/frank-gehry-dead
1•tosh•55m ago•0 comments

All of My Employees Are AI Agents, and So Are My Executives

https://www.wired.com/story/all-my-employees-are-ai-agents-so-are-my-executives/
3•frenchmajesty•56m ago•0 comments

Ask HN: How many people got VPNs in response to laws like UK Online Safety Act?

25•hodgesrm•1h ago•4 comments

Show HN: Crovia Spider v1 –Forensic crawler exposing compliance gaps in LAION-5B

https://github.com/croviatrust/crovia-core-engine
1•crovia•1h ago•0 comments

Shoppers loved the 'fabric queen'. Then, order by order, her story fell apart

https://www.bbc.com/news/articles/c5y937w7xl7o
5•haunter•1h ago•0 comments

Distributed ID Formats Are Architectural Commitments, Not Just Data Types

https://piljoong.dev/posts/distributed-id-generation-complicated/
2•mnahkies•1h ago•0 comments

ESC

https://twitter.com/miniarchillect/status/1996986617710760054
1•keepamovin•1h ago•0 comments

Inercia 2025

https://2025.inercia.pt/en/
1•zansara•1h ago•0 comments

National Security Strategy of the United States of America [pdf]

https://www.whitehouse.gov/wp-content/uploads/2025/12/2025-National-Security-Strategy.pdf
2•keepamovin•1h ago•4 comments