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!

FuturePath – Sophisticated retirement planner with 50-state tax modeling

https://futurepath.essentialx.us/
1•maheshgattani•3m ago•0 comments

The Case Against Public Engineering Levels

https://i0exception.substack.com/p/the-case-against-public-levels
1•i0exception•4m ago•0 comments

The condition that causes people to get lost in their own home

https://www.rnz.co.nz/life/wellbeing/the-condition-that-causes-people-to-get-lost-in-their-own-home
3•billybuckwheat•4m ago•0 comments

Building an Intern

https://cra.mr/building-an-intern/
1•ghiculescu•4m ago•0 comments

Testers Wanted: Jam Pod – An iPod Classic Experience for Android

https://play.google.com/apps/internaltest/4701161138918790634
1•djampodev•6m ago•0 comments

Midjourney's Full Body Ultrasound [video]

https://www.youtube.com/watch?v=4nzzpUKhj1M
1•mikenew•6m ago•0 comments

"An AI Job Apocalypse?" – Goldman Sachs Report [pdf]

https://www.goldmansachs.com/static-libs/pdf-redirect/prod/index.html?path=/pdfs/insights/goldman...
1•aanet•8m ago•1 comments

Safety and efficacy of mRNA vaccines: mechanistic and public health perspective

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)00512-X/abstract
1•paulpauper•8m ago•0 comments

A Silent Auction

https://mirrlees-auction.nuff.ox.ac.uk/
1•paulpauper•9m ago•0 comments

Rent Control: The Ceiling Trap

https://mason.gmu.edu/~atabarro/RentControl/
1•paulpauper•9m ago•0 comments

Lean4Physics: Reasoning Framework for College Physics in Lean4

https://arxiv.org/abs/2510.26094
1•soupspaces•9m ago•0 comments

Artificial Adventures

https://www.scattered-thoughts.net/writing/artificial-adventures/
1•jeffreyrogers•10m ago•0 comments

Show HN: I made a tool that prevents websites from tracking you

https://github.com/alex-w-developer/GetBlocked
2•sudo_cowsay•14m ago•0 comments

Show HN: Document to Excel Converter

https://www.docupipe.ai/tools/pdf-to-excel
1•uri_merhav•15m ago•0 comments

An Ordinary Mind on an Ordinary Day

https://www.laphamsquarterly.org/roundtable/ordinary-mind-ordinary-day
1•tintinnabula•15m ago•0 comments

America Is Having MacBook Sticker Shock

https://www.theatlantic.com/technology/2026/07/apple-prices-macbook-memory-shortage/687781/
2•voxadam•22m ago•0 comments

Show HN: Autonomous Home Services Businesses

https://rainslice.ai
2•edgware674•23m ago•0 comments

Deep Agent Code Capabilities

https://docs.langchain.com/oss/python/deepagents/code/overview
1•kristianpaul•23m ago•0 comments

Startup sues Palo Alto Networks' Koi Security due to AI-hallucinated report

https://www.theregister.com/legal/2026/07/02/startup-sues-palo-alto-networks-koi-security-saying-...
3•dijksterhuis•23m ago•1 comments

GitHub is proud to announce that you can now obtain your public repo on CD-ROM

https://forms.cloud.microsoft/pages/responsepage.aspx?id=v4j5cvGGr0GRqy180BHbR6G-c11n8yFDlQmk4B-Q...
2•throwaway2027•24m ago•1 comments

An American Privacy Emergency

https://scottaaronson.blog/?p=9902
21•flowercalled•25m ago•0 comments

Fable 5's cyber safeguards and jailbreak framework

https://www.anthropic.com/news/fable-safeguards-jailbreak-framework
2•logickkk1•25m ago•0 comments

GLM-5.2: The Open-Source Chinese Model Challenging Claude at One-Fifth the Cost

https://mrkt30.com/glm-5-2-open-source-ai/
1•bmcdresson•30m ago•0 comments

Australians have more negative view of Israel than of China – Essential poll

https://www.theguardian.com/australia-news/2026/jul/03/australians-more-negative-view-of-israel-t...
2•aussieguy1234•30m ago•0 comments

Right to Local Intelligence

https://righttointelligence.org/
4•thoughtpeddler•32m ago•0 comments

Google must pay €4.1B fine for using Android to 'block' rivals

https://www.bbc.co.uk/news/articles/cvgj0pp5p62o
3•logickkk1•34m ago•0 comments

Hobbes – A Language and Embedded JIT Compiler

https://github.com/morganstanley/hobbes
1•ryan-ca•34m ago•0 comments

Using AI Agents with Databases

https://github.com/vaishcodescape/data-spear
1•vaishcodescape•34m ago•0 comments

Stealing 50 Years of Database Ideas for AI Agents

https://onewill.ai/blog/2026/stealing-50-years-of-database-ideas-for-ai-agents/
1•matt_d•36m ago•0 comments

Domino's Pizza parodies Sony's discontinuation of physical games

https://twitter.com/Dominos_UK/status/2072602429959340517
2•josephcsible•39m ago•0 comments