Skip to content
StackDecode
System Design
19. AI System Design and LLM InfrastructureAnimated

Semantic Search Architecture

Search by meaning instead of keywords.

The idea

Queries and documents are embedded; nearest vectors are the results.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

QueryEmbedVector searchFilters + ranki…Results
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Embed the query into a meaning vector.

step:
1/4
at:
Query
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Embed the query
  2. 2Search vectors
  3. 3Rank results
  4. 4Return documents

Where it is used

Natural language search.

Watch out for

Exact terms such as codes are missed, so combine with keyword search.

Related