Semantic Search

💡 Understanding Search and Semantic Search

Search is the fundamental process of retrieving data or documents based on user input.


2. Semantic Search: An Advanced Approach

Semantic Search is an advanced method that focuses on the meaning and intent behind the user’s query, moving beyond simple keywords.


3. Determining the Best Match: Cosine Similarity

The model determines the best match by calculating the Cosine Similarity Score between the query vector

Ranking the Results

The highest score (the one closest to +1.0) indicates the best match.

Corpus Similarity Score Interpretation Match Quality
C 0.65 Strong positive alignment. Best Match (Closest to 1.0)
A 0.25 Weak positive alignment. Low Similarity
B -0.25 Negative alignment. Dissimilar
D -0.787 Strong negative alignment. Furthest Match (Closest to -1.0)

The final ranking ensures that Corpus C is retrieved as the most relevant result, as its meaning is most closely aligned with the query’s intent.

Start searching

Enter keywords to search articles

↑↓
↵
ESC
⌘K Shortcut