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

Embedding Generation Pipelines

Turning data into vectors at scale.

The idea

Chunk documents, embed with a model, store with metadata, and re-embed when content changes.

Watch it work

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

Source docsChunkerEmbedding worke…QueueVector store
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

New and changed documents are detected.

step:
1/4
at:
Source docs
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Ingest documents
  2. 2Split into chunks
  3. 3Embed in batches
  4. 4Write to the vector store

Where it is used

RAG indexing.

Watch out for

Changing the embedding model requires re-embedding everything.

Related