Late Chunking in Long-Context Embedding Models
About a year ago, in October 2023, we released the world's first open-source embedding model with an 8K context length, jina-embeddings-v2-base-en. Since then, there has been quite some debate about the usefulness of long-context in embedding models. For many applications, encoding a document thousands of words long into a single embedding representation is not ideal. Many use cases require retrieving smaller portions of the text, and dense vector-based retrieval systems often perform better with smaller text segments, as the semantics are less likely to be "over-compressed" in the embedding vectors. Retrieval-Augmented Generation (RAG) is one of the most well-known applications that requires splitting documents into smaller text chunks (say within 512 tokens). These chunks are usually stored in a vector database, with vector representations generated by a text embedding model. During runtime, the same embedding model encodes a query into a vector representation, which is then used to
💡 Late Chunking is now available in jina-embeddings-v3 API. Recommended reading order: part I, part II , research paper . What Late Chunking Really Is & What It’s Not: Part II Part 2 of our exploration of Late Chunking, a deep dive into why it is the best method for chunk embeddings and improving search/RAG performance. New! Part II: deep dive into boundary cues and misconception. About a year ago, in October 2023, we released the world's first open-source embedding model with an 8K context length , jina-embeddings-v2-base-en . Since then, there has been quite some debate about the usefulness
Explore this link on the map →related reading
- Recursive Language Models | Alex L. Zhangalexzhang13.github.io
- Patterns for Building LLM-based Systems & Productseugeneyan.com
- Generalizing an LLM from 8k to 1M Context using Qwen-Agent | Qwenqwenlm.github.io
- Long-Context Retrieval Models with Monarch Mixer · Hazy Researchhazyresearch.stanford.edu
- Vinija's Notes • NLP • Retrieval Augmented Generationvinija.ai
- Extending Context is Hard | kaiokendevkaiokendev.github.io
- Embeddings: What they are and why they mattersimonwillison.net
- LangChain ParentDocumentRetriever: Strike a Balance between large vs small chunks | ClusteredBytesclusteredbytes.pages.dev
- Aman's AI Journal • Primers • Retrieval Augmented Generationaman.ai
- Advanced Retriever Techniques to Improve Your RAGs | Towards Data Sciencetowardsdatascience.com
- Vector embeddings | OpenAI APIdevelopers.openai.com
- Better RAG 1: Basicsolickel.com