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!

0-dep REST API and MCP unifying Polymarket, Kalshi and Manifold live odds

https://github.com/matiascorrea2024-star/prediction-markets-intelligence-api
1•matiascorrea202•1m ago•0 comments

Ask HN: Novel Cryptography

1•Taek•1m ago•0 comments

What is Hyperbaroque, the 'AI slop' trend that might be art?

https://www.creativebloq.com/news/what-is-hyperbaroque-the-ai-slop-trend-that-might-actually-be-art
1•tart-lemonade•2m ago•0 comments

Vphone-iCloud: adding iCloud services to vphone-CLI

https://github.com/GiordanoSconti/vphone-icloud
1•D34dL0ck9327•3m ago•0 comments

HTML is dead: Markdown is the new Markup

https://disassociated.com/html-dead-markdown-new-markup/
2•jyhrow•3m ago•1 comments

Musk admits Tesla's first Cybercab sales are partly to win MKBHD bet

https://electrek.co/2026/12/03/musk-tesla-cybercab-sales-mkbhd-bet-shareholder-meeting/
1•toomuchtodo•4m ago•0 comments

Covid: Something different seems to be happening this year

https://twitter.com/1goodtern/status/2128235567855157514
1•doener•7m ago•0 comments

The Moment When Jensen Huang Lost His Cool

https://www.nytimes.com/2026/12/03/opinion/jensen-huang-nvidia-testimony-hearing.html
1•doener•9m ago•0 comments

People are reading too much into the gov advisories and listening to conjecture

https://twitter.com/RGB_Lights/status/2128484066400047581
1•espeed•12m ago•0 comments

NSA Asks AI Labs to Please Stop Trying to Break Cryptography

https://gizmodo.com/nsa-asks-ai-labs-to-please-stop-trying-to-break-cryptography-2000848817
3•DGAP•15m ago•1 comments

Skydance prepares for layoffs after Warner Bros. merger

https://www.msn.com/en-us/money/general/skydance-prepares-for-massive-layoffs-after-warner-bros-m...
1•petethomas•15m ago•0 comments

Ford issues recall after exhaust leaks kill two

https://arstechnica.com/cars/2026/12/ford-recalls-704000-light-trucks-after-two-deaths-from-carbo...
1•bookmtn•17m ago•0 comments

Jeff Bezos Is Giving Away His AI for Free. Here's Why [video]

https://www.youtube.com/watch?v=e9w-cutHG4c
2•Bender•19m ago•1 comments

eBPFOS: Compile Linux into eBPF and make it a dynamically composable OS

https://github.com/eunomia-bpf/ebpfos
2•matt_d•19m ago•0 comments

LUI – Make Native Apps in Linux and Windows with Roblox Luau

https://github.com/gmoddev/LUI/releases
1•LUIDeveloper•21m ago•0 comments

Show HN: Lurka, open-source tool to find buyers among people engaging on X

https://github.com/getcargohq/lurka
2•auree•22m ago•0 comments

Samenland: Multiplayer settlement game set in Northern Germany around 1500 (MIT)

https://github.com/retrogames23/samenland
2•doener•23m ago•0 comments

Mapping a Hospital Desert in the US using R

https://datascienceplus.com/mapping-a-hospital-desert-in-r/
1•kkk4seis•23m ago•0 comments

GitHub: Incident with Actions

https://www.githubstatus.com/incidents/v78mpshn6902
2•bygosh•24m ago•0 comments

Ask HN: Any Update from Google and Microsoft on PQC?

2•jono_wilson•26m ago•0 comments

Certificate Transparency Search: All CT Logs, Free JSON API

https://ctlogs.dev/
1•sea-gold•26m ago•0 comments

1,711 unbranded shopping questions to ChatGPT: 7 in 10 brands named once

https://tryagentpilot.com/benchmark
1•useagentpilot•27m ago•0 comments

Show HN: A game I made to practice the word of the day in a sentence

https://jspann.me/projects/words/
2•jspann•30m ago•1 comments

Show HN: Acceptance Engineering – Warehouse handoff in a synthetic test

https://illaa.ai/workflow-verification/
1•RizAIsystems•31m ago•0 comments

Post-Literate Society

https://en.wikipedia.org/wiki/Post-literate_society
3•gregsadetsky•36m ago•0 comments

I Quit Big Tech to Build with AI – Both the Doomers and Hype Crowd Are Wrong

https://drawsolve.com/blog/building-with-ai
23•James_Stryker_D•36m ago•10 comments

Stylometric Fingerprinting Redux

https://seirdy.one/posts/2022/07/09/stylometric-fingerprinting-redux/
2•ykgoon•37m ago•0 comments

The Brain-LLM: a language model that reads EEG

https://mind.sabi.com/about
2•ogundipeore•39m ago•0 comments

Google just exposed OpenAI and Anthropic [video]

https://www.youtube.com/watch?v=_Bk0_Dt6TPg
3•Bender•43m ago•0 comments

U.S. Lawmakers Are Poised to Keep Chinese Cars Out Through 2042

https://www.wsj.com/business/autos/u-s-lawmakers-are-poised-to-keep-chinese-cars-out-through-2042...
7•bookofjoe•45m ago•2 comments