Question 1
Topic: Understand Vector Fundamentals
Skill tested: Select a vector distance metric that matches embedding normalization and ranking requirements.
A legal-document search service stores 768-dimensional embeddings produced by a model that L2-normalizes every output vector. The application must rank passages by angular similarity, and the team wants to use Oracle's vector distance operations consistently in both exact queries and later indexed queries. The table column is declared as VECTOR(768, FLOAT32), and the application should not transform stored embeddings at query time. Which distance metric best matches the model and ranking requirement?
COSINE distance compares the direction of vectors, which aligns with angular similarity and is commonly appropriate for normalized embeddings. Since every output is L2-normalized, cosine-based ranking also corresponds to the model's intended directional comparison. EUCLIDEAN can yield equivalent rankings for unit-normalized vectors in many settings, but it does not express the stated angular metric as directly. HAMMING is intended for binary-vector comparison, and MANHATTAN is not required by the FLOAT32 storage format.