This is a autopost bolg frinds we are trying to all latest sports,news,all new update provide for you
Friday, May 23, 2025
Show HN: Advanced Chunking in JavaScript/TypeScript with Chonkie https://ift.tt/labBS0s
Show HN: Advanced Chunking in JavaScript/TypeScript with Chonkie Hi HN, We’re Shreyash and Bhavnick. We built Chonkie, an open-source library for advanced chunking and embedding of text and code. It was previously Python-only, but we just released a TypeScript version: https://ift.tt/2fhaCnQ Many AI projects in JS/TS (like those using Vercel's AI SDK or Mastra) rely on basic text splitters. But better chunking = better retrieval = better performance. That’s what Chonkie is built for. Current native chunkers (in TS): - Code Chunker – handles Python, TypeScript, etc. - Recursive Chunker – rule-based, hierarchical splitting - Token Chunker – split by token count (fully customizable) - Sentence Chunker – split on sentence boundaries. Delimiters are customizable, so it works for multiple languages. All chunkers support custom tokenizers, chunk overlap, delimiters, and more. Coming soon in native TS (already available via the API client): - Semantic Chunker – splits texts wherever it detects a shift in meaning. - SDPM Chunker – merges semantically similar disjoint chunks - Late Chunker – generates context-aware embeddings for each chunk - Slumber Chunker – LLM-refined recursive chunks. Significantly reduces token usage (and thus cost) while maximizing chunk quality. - Embeddings Refinery - Embed chunks with any embedding model - Overlap Refinery – Create overlaps between consecutive chunks for better context preservation. Chonkie is free, open-source, and MIT licensed. GitHub: https://ift.tt/2fhaCnQ We’d love your feedback, ideas, or contributions. Thanks! May 24, 2025 at 01:33AM
Subscribe to:
Post Comments (Atom)
Show HN: Tablr – Supabase with AI Features https://ift.tt/ltABMro
Show HN: Tablr – Supabase with AI Features https://www.tablr.dev/ June 30, 2025 at 04:35AM
-
Show HN: Locksmith – detect locks taken by Postgres migrations https://ift.tt/0cBueJt February 10, 2025 at 02:26AM
-
Show HN: I built a FOSS tool to run your Steam games in the Cloud I wanted to play my Steam games but my aging PC couldn’t keep up, so I bui...
-
Show HN: TNX API – Natural Language Interactions with Your Database Hey HN! I built TNX API to make working with databases as simple as aski...
No comments:
Post a Comment