QuestionQ78

VerifiedEvaluation and Monitoring

A Generative AI Engineer is choosing between LSH (Locality Sensitive Hashing) and HNSW (Hierarchical Navigable Small World) to index a vector database. Semantic accuracy is their highest priority.

Which method should the Generative AI Engineer use to evaluate these two techniques?

Explanation

Cosine similarity measures the angular closeness of query and returned embedding vectors, making it suitable for comparing the semantic relevance delivered by LSH and HNSW. BLEU, ROUGE, and Levenshtein distance measure text overlap or character-level differences rather than embedding-space semantic similarity.

Community Discussion

No comments yet. Be the first to start the discussion!