Readit News logoReadit News
snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
hweller · 3 months ago
Congratulations on the launch! would be awesome to see support for MongoDB Atlas as one of the vector stores and Voyage AI as an embedding provider if you are interested. I can imagine quite a few customers that would prefer a lightweight interface for chunking- lmk how I can help make that happen from the Mongo side!
snyy · 3 months ago
We're working on Mongo integrations!
snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
zackify · 3 months ago
You guys should steal the ideas I had in mind and partially implemented on https://github.com/zackify/revect

Similar to you I saw a lot of bloated projects out there. Mine is 90mb container.

I want to do what your project does but in addition have extensions for every day apps that index into a db.

Your private database for all ai interactions.

I also have a cloud version using the mcp auth spec, but it’s all for fun and probably not worth releasing.

Do you have any plans to do further use cases such as this?

snyy · 3 months ago
We want to be the platform that connects documents to AI for all applications. Consequently, we want to cover all use cases, including the ones you mentioned :)
snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
blef · 3 months ago
> - Code Chunking: Chunks code files by creating an AST and finding ideal split points.

I'd be interested to use it for SQL, did you try? Does it works well with it? I'm not familiar with the tree-sitter library

snyy · 3 months ago
Yes :) Code chunker is fantastic for SQL
snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
elpalek · 3 months ago
Do you have a benchmark for comparing different chunking methods? Your existing benchmark is to compare different libraries.
snyy · 3 months ago
We don't yet, but our library comes with a visualization tool that you can use to compare chunkers directly. https://docs.chonkie.ai/python-sdk/utils/visualizer
snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
olavfosse · 3 months ago
Very cool!

What's the story for chunking PDFs?

We've been using Marker and handling markdown->chunks manually.

snyy · 3 months ago
Pretty much what you described. Convert the PDF to Markdown, join content across pages so that its all one string, then chunk it. Our evals show this approach works best.
snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
mritchie712 · 3 months ago
We (https://www.definite.app/) have a use case I'd imagine is common for people building agents.

When a user works with our agent, they may end up with a large conversation thread (e.g. 200k+ tokens) with many SQL snippets, query results and database metadata (e.g. table and column info).

For example, if they ask "show me any companies that were heavily engaged at one point, but I haven't talked to in the last 90 days". This will pull in their schema (e.g. Hubspot), run a bunch of SQL, show them results, etc.

I want to allow the agent to search previous threads for answers so they don't need to have the conversation again, but chunking up the existing thread is non-trivial (e.g. you don't want to separate the question and answer, you may want to remove errors while retaining the correction, etc.).

Do you have any plans to support "auto chunking" for AI message[0] threads?

0 - e.g. https://platform.openai.com/docs/api-reference/messages/crea...

snyy · 3 months ago
> you may want to remove errors while retaining the correction

Double clicking on this, are these messages you’d want to drop from memory because they’re not part of the actual content (e.g. execution errors or warnings)? That kind of cleanup is something Chonkie can help with as a pre-processing step.

If you can share an example structure of your message threads, I can give more specific guidance. We've seen folks use Chonkie to chunk and embed AI chat threads — treating the resulting vector store as long-term memory. That way, you can RAG over past threads to recover context without redoing the conversation.

P.S. If HN isn’t ideal for going back and forth, feel free to send me an email at shreyash@chonkie.ai.

snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
amir_karbasi · 3 months ago
Looks great! I had looked at Chonkie a few months back, but didn't need it in our pipelines. I was just writing a POC for an agentic chunker this week to handle various formatting and chunking requirements. I'll give Chonkie a shot!
snyy · 3 months ago
Awesome! Keep us posted :)
snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
yawnxyz · 3 months ago
I'm curious if chunking is different for embeddings vs. for "agentic retrieval" e.g. an AI or a person operates like a Librarian; they look up in an index at what resources to look up, get the relevant bits, then piece them together into a cohesive narrative whole — would we do any chunking at all for this, or does this purely rely on the way the DB is setup? I think for certain use cases, even a single DB record could be too large for context windows, so maybe chunking might need to be done to the record? (e.g. a db of research papers)
snyy · 3 months ago
Great questions!

Chunking fundamentals remain the same whether you're doing traditional semantic search or agentic retrieval. The key difference lies in the retrieval strategy, not the chunking approach itself.

For quality agentic retrieval, you still need to create a knowledge base by chunking documents, generating embeddings, and storing them in a vector database. You can add organizational structure here—like creating separate collections for different document categories (Physics papers, Biology papers, etc.)—though the importance of this organization depends on the size and diversity of your source data.

The agent then operates exactly as you described: it queries the vector database, retrieves relevant chunks, and synthesizes them into a coherent response. The chunking strategy should still optimize for semantic coherence and appropriate context window usage.

Regarding your concern about large DB records: you're absolutely right. Even individual research papers often exceed context windows, so you'd still need to chunk them into smaller, semantically meaningful pieces (perhaps by section, abstract, methodology, etc.). The agent can then retrieve and combine multiple chunks from the same paper or across papers as needed.

The main advantage of agentic retrieval is that the agent can make multiple queries, refine its search strategy, and iteratively build context—but it still relies on well-chunked, embedded content in the underlying vector database.

snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
pj_mukh · 3 months ago
Super cool!

It looks like size and speed is your major advantage. In our RAG pipeline we run the chunking process async as an onboarding type process. Is Chonkie primarily for people looking to process documents in some sort of real-time scenario?

snyy · 3 months ago
In addition to size and speed we also offer the most variety of chunking strategies!

Typically, our current users fall into one of two categories:

- People who are running async chunking but need access to a strategy not supported in langchain/llamaIndex. Sometimes speed matters here too, especially if the user has a high volume of documents

- people who need real time chunking. Super useful for apps like codegen/code review tools.

snyy commented on Launch HN: Chonkie (YC X25) – Open-Source Library for Advanced Chunking    · Posted by u/snyy
elliot07 · 3 months ago
Chonkie is great software. Congrats on the launch! Has been a pleasure to use so far.
snyy · 3 months ago
Thank you :)

u/snyy

KarmaCake day91February 11, 2024View Original