Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
<div align="center">

<p align="center">
<b> Highly Performant and Modular - Inference, Ingestion, and Indexing in Rust 🦀</b>
<b> Highly Performant, Modular and Memory Safe</b>
<br />
<b> Ingestion, Inference and Indexing in Rust 🦀</b>
<br />
<a href="https://embed-anything.com/references/">Python docs »</a>
<br />
Expand Down
7 changes: 5 additions & 2 deletions docs/blog/posts/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ title: How to write textembedconfig for chunking

After presenting at Google, PyCon DE, Berlin Buzzwords, and GDG Berlin, I was surprised by how many people approached me with questions about writing configurations, chunk sizes, and batch sizes for EmbedAnything. Since I had never specifically covered this topic in my talks or blog posts, I decided to create this comprehensive guide to clarify these concepts and explain how we handle your chunking strategy with vector streaming.

<!-- more -->


## Understanding TextEmbedConfig

TextEmbedConfig consists of three essential components that work together to optimize your text embedding process:
Expand Down Expand Up @@ -84,8 +87,8 @@ Key benefits of late chunking:
### Chunk Size
The `chunk_size` parameter defines the maximum number of characters (or tokens, depending on the model) allowed in each chunk. Consider these factors when setting chunk size:

- **Smaller chunks (256-512)**: Better for precise retrieval, more granular search results
- **Larger chunks (1000-2000)**: Better for maintaining context, fewer total chunks to process
- **Smaller chunks**: Better for precise retrieval, more granular search results
- **Larger chunks**: Better for maintaining context, fewer total chunks to process
- **Model limitations**: Ensure chunk size doesn't exceed your embedding model's maximum input length

### Batch Size for Vector Streaming
Expand Down
Loading