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表示语义越相似
Cosine 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.
Timeline (last 90 days)
The embedding model concatenates a tool's name, function description, parameter descriptions, and so on, and maps them into a fixed-dimensional vector; when a task arrives, the cosine similarity between the task vector and each tool vector can be computed to rank and recall.
Vector retrieval commonly uses cosine similarity to compute the angle between vectors; the smaller the angle, the more relevant.
Similarity scores (such as cosine similarity) measure semantic relevance, but they do not mean that the fragment can answer the query.
The similarity measure is changed from cosine similarity to Total Variation similarity to suit probability distribution comparison on the simplex.
Cosine similarity measures semantic closeness, not factual entailment; treating cosine similarity as a guarantee of factuality is a category error.
Cosine 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.
Entailment relations are inherently directional and fine-grained, making them better suited to concept-level alignment judgments than global measures such as cosine similarity.
A RAG system first splits documents and converts them into vector embeddings, then retrieves via measures such as cosine similarity; similarity measures semantic closeness, not factual correctness.
After projecting three competitor copy samples into 1536-dimensional space using text-embedding-3-large, cosine similarity typically falls between 0.91 and 0.94.
Contrastive activation probing uses cosine similarity to measure the directional deviation of intermediate-layer activations between the base model and the fine-tuned model under the same probe prompts, with lower similarity indicating greater drift.
36 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%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%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%UnverifiedCosine similarity measures the cosine of the angle between two vectors, with the formula cos(θ) = (A · B) / (||A|| × ||B||).
60%UnverifiedThe embedding model concatenates a tool's name, function description, parameter descriptions, and so on, and maps them into a fixed-dimensional vector; when a task arrives, the cosine similarity between the task vector and each tool vector can be computed to rank and recall.
50%UnverifiedVector retrieval commonly uses cosine similarity to compute the angle between vectors; the smaller the angle, the more relevant.
50%UnverifiedSimilarity scores (such as cosine similarity) measure semantic relevance, but they do not mean that the fragment can answer the query.
50%UnverifiedThe similarity measure is changed from cosine similarity to Total Variation similarity to suit probability distribution comparison on the simplex.
50%UnverifiedCosine similarity measures semantic closeness, not factual entailment; treating cosine similarity as a guarantee of factuality is a category error.
50%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.
50%UnverifiedEntailment relations are inherently directional and fine-grained, making them better suited to concept-level alignment judgments than global measures such as cosine similarity.
50%UnverifiedA RAG system first splits documents and converts them into vector embeddings, then retrieves via measures such as cosine similarity; similarity measures semantic closeness, not factual correctness.
50%UnverifiedAfter projecting three competitor copy samples into 1536-dimensional space using text-embedding-3-large, cosine similarity typically falls between 0.91 and 0.94.
50%UnverifiedContrastive activation probing uses cosine similarity to measure the directional deviation of intermediate-layer activations between the base model and the fine-tuned model under the same probe prompts, with lower similarity indicating greater drift.
50%UnverifiedIn the Little Kiln Support Copilot tests, relevant historical cases scored above 0.63 in cosine similarity and noise cases below 0.58, so the author raised the retrieval threshold from 0.5 to 0.6.
50%UnverifiedItemCF's cosine similarity formula is sim(i,j) = C[i][j] / sqrt(N[i] * N[j]), and the denominator normalization naturally downweights popular items.
50%UnverifiedVectors are normalized when building the index, so that cosine similarity at runtime reduces to a single dot product.
50%