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!

The fix for messy AI agent ecosystems might be here and it's open source

https://www.zdnet.com/article/agentic-ai-foundation-fix-messy-agent-ecosystems/
1•CrankyBear•2m ago•0 comments

Dark mode now available on Simon Willison's blog

https://simonwillison.net/2025/Dec/10/dark-mode/
1•macote•2m ago•0 comments

China government-approved AI hw suppliers: Cambricon and Huawei in, Nvidia out

https://www.tomshardware.com/tech-industry/artificial-intelligence/china-starts-list-of-governmen...
1•SanjayMehta•4m ago•1 comments

FastEmbed-Rs – Generate Vector Embeddings and Rerank Docs Locally

https://old.reddit.com/r/coolgithubprojects/comments/1p12gnz/fastembedrs_generate_vector_embeddin...
1•PaulHoule•8m ago•0 comments

San Francisco woman gives birth in a Waymo self-driving taxi

https://apnews.com/article/baby-born-waymo-san-francisco-6bdd0fb853330f806adf5a7ca225ec8e
2•jsphweid•9m ago•0 comments

Privacy-first budgeting tool – all data stays in localStorage, works offline

2•cobrapi•10m ago•0 comments

Do 8051/8031 assembly like its 1984

https://rodyne.com/?p=3225
2•boznz•15m ago•1 comments

Galea – the most sophisticated biosensing headset

https://galea.co/
1•embedding-shape•17m ago•0 comments

Is your website Archive Ready?

https://archiveready.com/
2•pabs3•20m ago•2 comments

Gogs 0-Day Exploited in the Wild

https://www.wiz.io/blog/wiz-research-gogs-cve-2025-8110-rce-exploit
1•rkta•20m ago•0 comments

Show HN: Testify to your NIST CSF maturity with evidence to prove it

https://github.com/clay-good/nisify
1•hireclay•21m ago•0 comments

U.S. Seizes Oil Tanker Off Venezuelan Coast, Escalating Pressure on Maduro

https://www.nytimes.com/2025/12/10/us/politics/oil-tanker-seized-us-venezuela-trump.html
2•zzzeek•24m ago•0 comments

Claude Code Space Invaders Game

https://space-invaders.centminmod.com/
2•vbtechguy•24m ago•1 comments

Returning Astronauts forget gravity exists for a while [video]

https://www.youtube.com/shorts/cQ3Msm659Fw
1•lifeisstillgood•25m ago•0 comments

Midjourney Is Alemwjsl

https://www.aadillpickle.com/blog/midjourney-is-alemwjsl
1•aadillpickle•31m ago•0 comments

Testing a 40M view/day meme-page ad network for b2c products (early case study)

https://findclout.com/marketing/
1•jonahbuilds•31m ago•1 comments

Canada DND scrambles to figure out how to mobilize and equip a citizens' army

https://www.cbc.ca/news/politics/army-mobilization-canada-troops-9.7009323
3•Teever•33m ago•0 comments

Something Ominous Is Happening in the AI Economy

https://www.theatlantic.com/economy/2025/12/nvidia-ai-financing-deals/685197/
1•zerosizedweasle•33m ago•0 comments

Undeciphered Writing Systems

https://en.wikipedia.org/wiki/Undeciphered_writing_systems
3•frozenseven•34m ago•0 comments

My experience with Lean 4 for general programming

https://quamserena.com/2025-12-10/my-experience-with-lean-4-for-general-programming
1•quamserena•37m ago•0 comments

How People Use AI Agents

https://www.perplexity.ai/hub/blog/how-people-use-ai-agents
1•gmays•39m ago•0 comments

Agency Is Eating the World

https://giansegato.com/essays/agency-is-eating-the-world
1•walterbell•39m ago•0 comments

Curiosity in Relationships

https://okaykoa.substack.com/p/curiosity-in-relationships
2•herbertl•40m ago•0 comments

Understanding Carriage

https://seths.blog/2025/12/understanding-carriage/
2•herbertl•45m ago•0 comments

From Llamas to Avocados: Meta's shifting AI strategy is causing confusion

https://www.cnbc.com/2025/12/09/meta-avocado-ai-strategy-issues.html
1•LopRabbit•47m ago•0 comments

Blue Origin Might Make Starship Obsolete

https://wlockett.medium.com/blue-origin-might-make-starship-obsolete-6bc011ae86d2
2•Zigurd•52m ago•0 comments

A differentially private framework for gaining insights into AI chatbot use

https://research.google/blog/a-differentially-private-framework-for-gaining-insights-into-ai-chat...
1•tzury•56m ago•0 comments

HTTP load generator, inspired by rakyll/hey with TUI animation

https://github.com/hatoo/oha
2•overflowy•58m ago•0 comments

Why no one talks about React2Shell?

https://elenacross7.medium.com/react2shell-my-droplet-joined-a-botnet-c4850b079515
9•skilldeliver•58m ago•3 comments

Mosquitoes found in Iceland for first time as climate crisis warms country

https://www.theguardian.com/environment/2025/oct/21/mosquitoes-found-iceland-first-time-climate-c...
2•LopRabbit•59m ago•0 comments