You are asked to fetch the top five vectors nearest to a query vector, but only for a specific category of documents. Which query structure should you use?
To fetch the top five nearest vectors for a specific category, combine relational filtering (e.g., WHERE category = 'X') with similarity search (C) (e.g., VECTOR_DISTANCE with ORDER BY and FETCH FIRST 5 ROWS). UNION ALL (A) is for combining result sets, not filtering. Omitting WHERE (B) ignores the category constraint. VECTOR_INDEX_HINT (D) influences index usage, not filtering, and skipping WHERE misses the requirement. Oracle's vector search examples use WHERE clauses with similarity functions for such tasks.
Matthew
6 hours agoFrank
1 days agoWillard
2 days agoFidelia
2 days agoCherri
5 days agoShaun
5 days agoWillow
6 days agoJudy
12 days agoMalcom
14 days ago