Cosine Similarity
A similarity measure that computes the cosine of the angle between two vectors, with values ranging from -1 to 1. It considers only the direction of vectors, not their magnitude, and is widely used in NLP text similarity computation and information retrieval.
Core Facts
Semantic search converts text into high-dimensional vectors and finds the most relevant conclusions by computing cosine similarity, allowing queries phrased in different ways to match semantically equivalent results.
余弦相似度是衡量两个向量方向接近程度的指标,值域在-1到1之间,越接近1表示语义越相似
Vector similarity computation typically uses cosine similarity, which measures the angle between vector directions rather than absolute distance and is insensitive to vector magnitude.
Timeline (last 90 days)
Vector geometry cannot accomplish the proposition verification task: cosine similarity saturates, and a sentence's embedding is not a linear combination of its individual proposition embeddings.
When judging whether a proposition belongs to a sentence, an NLI judge is a more reliable choice than cosine similarity.
Gradient alignment typically uses metrics such as cosine similarity to compute the consistency of the direction of two gradients.
Developers can quickly determine via cosine similarity whether an adapter comes from the target backbone, avoiding blind reuse.
The cosine score reliably identifies the source backbone and performs consistently across the evaluated tasks.
The study proposes two practical tools: backbone identification based on cosine similarity, and a registered-adapter reuse inner-product test that requires no coordinate alignment.
BRIDGE is a minimal RAG memory system consisting of chained observation notes, hybrid retrieval combining BM25 and cosine similarity, and chronological rendering, consuming about 5-7K reader prompt tokens per query and requiring only one LLM call per ingestion or query.
The dot product is defined as the sum of the products of the corresponding components of two vectors, and its geometric meaning is a·b = ||a|| ||b|| cosθ, where θ is the angle between the two vectors.
In recommender systems, taking the dot product or cosine similarity of a user vector and an item vector measures how close their interest directions are.
Cosine similarity is normalized as cosθ = (a·b)/(||a|| ||b||), retaining only directional information and ignoring magnitude.
40 more timeline events
All Facts (20)
Semantic search converts text into high-dimensional vectors and finds the most relevant conclusions by computing cosine similarity, allowing queries phrased in different ways to match semantically equivalent results.
80%Verified余弦相似度是衡量两个向量方向接近程度的指标,值域在-1到1之间,越接近1表示语义越相似
80%VerifiedVector similarity computation typically uses cosine similarity, which measures the angle between vector directions rather than absolute distance and is insensitive to vector magnitude.
80%VerifiedThe core of semantic search is vector embedding technology, which converts code snippets and natural language queries into high-dimensional vectors and calculates semantic distance using methods such as cosine similarity.
80%VerifiedCosine similarity has a value range of [-1, 1]; in semantic retrieval, attention is typically focused only on the positively correlated range of 0 to 1, with values closer to 1 indicating greater semantic similarity.
65%VerifiedCosine similarity only cares about vector direction and not length, with values strictly falling in the range [-1, 1].
65%VerifiedA cosine similarity value of 1 indicates completely identical directions (angle 0°), a value of 0 indicates orthogonality (angle 90°), and a value of -1 indicates completely opposite directions (angle 180°).
65%VerifiedCosine similarity is the default standard in the field of face recognition for measuring whether two feature vectors belong to the same person.
65%VerifiedWhen feature vectors are L2-normalized, cosine similarity is equivalent to the dot product operation.
65%VerifiedText is encoded by an Embedding model into floating-point vectors of 768 to 3072 dimensions, stored in a vector database, and similarity retrieval is completed at millisecond speed via approximate nearest neighbor algorithms (HNSW, IVF, etc.).
65%UnverifiedEvaluation metrics based on semantic similarity (such as cosine similarity) cannot capture differences at the level of behavioral constraints and have systematic blind spots.
70%UnverifiedRAG relies on cosine similarity between embedding vectors to recall fragments, but similarity only measures "how alike" things are, not "what relationship" they have.
60%UnverifiedCosine similarity measures the directional consistency of two vectors, has a range of [-1, 1], and is the foundation of tasks such as semantic search and clustering.
60%UnverifiedVectors are normalized when building the index, so that cosine similarity at runtime reduces to a single dot product.
60%UnverifiedIn RAG, documents are split into chunks, an embedding model converts each chunk into a high-dimensional vector, and the system finds the segments semantically closest to the user's query by computing similarity between vectors (such as cosine similarity).
60%UnverifiedCosine similarity measures closeness by computing the cosine of the angle between two vectors: 1 indicates perfect agreement, 0 indicates orthogonality, and -1 indicates complete opposition.
60%UnverifiedExact-match-based duplicate detection is difficult to cover semantic duplication scenarios, which can be addressed by introducing embedding cosine similarity to determine semantic duplicates.
60%UnverifiedCosine similarity measures the cosine of the angle between two vectors, with the formula cos(θ) = (A · B) / (||A|| × ||B||).
60%UnverifiedVector geometry cannot accomplish the proposition verification task: cosine similarity saturates, and a sentence's embedding is not a linear combination of its individual proposition embeddings.
50%UnverifiedWhen judging whether a proposition belongs to a sentence, an NLI judge is a more reliable choice than cosine similarity.
50%