Vector Search and Stores

Note: Just putting down few notes from AWS partner-cast session


Vector Search and Vector Stores #

How to measure similarity in embeddings? #

  • Cosine Similarity: Gives the angle between the 2 embeddings. Higher the angle, bigger is the difference between 2 embeddings.

  • Dot-Product: Same as cosine similarity but gives us the magnitude between 2 vectors instead of direction/angle.

Real-life Use cases: #

  • Semantic search

  • Recommendation System

  • Anomaly detection and pattern recognition

  • GenAI: RAG (Retrieval Augmented Generation)

RAG Implementation in AWS: #