Vector Search Demonstration

What is Vector Search?

Vector Search (also called semantic search) represents text as numerical vectors in a multi-dimensional space. Similar documents are positioned close to each other in this space.

Key Concepts:

Formula for Cosine Similarity:

similarity = (A · B) / (||A|| × ||B||)

Where A · B is the dot product and ||A|| is the magnitude (length) of vector A.

Interactive Demo

Query

Documents

2D Visualization

Note: Vectors are projected to 2D using the first two principal components for visualization.