Embeddings
Creating and using embeddings for retrieval.
Articles in Embeddings
- Re-Embedding Migrations: How to Change Embedding Models Safely — Vectors from different embedding models cannot be compared, so switching models means re-embedding everything. Here is a migration plan with versioned storage, backfill, evaluation before cutover, a rollback path and a cost estimate.
- Multilingual RAG: Cross-Language Retrieval and Answers — Your documents are in one language and your users write in another, or both are mixed. This guide compares multilingual embeddings with translation, shows how to evaluate each language separately, and how to control the answer language.
- Query Rewriting, Multi-Query and HyDE: Better Retrieval for RAG — Users ask short, vague or context-dependent questions that embed poorly. Rewriting the query before retrieval can help a lot or make things worse. Here is when to use each technique, what it costs, and how to measure the difference.
- Chunking Strategies for RAG: How to Split Documents So Retrieval Actually Works — When a RAG system answers badly, the cause is often the step tutorials mention in one line: how the documents were cut into chunks. This guide compares the main strategies, handles tables, code and PDFs, and shows how to test chunking with evidence.
- Semantic Caching for AI Automation: Cutting Redundant LLM Calls Without Losing Freshness — Most AI automations re-ask the model questions it has already, functionally, answered before. Semantic caching AI automation pipelines catches the near-duplicates prompt caching misses — but only if you tune the similarity threshold instead of guessing at it.
- n8n Vector Store Nodes: Building a RAG Pipeline Without Leaving n8n — n8n's LangChain-based nodes cover the full RAG loop -- document loading, chunking, embedding, and storage in a vector index -- as native nodes, which means a basic retrieval-augmented generation pipeline can be built entirely inside n8n without a separate application layer.
- Gemini Embeddings with a Vector Database: Building a RAG Pipeline End-to-End — The Embedding API guide covers generating vectors. This one covers the rest of a real RAG pipeline: storing those vectors in pgvector, indexing them, and querying them -- including the dimension limit that catches most first attempts.
- Gemini Embedding Task Types and Output Dimensionality Explained — The same text embedded for search versus for classification should not produce identical vectors. task_type and output_dimensionality are how the Gemini Embedding API lets you tune for the job -- most integrations never touch either.
- Gemini Embedding API Guide: Semantic Search and RAG with gemini-embedding-001 — Two embedding models, two very different capability sets: gemini-embedding-001 for text-only retrieval with task_type control, and gemini-embedding-2 for multimodal embeddings across text, image, audio, video, and PDF.
- Why Pure Vector Search Fails on Part Numbers and IDs (and How Hybrid Search Fixes It) — A customer searches for their exact SKU and your RAG system returns three semantically similar but wrong products. Hybrid search is the fix.
- Why Your RAG Chatbot Retrieves the Wrong Chunks (And How to Fix Your Chunking Strategy) — Most bad RAG answers trace back to one decision made months earlier: how you split documents into chunks. Here's how to diagnose retrieval failures and fix your chunking strategy.
- Embeddings API Integration: Semantic Search, Deduplication, and Clustering Beyond RAG — Every RAG pipeline uses embeddings, but embeddings are useful for a lot more than feeding an LLM context. Deduplication, clustering, recommendations, and anomaly detection all run on the same underlying API call.