Task-specific embeddings represent documents and search queries differently when they serve different retrieval roles. Document vectors are optimized for indexing content, while query vectors are optimized for searching it. This asymmetric design can improve retrieval accuracy by 10% to 20% over generic embeddings used for both inputs. section 12.2.4
A production implementation should:
- Wrap the embedding provider behind a stable application interface so the provider can be replaced without changing retrieval code. section 12.2.4
- Configure document indexing with the RETRIEVAL_DOCUMENT task type and use the corresponding query task configuration for searches. section 12.2.4
- Process document chunks into floating-point vectors before constructing and persisting a FAISS index. section 12.2.4
