How to Rebuild an Embedding Index After Changing the Embedding Model
Rebuild your whole embedding index after changing the embedding model, because vectors from different models cannot be compared.
THE FIELD GUIDE
Understand model formats, context windows, quantization, embeddings, and sampling before choosing settings for a real task.
Rebuild your whole embedding index after changing the embedding model, because vectors from different models cannot be compared.
Spot a RAG answer that goes beyond its retrieved chunks by checking every claim against the chunks.
Filter RAG search results by document metadata, such as year or department, before ranking them by similarity.
Check the top-k chunks your retriever returns for a question before trusting the answer built on them.
Split Markdown documents on their headings for RAG so each chunk keeps one section together.
Use 256 to 512 token chunks for fact lookup and 512 to 1024 for analysis questions that need more context.
Chunk documents for RAG at 512 tokens with overlap so each chunk is focused but keeps its context.
Shorten embedding vectors to 512 dimensions with the dimensions parameter when a smaller index is worth a small quality trade.
Embed your notes once, embed the question the same way, and rank the notes by cosine similarity.
Choose text-embedding-3-small for high-volume retrieval and text-embedding-3-large when accuracy matters most.