In vector retrieval, distance metrics measure how close document-chunk vectors are to a query vector, helping FAISS find relevant chunks for RAG systems. section 12.2.4
FAISS supports L2, cosine, and inner-product metrics. Cosine similarity works well for most text applications because it focuses on semantic direction rather than magnitude. section 12.2.4









