[KongchangAI]
ConceptCosine Similarity / cosine similarity

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

Timeline (last 90 days)

Oct 20

Entailment relations are inherently directional and fine-grained, making them better suited to concept-level alignment judgments than global measures such as cosine similarity.

Unverified50%
Oct 20

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.

Unverified50%
Oct 19

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.

Unverified50%
Oct 19

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.

Unverified50%
Oct 18

In 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.

Unverified50%
Oct 18

ItemCF's cosine similarity formula is sim(i,j) = C[i][j] / sqrt(N[i] * N[j]), and the denominator normalization naturally downweights popular items.

Unverified50%
Oct 17

Vectors are normalized when building the index, so that cosine similarity at runtime reduces to a single dot product.

Unverified50%
Oct 17

Vector search maps queries and documents into dense vectors in a high-dimensional space, measuring semantic closeness via cosine similarity or dot product.

Unverified50%
Oct 17

On unit vectors, the squared L2 distance ranks identically to cosine similarity, because |a - b|² = 2 - 2·cos(a, b).

Unverified50%
Oct 16

At retrieval time, the user's question is likewise encoded into a vector, and the system uses measures such as cosine similarity to find the top-K chunks closest to the question vector.

Unverified50%

30 more timeline events

All Facts (20)

Verified

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%
Verified

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.

65%
Verified

Cosine similarity only cares about vector direction and not length, with values strictly falling in the range [-1, 1].

65%
Verified

When feature vectors are L2-normalized, cosine similarity is equivalent to the dot product operation.

65%
Verified

Text 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%
Unverified

Cosine similarity measures the cosine of the angle between two vectors, with the formula cos(θ) = (A · B) / (||A|| × ||B||).

60%
Unverified

Entailment relations are inherently directional and fine-grained, making them better suited to concept-level alignment judgments than global measures such as cosine similarity.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

In 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%
Unverified

ItemCF'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%
Unverified

Vectors are normalized when building the index, so that cosine similarity at runtime reduces to a single dot product.

50%
Unverified

Vector search maps queries and documents into dense vectors in a high-dimensional space, measuring semantic closeness via cosine similarity or dot product.

50%
Unverified

On unit vectors, the squared L2 distance ranks identically to cosine similarity, because |a - b|² = 2 - 2·cos(a, b).

50%
Unverified

At retrieval time, the user's question is likewise encoded into a vector, and the system uses measures such as cosine similarity to find the top-K chunks closest to the question vector.

50%
Unverified

In the experiments, the average cosine similarity between old facts and their replacements is 0.816, versus a corpus baseline of 0.372, with one pair reaching 1.000; after removing metadata filtering, the stale version becomes the nearest neighbor in 6 of 9 cases, with a median rank of 1.

50%
Unverified

Cosine similarity measures how close two vectors are in direction, with a value range of -1 to 1; the closer the value is to 1, the more similar the semantics, and because it is insensitive to vector magnitude and stable to compute, it has become the most mainstream choice in RAG scenarios.

50%
Unverified

Embedding models are deep neural networks that map text into a fixed-dimensional dense vector space (such as 768 dimensions or 1536 dimensions); cosine similarity is commonly used to measure semantic closeness, with a value range from -1 to 1.

50%

Source Articles