frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

A little comparison between R and Kap

https://blog.dhsdevelopments.com/a-little-comparison-between-r-and-kap
1•tosh•1m ago•0 comments

Attracting Early Stage Investors: Evidence from a Randomized Experiment (2015)

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2432044
1•downbad_•3m ago•1 comments

Thomson Reuters Hit with Privacy Litigation in Michigan Re:Display of SSN Digits

https://www.law.com/2026/05/01/thomson-reuters-hit-with-privacy-class-action-in-michigan-over-dis...
1•1vuio0pswjnm7•5m ago•0 comments

How is it that Jakarta has improved so much?

https://indevelopmentmag.com/jakarta-transit-transformation/
1•paulpauper•5m ago•0 comments

CISA KEV: Linux "Copy Fail" CVE-2026-31431 Turns Kernel Bug into Patch Deadline

https://windowsforum.com/threads/cisa-kev-linux-copy-fail-cve-2026-31431-turns-kernel-bug-into-pa...
1•eth0up•5m ago•0 comments

Servers with Personality

https://caolan.uk/links/servers/
1•wrxd•7m ago•0 comments

Ask HN: What does a 9-year undetected memory-only Linux LPE imply?

1•eth0up•8m ago•0 comments

The STL for Geometry: Thirty-Year Evolution of C++ Libraries

https://polydera.com/algorithms/the-stl-for-geometry
1•ZigaSajovic•8m ago•0 comments

Scientists Create First-Ever 'Smell Map'

https://hms.harvard.edu/news/scientists-create-first-ever-smell-map
1•gmays•13m ago•0 comments

AI isn't coming for your job. It's coming for your mind

https://www.bailliegifford.com/en/uk/individual-investors/insights/ic-article/2026-q1-ai-isn-t-co...
1•XzetaU8•13m ago•0 comments

Can countries grow richer by exporting people, not goods?

https://www.economist.com/finance-and-economics/2026/04/30/can-countries-grow-richer-by-exporting...
1•andsoitis•15m ago•0 comments

Fungi and the Rise of Mammals [pdf]

https://journals.plos.org/plospathogens/article?id=10.1371/journal.ppat.1002808
1•thunderbong•15m ago•0 comments

AI threatens Big Law's talent pipeline

https://www.axios.com/2026/05/02/ai-lawyers-law-firms-artificial-intelligence
1•Brajeshwar•15m ago•0 comments

A lost galaxy called 'Loki' may be hiding inside the Milky Way

https://phys.org/news/2026-04-lost-galaxy-loki-milky.html
1•wglb•16m ago•1 comments

I made an Mobile-Coding Companion, seeking your reviews

https://www.remoot.dev
1•xporpy•17m ago•0 comments

Show HN: Writing a deep-research agent from scratch

https://deep-research-agent.pagey.site
1•freakynit•18m ago•0 comments

Modern C++ Programming: Busato

https://github.com/federico-busato/Modern-CPP-Programming
1•KnuthIsGod•19m ago•0 comments

Show HN: Verbalized-Sample-Skill.md Modal Probability-Ranked Answer Distribution

https://gist.github.com/spinchange/ebecc4a548bf163ce4fddae0699a8065
1•spinchange•20m ago•0 comments

The Mystery of the Missing Hotel Toothpaste (2013)

https://slate.com/human-interest/2013/07/toothpaste-in-hotels-why-do-they-provide-shampoo-soap-an...
1•downbad_•20m ago•1 comments

Museum of the Human Web

https://museum.parallel.ai/introduction?era=modern
1•TheBlapse•22m ago•0 comments

Data center land use issues are fake

https://blog.andymasley.com/p/data-center-land-use-issues-are-fake
1•Kye•22m ago•0 comments

Emergent Strategic Reasoning Risks in AI: A Taxonomy-Driven Evaluation Framework

https://arxiv.org/abs/2604.22119
1•gmays•23m ago•0 comments

DNS, the Phonebook That Isn't

https://toolkit.whysonil.dev/how-it-works/dns/
1•simplerhumane•23m ago•0 comments

MCP-ratchet: Go package for enforcing tool call order in MCP servers

https://github.com/hexxla/mcp-ratchet
1•sploitzberg•24m ago•0 comments

Why C++ is growing, and why C++26 will likely be adopted quickly [video]

https://www.youtube.com/watch?v=Qvr9MTAU_y4
1•dalvrosa•25m ago•0 comments

Meta's Pyrefly sabotages competing Python extensions without telling you

https://github.com/facebook/pyrefly/issues/3292
2•FossAndFurious•25m ago•1 comments

Lightning Talk: Cut the boilerplate with C++23 deducing_this – Sarthak Sehgal [video]

https://www.youtube.com/watch?v=o3vjUo2qXNg
1•dalvrosa•28m ago•0 comments

To Train or Not to Train

https://www.tanayj.com/p/to-train-or-not-to-train
1•gmays•29m ago•0 comments

Risky Business: How Science Plays Things Too Safe

https://qspace.fqxi.org/articles/284/risky-business-how-science-plays-things-too-safe
1•mathgenius•30m ago•0 comments

I compared the top embedded COSE+CBOR libraries so you dont have to

https://aidangarske.github.io/wolfCOSE/blog/wolfcose-vs-the-field/
1•aidangarske•35m ago•0 comments