@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / s3vectors / VectorIndexDistanceMetric
The distance metric to be used for similarity search
COSINE:
"cosine"
Measures the cosine of the angle between two vectors.
EUCLIDEAN:
"euclidean"
Measures the straight-line distance between two points in multi-dimensional space. Lower values indicate greater similarity.