bitter-house-91213
09/05/2025, 7:03 PMllama-text-embed-v2 model uses a split input type for writes (“passage”) and queries (“query”), which is rooted in a model training technique to optimize searching for longer text excerpts with shorter text queries. As such, for short text examples the vectors are not (approximately) equal which explains the cosine similarity much less than 1. Here’s a short video explanation from our team (https://www.youtube.com/shorts/pHuNzMZVtb8). For general similarity or semantic search use cases, searching with input_type: “query” should result in better overall performance.