Milvus(@milvusio)

๐—™๐—ผ๐—ฟ ๐—ฎ ๐—ฅ๐—”๐—š ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ, ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜ ๐—ผ๐—ฟ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜? The...

6.7ๅ†…ๅฎน่ดจ้‡
๐—™๐—ผ๐—ฟ ๐—ฎ ๐—ฅ๐—”๐—š ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ, ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜ ๐—ผ๐—ฟ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜?
The...

TL;DR ยท AI ๆ‘˜่ฆ

Milvus on X: "๐—™๐—ผ๐—ฟ ๐—ฎ ๐—ฅ๐—”๐—š ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ, ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜ ๐—ผ๐—ฟ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜? The standard RAG pipeline chunks documents before e...

ๆ ธๅฟƒ่ฆ็‚น

  • ไธป้ข˜่š็„ฆ๏ผš๐—™๐—ผ๐—ฟ ๐—ฎ ๐—ฅ๐—”๐—š ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ, ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜ ๐—ผ๐—ฟ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ
  • ๆฅๆบ๏ผšMilvus(@milvusio)๏ผŒๅปบ่ฎฎ็ป“ๅˆๅŽŸๆ–‡ๅˆคๆ–ญ็ป†่Š‚ใ€‚
  • AI ๅˆ†ๆžๆš‚ไธๅฏ็”จ๏ผŒๆœฌๆกไธบไฟๅบ•่ฏ„ๅˆ†ไธŽๆ‘˜่ฆใ€‚
#AI#็ผ–็จ‹#ๅŽ็ซฏ
ๆ‰“ๅผ€ๅŽŸๆ–‡

Milvus on X: "๐—™๐—ผ๐—ฟ ๐—ฎ ๐—ฅ๐—”๐—š ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ, ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜ ๐—ผ๐—ฟ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜? The standard RAG pipeline chunks documents before embedding them. ๐—” ๐—ฑ๐—ถ๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐˜ ๐—ฝ๐—ฎ๐˜๐˜๐—ฒ๐—ฟ๐—ป ๐—ถ๐˜€ ๐˜€๐˜๐—ฎ๐—ฟ๐˜๐—ถ๐—ป๐—ด ๐˜๐—ผ ๐˜€๐—ต๐—ผ๐˜„ ๐˜‚๐—ฝ: ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ ๐—ฎ๐—น๐—น ๐˜€๐—ฒ๐—ป๐˜๐—ฒ๐—ป๐—ฐ๐—ฒ๐˜€ https://t.co/1Nqv9TyaGN" / X

Milvus

@milvusio

๐—™๐—ผ๐—ฟ ๐—ฎ ๐—ฅ๐—”๐—š ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ, ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜ ๐—ผ๐—ฟ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜? The standard RAG pipeline chunks documents before embedding them. ๐—” ๐—ฑ๐—ถ๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐˜ ๐—ฝ๐—ฎ๐˜๐˜๐—ฒ๐—ฟ๐—ป ๐—ถ๐˜€ ๐˜€๐˜๐—ฎ๐—ฟ๐˜๐—ถ๐—ป๐—ด ๐˜๐—ผ ๐˜€๐—ต๐—ผ๐˜„ ๐˜‚๐—ฝ: ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ ๐—ฎ๐—น๐—น ๐˜€๐—ฒ๐—ป๐˜๐—ฒ๐—ป๐—ฐ๐—ฒ๐˜€ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜, ๐˜๐—ต๐—ฒ๐—ป ๐˜‚๐˜€๐—ฒ ๐˜๐—ต๐—ฒ๐—ถ๐—ฟ ๐˜€๐—ฒ๐—บ๐—ฎ๐—ป๐˜๐—ถ๐—ฐ ๐˜€๐—ถ๐—บ๐—ถ๐—น๐—ฎ๐—ฟ๐—ถ๐˜๐˜† ๐˜๐—ผ ๐—ฑ๐—ฒ๐—ฐ๐—ถ๐—ฑ๐—ฒ ๐˜„๐—ต๐—ฒ๐—ฟ๐—ฒ ๐˜๐—ผ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ. Max-Min Semantic Chunking is one example. ๐—ช๐—ต๐˜† ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜? Because the standard RAG pipeline chunks documents before embedding them, which means boundaries are usually drawn without embedding-based similarity signals. Embedding all sentences upfront gives the algorithm similarity data to work with, so boundaries can follow actual shifts in meaning. ๐—œ๐—ป ๐—บ๐—ฎ๐—ป๐˜† ๐—ฅ๐—”๐—š ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ๐˜€, ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ๐—ถ๐—ป๐—ด ๐—ต๐—ฎ๐—ฝ๐—ฝ๐—ฒ๐—ป๐˜€ ๐—ฏ๐—ฒ๐—ณ๐—ผ๐—ฟ๐—ฒ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ๐—ฑ๐—ถ๐—ป๐—ด, ๐—ฎ๐—ป๐—ฑ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ ๐—พ๐˜‚๐—ฎ๐—น๐—ถ๐˜๐˜† ๐˜€๐˜๐—ฟ๐—ผ๐—ป๐—ด๐—น๐˜† ๐—ฎ๐—ณ๐—ณ๐—ฒ๐—ฐ๐˜๐˜€ ๐—ฟ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น ๐—พ๐˜‚๐—ฎ๐—น๐—ถ๐˜๐˜†. The conventional sequence runs: chunk โ†’ embed โ†’ index in a vector database like Milvus โ†’ retrieve โ†’ generate. But at the chunking step, fixed-length and recursive splitting do not fully remove the tradeoff. Smaller chunks tend to improve precision but can lose context. Larger chunks preserve more context but can introduce noise. ๐— ๐—ฎ๐˜…-๐— ๐—ถ๐—ป ๐—ฆ๐—ฒ๐—บ๐—ฎ๐—ป๐˜๐—ถ๐—ฐ ๐—–๐—ต๐˜‚๐—ป๐—ธ๐—ถ๐—ป๐—ด ๐—ถ๐˜€ ๐—ผ๐—ป๐—ฒ ๐—บ๐—ฒ๐˜๐—ต๐—ผ๐—ฑ ๐—ด๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด ๐˜๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ผ๐—ป ๐˜„๐—ถ๐˜๐—ต ๐˜๐—ต๐—ฒ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ-๐—ณ๐—ถ๐—ฟ๐˜€๐˜ ๐—ฎ๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฎ๐—ฐ๐—ต. It treats chunking as a sequential clustering problem: walk through the document in order, decide at each sentence whether it joins the current chunk or starts a new one. ๐—ฆ๐—ฒ๐—ป๐˜๐—ฒ๐—ป๐—ฐ๐—ฒ๐˜€ ๐—บ๐˜‚๐˜€๐˜ ๐˜€๐˜๐—ฎ๐˜† ๐—ฐ๐—ผ๐—ป๐˜€๐—ฒ๐—ฐ๐˜‚๐˜๐—ถ๐˜ƒ๐—ฒ, ๐—ฎ๐—ป๐—ฑ ๐˜๐—ต๐—ฒ ๐—ฎ๐—น๐—ด๐—ผ๐—ฟ๐—ถ๐˜๐—ต๐—บ ๐—ป๐—ฒ๐˜ƒ๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—ฎ๐—ฟ๐—ฟ๐—ฎ๐—ป๐—ด๐—ฒ๐˜€ ๐˜๐—ฒ๐˜…๐˜. ๐—›๐—ฒ๐—ฟ๐—ฒ'๐˜€ ๐—ต๐—ผ๐˜„ ๐—ถ๐˜ ๐˜„๐—ผ๐—ฟ๐—ธ๐˜€, ๐˜€๐˜๐—ฒ๐—ฝ ๐—ฏ๐˜† ๐˜€๐˜๐—ฒ๐—ฝ: โ€ข ๐—˜๐—บ๐—ฏ๐—ฒ๐—ฑ ๐˜๐—ต๐—ฒ ๐˜€๐—ฒ๐—ป๐˜๐—ฒ๐—ป๐—ฐ๐—ฒ๐˜€ ๐—ณ๐—ถ๐—ฟ๐˜€๐˜: A text embedding model maps all sentences to high-dimensional space. Suppose the first nโˆ’k sentences have been assigned to the current chunk C. The decision now is whether sentence nโˆ’k+1 joins C or starts a new chunk. โ€ข ๐—–๐—ผ๐—บ๐—ฝ๐˜‚๐˜๐—ฒ ๐—บ๐—ถ๐—ป๐—ถ๐—บ๐˜‚๐—บ ๐˜€๐—ถ๐—บ๐—ถ๐—น๐—ฎ๐—ฟ๐—ถ๐˜๐˜† ๐˜„๐—ถ๐˜๐—ต๐—ถ๐—ป ๐˜๐—ต๐—ฒ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ: Calculate the minimum pairwise cosine similarity among all sentence vectors in C. This identifies the most semantically dissimilar pair, measuring how tightly the group holds together, and sets the bar for whether the new sentence belongs. โ€ข ๐—–๐—ผ๐—บ๐—ฝ๐˜‚๐˜๐—ฒ ๐—บ๐—ฎ๐˜…๐—ถ๐—บ๐˜‚๐—บ ๐˜€๐—ถ๐—บ๐—ถ๐—น๐—ฎ๐—ฟ๐—ถ๐˜๐˜† ๐˜๐—ผ ๐˜๐—ต๐—ฒ ๐—ป๐—ฒ๐˜„ ๐˜€๐—ฒ๐—ป๐˜๐—ฒ๐—ป๐—ฐ๐—ฒ: Calculate the maximum cosine similarity between the new sentence and every sentence in C. This captures the strongest connection the incoming sentence has to the existing group. โ€ข ๐—ง๐—ต๐—ฒ ๐—ฑ๐—ฒ๐—ฐ๐—ถ๐˜€๐—ถ๐—ผ๐—ป ๐—ฟ๐˜‚๐—น๐—ฒ: If the new sentence's strongest connection to the chunk beats the chunk's weakest internal link, it joins. Otherwise, a new chunk begins. โ€ข ๐—จ๐˜€๐—ฒ ๐˜€๐—ถ๐˜‡๐—ฒ ๐—น๐—ถ๐—บ๐—ถ๐˜๐˜€ ๐—ฎ๐—ป๐—ฑ ๐˜€๐—ถ๐—บ๐—ถ๐—น๐—ฎ๐—ฟ๐—ถ๐˜๐˜† ๐˜๐—ต๐—ฟ๐—ฒ๐˜€๐—ต๐—ผ๐—น๐—ฑ๐˜€ ๐˜๐—ผ ๐—ธ๐—ฒ๐—ฒ๐—ฝ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ๐˜€ ๐—ณ๐—ฟ๐—ผ๐—บ ๐—ด๐—ฟ๐—ผ๐˜„๐—ถ๐—ป๐—ด ๐˜๐—ผ๐—ผ ๐—น๐—ผ๐—ผ๐˜€๐—ฒ: To control intra-chunk coherence, dynamically adjust chunk size limits and similarity thresholds. โ€ข ๐—œ๐—ป๐—ถ๐˜๐—ถ๐—ฎ๐—น๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป: When the chunk has only one sentence, there's no internal minimum to compute. Compare the similarity between the first and second sentence against a preset threshold constant. Above it, they chunk together. Below it, they split. ๐— ๐—ฎ๐˜…-๐— ๐—ถ๐—ป ๐—ต๐—ฎ๐˜€ ๐—ถ๐˜๐˜€ ๐˜๐—ฟ๐—ฎ๐—ฑ๐—ฒ๐—ผ๐—ณ๐—ณ: because it clusters sequentially and locally, it can miss long-range context dependencies in long documents. Important information spread across distant sections may end up in separate chunks. Full walkthrough with code:

milvus.io/blog/embeddingโ€ฆ

3:30 PM ยท Jul 9, 2026

255

Views

1

2