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!

Show HN: Skim any YouTube video. be happy

https://chromewebstore.google.com/detail/skim-get-to-the-point-fre/eenbaojdcmnbdlhkmambidocigepdobm
1•betterhealth12•1m ago•0 comments

Atari Robot Demo by Boz [video]

https://www.youtube.com/watch?v=cAKIhNi2v_Q
1•dp-hackernews•2m ago•0 comments

Ask HN: Which game's online mode is the best "3rd space" to find co-founders?

1•JumpinJack_Cash•6m ago•0 comments

Do Transformers Need Three Projections? Systematic Study of QKV Variants

https://arxiv.org/abs/2606.04032
7•Anon84•8m ago•0 comments

Migrating Sidekiq Background Jobs to Temporal in Ruby on Rails (2025)

https://release.com/blog/temporal-vs-sidekiq
1•mooreds•8m ago•0 comments

Metadata in Malloy: Annotations and Tags (2025)

https://docs.malloydata.dev/blog/2025-06-16-annotations-and-tags/
1•mooreds•10m ago•0 comments

How MCP Is Changing the Way Product Teams Work with AI

https://bagel.ai/blog/how-mcp-is-changing-how-product-teams-work-with-ai/
1•mooreds•11m ago•0 comments

Man-Computer Symbiosis J. C. R. Licklider (1960)

https://groups.csail.mit.edu/medg/people/psz/Licklider.html
2•rballpug•12m ago•0 comments

How to Stop a Killer Asteroid

https://thereader.mitpress.mit.edu/how-to-stop-a-killer-asteroid/
3•EA-3167•16m ago•0 comments

How big tobacco helped shape the design of ultra-processed foods

https://www.ucsf.edu/news/2026/06/432011/how-big-tobacco-helped-shape-design-ultra-processed-foods
1•hhs•18m ago•0 comments

Latent Agents: A Post-Training Procedure for Internalized Multi-Agent Debate

https://arxiv.org/abs/2604.24881
2•PaulHoule•18m ago•0 comments

Valve says it's ready to launch the Steam Machine this summer

https://www.theverge.com/games/943657/valve-steam-machine-frame-summer-launch-verified
1•droidjj•21m ago•0 comments

Introducing Boron Buckyballs: Theory that B80 cages can’t be made is disproved

https://cen.acs.org/materials/nanomaterials/buckyballs-boron-buckminster-fullerene-nanomaterials/...
2•crescit_eundo•21m ago•1 comments

Shouting in the Datacenter (2008) [video]

https://www.youtube.com/watch?v=tDacjrSCeq4
1•st_goliath•23m ago•0 comments

RIP Tech Interviews, Oxy Will Not Miss You

https://sageox.ai/blog/rip-tech-interviews
1•skadamat•23m ago•1 comments

White House will dump $700M of public funds into costly, unreliable coal again

https://electrek.co/2026/06/04/white-house-will-dump-700m-of-public-funds-into-costly-unreliable-...
2•Bender•23m ago•0 comments

Google releases fitbit air specs

https://support.google.com/googlehealth/thread/438625393/unleash-your-creativity-and-style-we%E2%...
1•subroutine•23m ago•0 comments

Flutter: macOS Malvertising Campaign Spreads New FlutterShell Backdoor

https://unit42.paloaltonetworks.com/flutterbridge-new-fluttershell-backdoor/
1•brazukadev•24m ago•0 comments

1ShotGen – Turn rough ideas into one-shot prompts for AI coding agents

https://1shotgen.com/
2•zachisparanoid•25m ago•0 comments

The rise of digital advertising and its economic implications (2024)

https://www.stlouisfed.org/on-the-economy/2024/oct/rise-digital-advertising-economic-implications
1•hhs•25m ago•0 comments

SpaceX IPO

https://spacexipo.com/
2•0xedb•29m ago•1 comments

The thorny question of work-life balance in European startups

https://www.ft.com/content/d8be5090-8b2f-46ce-a108-675d70b7ba8b
2•rustoo•30m ago•0 comments

Using Safetensors with Flax

https://www.gilesthomas.com/2026/06/flax-and-safetensors
1•gpjt•30m ago•0 comments

SpaceX, Other Mega IPOs Denied Fast Index Entry by S&P

https://www.bloomberg.com/news/articles/2026-06-04/s-p-dow-jones-keeps-megacap-ipo-rules-as-is-af...
7•tristanj•32m ago•2 comments

AI model predicts building fire spread, redirecting evacuees to safer exits

https://techxplore.com/news/2026-06-ai-redirecting-evacuees-safer-exits.html
1•lschueller•32m ago•0 comments

Shell, Awk, and Make Should Be Combined

https://www.oilshell.org/blog/2016/11/13.html
2•Chris2048•35m ago•0 comments

You want to build a Recommender System

https://knhash.in/recommender-system-in-prod/
2•kn81198•35m ago•0 comments

US Mint Steve Jobs coin sells out in just 11 minutes

https://appleinsider.com/articles/26/05/12/commemorative-us-mint-steve-jobs-coin-sells-out-in-jus...
4•ohjeez•36m ago•2 comments

Jujutsu v0.42.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.42.0
1•itskokeh•39m ago•1 comments

The skeptic's guide to humanoid robots going viral on the Internet

https://arstechnica.com/ai/2026/06/the-skeptics-guide-to-humanoid-robots-going-viral-on-the-inter...
1•dangle1•40m ago•0 comments