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!

Public to Private Equity in the United States: A Long-Term Look

https://www.morganstanley.com/content/dam/im/assets/publication/thought-leadership/consilient-obs...
1•sebg•54s ago•0 comments

No–AI Agents Did Not Build Secret Civilizations Stop Anthropomorphizing Malware

https://internetofbugs.substack.com/p/noai-agents-did-not-build-secret
2•apex_sloth•5m ago•0 comments

Show HN: OpenPlan – 2D CAD for floor plans, in the browser

https://openplan.am/
1•netcrash•8m ago•0 comments

Show HN: Profound Academy – an agentic course builder for hands-on courses

https://profound.academy
1•mirakyanmartin•11m ago•0 comments

LZ Sees Surprising Result in Search for Dark Matter

https://www.energy.gov/science/articles/lz-sees-surprising-result-search-dark-matter
1•divbzero•13m ago•0 comments

Corporate Data Privacy UAE: Why On-Device AI Is the Real Moat for Dubai Startups

https://www.a1ho.com/2026/08/corporate-data-privacy-uae-why-on.html
1•alfotesr•14m ago•0 comments

ChatGPT, Grok Added to War Department's AI System Options

https://www.war.gov/News/News-Stories/Article/Article/4588244/chatgpt-grok-added-to-war-departmen...
1•geox•15m ago•0 comments

With education technology, engagement is not the same as learning

https://phys.org/news/2026-09-technology-engagement.html
1•mdp2021•16m ago•0 comments

My Little Hill

https://didierpironi.bearblog.dev/my-little-hill/
1•beeboopbeep•17m ago•0 comments

Syria, eyeing role as Middle East hub, offers options to bypass Hormuz

https://www.washingtonpost.com/world/2026/09/02/syria-eyeing-role-middle-east-hub-offers-options-...
2•divbzero•18m ago•0 comments

Show HN: Mitmcloak – mirror the client's TLS/H2/H3 fingerprint in mitmproxy

https://github.com/sardanioss/mitmcloak
1•sardanios•18m ago•0 comments

John Ternus Is Now Apple CEO

https://www.macrumors.com/2026/09/01/john-ternus-first-memo/
1•signa11•19m ago•0 comments

Trees use a "muscle", tension wood, to correct their posture

https://phys.org/news/2026-09-trees-muscle-posture-newly-role.html
1•mdp2021•21m ago•0 comments

From Rg to Zg: Local Search Beyond Keywords

https://zvec.org/en/blog/2026-08-28-zvec-grep-open-source/
2•fang2hou•23m ago•0 comments

Statutory Copyleft

https://www.thomas-huehn.com/statutory-copyleft/
2•Tomte•25m ago•0 comments

Tech Pilgrims Flock to China

https://www.reuters.com/world/china/tech-pilgrims-flock-china-global-innovation-race-heats-up-202...
3•TechTechTech•26m ago•0 comments

Brave for Desktop Outperforms Other Browsers in Speed and Performance

https://brave.com/blog/brave-outperforms-other-browsers/
3•crbelaus•27m ago•0 comments

Germany on track for strongest GDP growth since 2022

https://www.ft.com/content/6b396499-d71d-4e8f-b2a4-66318b1d9426
3•mertbio•28m ago•1 comments

Outdoor displays fail in places you don't expect

https://duobond-display.com/news/display-interfaces-system-integration/532.html
2•Todorov•30m ago•0 comments

Hackers Don't Break in Anymore, They Log In

https://redmondmag.com/articles/2026/03/10/hackers-dont-break-in-anymore.aspx
3•janandonly•31m ago•0 comments

Show HN: Shri-io – a privacy-first, self-hosted URL shortener

https://github.com/barats/shrl-io
3•baratsemet•31m ago•0 comments

AI and the collapse of the intelligence-based hierarchy of merit

https://mattbruenig.com/2026/08/31/more-thoughts-on-ai/
3•rzk•36m ago•0 comments

Do you code in silence or do you listen to music?

https://textlog.cc/post/1078
3•stagas•37m ago•0 comments

Reticulum Is Not a Democracy

3•supernihil•40m ago•0 comments

Code Review Is Dead?

https://gioorgi.com/2026/code-review-dead/
2•daitangio•40m ago•1 comments

False Completion Is the Real Failure Mode of Coding Agents

https://medium.com/@giladha/false-completion-is-the-real-failure-mode-of-coding-agents-744be5a8c9c4
2•giladha•42m ago•0 comments

Apple Speech vs. Whisper: How Good Is Apple's New SpeechAnalyzer?

https://whispernotes.app/blog/apple-speech-vs-whisper
1•mazzystar•42m ago•0 comments

AI agents carried out every step of this ransomware attack – then left

https://www.theregister.com/security/2026/09/02/ai-agents-carried-out-every-step-of-this-ransomwa...
2•sbulaev•44m ago•0 comments

Why Ilya Sutskever's $32B SSI Valuation Highlights a Fatal Epistemic Vacuum

https://zenodo.org/records/22162749
1•AaRubinstein_CA•45m ago•0 comments

Three schoolgirls in Kinsale pulled up a pea plant covered in warts

https://scienceblog.com/b-three-schoolgirls-in-kinsale-pulled-up-a-pea-plant-covered-in-warts-and...
3•DamonHD•46m ago•1 comments