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!

GPTBot is the most blocked crawler among websites that get organic traffic

https://sitestatsdb.com/explore/blocked-bots
1•keywordian•1m ago•0 comments

Steam Summer Sale Simulator

https://steamsalesimulator.com/
1•evo_9•1m ago•0 comments

EU to delay pre-authorised travel system after border chaos

https://www.ft.com/content/de332c29-8270-44d8-b535-aabc42692f03
1•JumpCrisscross•2m ago•0 comments

Why Gen Z is falling in love with film photography

https://theconversation.com/why-gen-z-is-falling-in-love-with-film-photography-282454
2•0in•5m ago•0 comments

Odin 1.0 Announcement

https://www.youtube.com/watch?v=dLPAqXi9In0
2•jhack•5m ago•0 comments

Loan – Stashfin

https://play.google.com/store/apps/details?id=com.stashfin.android&hl=en
1•Chirag12boss•13m ago•0 comments

Jet Engine on a Tractor: AI's Big Productivity Trap

https://www.uptimelabs.io/articles/jet-engine-on-a-tractor-ais-big-productivity-trap
1•aravindputrevu•15m ago•0 comments

Hayabusa2 captures images of asteroid Torifune

https://global.jaxa.jp/press/2026/07/20260706-3_j.html
1•pinewurst•16m ago•0 comments

How Prompt Tuning Improved GPT-5.5 in VS Code

https://code.visualstudio.com/blogs/2026/07/06/optimizing-vscode-coding-harness-model-providers
1•PieUser•16m ago•0 comments

Show HN: Slidown – Markdown to PowerPoint in pure Go, no AI in generation

https://github.com/Songmu/slidown
1•Songmu•16m ago•0 comments

Parents are blaming Snapchat for their teens' fentanyl deaths (2025)

https://www.latimes.com/business/story/2025-03-05/snap-lawsuit-fentanyl-death-teens
1•1vuio0pswjnm7•18m ago•0 comments

Show HN: Brunelly AI Native Platform v26.06

https://brunelly.com/
1•RihabAI•20m ago•0 comments

China built a 40-story tower that stores wind power by stacking concrete

https://boingboing.net/2026/07/06/post-china-built-a-40-story-tower-that-stores-wind-powe.html
2•eric_h•29m ago•0 comments

Supreme Court won't block Texas enforcing age verification law for app downloads

https://apnews.com/article/texas-age-mobile-app-verification-law-supreme-court-362137cccb26fc5f5d...
2•1vuio0pswjnm7•29m ago•1 comments

How Europe would fight without America

https://www.ft.com/content/ffd323d9-8a8c-4b67-ae0d-208c8f994ece
1•JumpCrisscross•32m ago•0 comments

Ask HN: Where do you hire interns for startups?

1•guptadeepak•33m ago•0 comments

Section 139(8A) of Income Tax Act: Guide, Rules and Benefits – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/section-139-8a-of-income-tax-act.aspx
1•saumyaraut11•34m ago•0 comments

Xbox 'OG' Adventures

https://mamoniem.com/xbox-og-adventures/
1•davikr•35m ago•0 comments

"The Borgias" vs. "Borgia: Faith and Fear" (accuracy in historical fiction)

https://www.exurbe.com/the-borgias-vs-borgia-faith-and-fear/
2•walterbell•45m ago•0 comments

The Consciousness Atlas: Visualizing the Landscape of Consciousness

https://www.consciousnessatlas.com/
2•lucasrufkahr•49m ago•0 comments

The Socialist Temptation of Sam Altman

https://www.wsj.com/opinion/openai-government-sam-altman-donald-trump-ai-5b2676a2
2•thm•51m ago•0 comments

Show HN: Conquer the Top Leagues 38-0 Games

https://38-0.one/
1•cksmct•52m ago•1 comments

Researchers Reveal the Power of 'Quantum Proofs'

https://www.quantamagazine.org/researchers-reveal-the-power-of-quantum-proofs-20260706/
2•pseudolus•53m ago•0 comments

Too ugly, too noisy, too American? France's great air con debate

https://www.cnn.com/2026/07/07/europe/france-heatwave-air-con-politics-intl
1•rawgabbit•57m ago•1 comments

Summary: Analytic Idealism in a Nutshell by Bernardo Kastrup

https://www.chestergrant.com/summary-analytic-idealism-in-a-nutshell-by-bernardo-kastrup
1•chegra•57m ago•0 comments

MSE – Why am I finding the Catalan numbers in these "Snowball Numbers"?

https://math.stackexchange.com/questions/5142872/why-am-i-finding-the-catalan-numbers-in-these-sn...
1•philipfweiss•58m ago•0 comments

12.4M US business registrations are free on state open-data portals

https://gist.github.com/BhackerJ/22a35fead8764782189c7a20c5ded0d7
1•chonghaoju•58m ago•1 comments

Are Humanoid Robots Ready to Be Deployed?

https://www.newyorker.com/magazine/2026/07/06/are-humanoid-robots-ready-to-be-deployed
1•tuxguy•1h ago•1 comments

Show HN: Disclosure Lookup – a Caido plugin that finds where to report a vuln

https://github.com/disclose/caido-lookup
2•caseyjohnellis•1h ago•0 comments

There's a Global Network of Fungi Under Your Feet This Is the First Complete Map

https://www.wired.com/story/theres-a-global-network-of-fungi-under-your-feet-this-is-the-first-co...
1•Jimmc414•1h ago•4 comments