Hi Jader! I’m Adam and I work on the embedding mod...
# 🧶︱general
b
Hi Jader! I’m Adam and I work on the embedding models hosted within Pinecone. The
llama-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.