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!

Kirkify AI – Free Face Swap Tool – Charlie Kirk Memes

https://kirkify.io
1•duanhjlt•55s ago•0 comments

Increasing code performance with LTO [video]

https://www.youtube.com/watch?v=fPGodf5hNoo
1•chii•3m ago•0 comments

US hits out at EU's 'suffocating regulations' after it fines Elon Musk's X

https://www.bbc.com/news/articles/c4g9kejzvw0o
2•begueradj•6m ago•0 comments

Quality vs. Quantity

https://www.thehuntingphotographer.com/blog/qualityvsquantity
1•thunderbong•6m ago•0 comments

Most Intense Solar Storm in Decades Shrunk Earth's Defense by 80% [video]

https://www.youtube.com/watch?v=NuxXsagVZ_s
1•keepamovin•8m ago•0 comments

Show HN: IntentusNet-A Secure IntentRouter and Runtime for Multi-Agent Workflows

1•balachandarmani•19m ago•0 comments

Joe Lonsdale Calls for Public Hangings

https://www.thenerdreich.com/joe-lonsdale-calls-for-public-hangings/
7•jethronethro•20m ago•1 comments

GitHub Actions Has a Package Manager, and It Might Be the Worst

https://nesbitt.io/2025/12/06/github-actions-package-manager.html
3•mperham•21m ago•0 comments

2-Stage Motor System: Redefining EV Technology [video]

https://www.youtube.com/watch?v=wR6pwdVWfDI
1•vinhnx•22m ago•0 comments

Watermelon Mosaic Virus

https://gardenbite.com/watermelon-mosaic-virus/
1•svenfaw•25m ago•0 comments

Ask HN: Why does every B2B SaaS have to look like Linear/Stripe?

2•PaulShin•28m ago•2 comments

Package Manager Design Tradeoffs

https://nesbitt.io/2025/12/05/package-manager-tradeoffs.html
2•todsacerdoti•31m ago•0 comments

Is Pixelfed sawing off the branch that the Fediverse is sitting on?

https://ploum.net/2025-12-04-pixelfed-against-fediverse.html
1•8organicbits•31m ago•0 comments

Grok 4.20 tops alpha arena trading benchmark

https://nof1.ai/leaderboard
1•knuppar•33m ago•0 comments

Show HN: I built a local-first URL redirector to stop doomscrolling

https://github.com/jordanblakey/url-redirector
1•jordan_blakey•33m ago•1 comments

Girls and boys solve math problems differently – with similar short-term results

https://theconversation.com/girls-and-boys-solve-math-problems-differently-with-similar-short-ter...
2•nradov•41m ago•1 comments

Flow Control: a programmer's text editor

https://flow-control.dev/
3•signa11•47m ago•0 comments

Coverd – gambling with your credit card purchases

https://www.coverd.us/about
1•smsm42•49m ago•0 comments

AI is mastering language. Should we trust what it says? (2022)

https://www.nytimes.com/2022/04/15/magazine/ai-language.html
2•maxutility•50m ago•0 comments

Pdsink: USB Power Delivery Sink library for embedded devices

https://github.com/pdsink/pdsink
1•zdw•58m ago•0 comments

Scientists Link Popular Sugar Substitute (Sorbitol) to Liver Disease

https://scitechdaily.com/scientists-link-popular-sugar-substitute-to-liver-disease/
10•mraniki•1h ago•0 comments

'The time has come to declare war on AI'

https://www.sfgate.com/tech/article/time-to-declare-war-ai-21221535.php
6•MilnerRoute•1h ago•1 comments

Trying VLLM Ideas on Apple Silicon with MLX (WIP)

https://github.com/waybarrios/vllm-mlx
1•waybarrios•1h ago•1 comments

AI Structural Redesign Proven on Gemini/Copilot

https://imgur.com/a/A8x18kc
1•korea_koh•1h ago•1 comments

Show HN: GitHired – Find Your Next 10x Engineer

https://www.githired.tech
4•raghavbansal11•1h ago•11 comments

Why Does A.I. Write Like That?

https://www.nytimes.com/2025/12/03/magazine/chatbot-writing-style.html
1•gmays•1h ago•0 comments

Rio de Janeiro's talipot palm trees bloom for the first and only time

https://en.jardineriaon.com/The-talipot-palm-trees-of-Rio-de-Janeiro-bloom-for-the-first-and-only...
2•1659447091•1h ago•0 comments

Show HN: TestPlanit – an open-source test case management system built for QA

https://demo.testplanit.com/en-US/signin
1•therealbrad•1h ago•0 comments

Bad Boy for Life: Sean Combs' History of Violence

https://www.rollingstone.com/music/music-features/diddy-friends-bad-boy-artists-abuse-violence-12...
1•handfuloflight•1h ago•0 comments

Platonic space: where cognitive and morphological patterns come from

https://thoughtforms.life/platonic-space-where-cognitive-and-morphological-patterns-come-from-bes...
2•andsoitis•1h ago•0 comments