0
0
Prompt Engineering / GenAIml~5 mins

Similarity search and retrieval in Prompt Engineering / GenAI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is similarity search in machine learning?
Similarity search is a method to find items that are most alike a given item, based on some measure of closeness or resemblance.
Click to reveal answer
beginner
Name a common way to measure similarity between two data points.
Cosine similarity is a common measure that calculates the angle between two vectors to determine how similar they are.
Click to reveal answer
beginner
Why is vector representation important in similarity search?
Vector representation converts data into numbers so computers can measure similarity using math, like distances or angles between vectors.
Click to reveal answer
intermediate
What is the role of an index in similarity search and retrieval?
An index organizes data vectors so the system can quickly find the most similar items without checking every single one.
Click to reveal answer
intermediate
Explain the difference between exact and approximate similarity search.
Exact search finds the perfect closest matches but can be slow for big data. Approximate search finds close matches faster but might miss the very best ones.
Click to reveal answer
Which similarity measure calculates the angle between two vectors?
AManhattan distance
BEuclidean distance
CJaccard index
DCosine similarity
What is the main purpose of an index in similarity search?
ATo train machine learning models
BTo store raw data
CTo speed up finding similar items
DTo visualize data
Which of these is a drawback of exact similarity search?
AIt cannot handle vectors
BIt can be slow on large datasets
CIt uses approximate results
DIt is inaccurate
Vector representation is important because:
AIt allows mathematical comparison of data
BIt stores data as text
CIt removes the need for similarity measures
DIt visualizes data
Which similarity measure is best for comparing sets of items?
AJaccard index
BCosine similarity
CEuclidean distance
DPearson correlation
Describe how similarity search works and why it is useful in real life.
Think about how online stores suggest products you might like.
You got /4 concepts.
    Explain the difference between exact and approximate similarity search and when you might use each.
    Consider searching a huge photo collection quickly.
    You got /3 concepts.