VectorSearchAlgorithmMetric Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The similarity metric to use for vector comparisons. It is recommended to choose the same similarity metric as the embedding model was trained on.
public readonly struct VectorSearchAlgorithmMetric : IEquatable<Azure.Search.Documents.Indexes.Models.VectorSearchAlgorithmMetric>
type VectorSearchAlgorithmMetric = struct
Public Structure VectorSearchAlgorithmMetric
Implements IEquatable(Of VectorSearchAlgorithmMetric)
- Inheritance
-
VectorSearchAlgorithmMetric
- Implements
Constructors
VectorSearchAlgorithmMetric(String) |
Initializes a new instance of VectorSearchAlgorithmMetric. |
Properties
Cosine |
Measures the angle between vectors to quantify their similarity, disregarding magnitude. The smaller the angle, the closer the similarity. |
DotProduct |
Calculates the sum of element-wise products to gauge alignment and magnitude similarity. The larger and more positive, the closer the similarity. |
Euclidean |
Computes the straight-line distance between vectors in a multi-dimensional space. The smaller the distance, the closer the similarity. |
Hamming |
Only applicable to bit-packed binary data types. Determines dissimilarity by counting differing positions in binary vectors. The fewer differences, the closer the similarity. |
Methods
Equals(VectorSearchAlgorithmMetric) |
Indicates whether the current object is equal to another object of the same type. |
ToString() |
Returns the fully qualified type name of this instance. |
Operators
Equality(VectorSearchAlgorithmMetric, VectorSearchAlgorithmMetric) |
Determines if two VectorSearchAlgorithmMetric values are the same. |
Implicit(String to VectorSearchAlgorithmMetric) |
Converts a string to a VectorSearchAlgorithmMetric. |
Inequality(VectorSearchAlgorithmMetric, VectorSearchAlgorithmMetric) |
Determines if two VectorSearchAlgorithmMetric values are not the same. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기