Lesson 2 of LLMOps for AI Agents, in sixteen slides: multimodal, speech, image, video and embedding models, with products of each and the hardware they need; then cosine similarity, semantic search, the HNSW index, and the vector databases from a library to a managed service, with the memory they take.
The slides
The tool is lesson 2 of
LLMOps for AI Agents, in sixteen slides:
- Models beyond text, and search by meaning: a search by words misses the runbook that a search by meaning finds.
- Types of models:
- Other types of models: seven types, each with what it accepts and what it produces.
- Multimodal LLMs: images, voice and video beside the text: a screenshot of a dashboard and a question about it.
- Speech models: voice to text, and text to voice: Whisper, Amazon Transcribe, Amazon Polly, and a voice assistant made of three models.
- Image and video generation models: a description turned into a picture and a clip, and diffusion's steps.
- The infrastructure each type of model needs: hosted products, an open-weight model and its hardware, for each type.
- Semantic search:
- Embedding models: meaning as a semantic vector: three texts and a picture as points.
- Embedding models in use today: their dimensions, sizes and prices.
- Cosine similarity: how near two meanings are: two similarities computed.
- Semantic search: the nearest documents to a question: a search by words beside a search by meaning.
- Exact search: compare the question with every vector: the multiplications counted.
- An index for vectors: HNSW: a search walking down the layers of a graph.
- A vector database: rows of vectors and metadata, and a query with a filter.
- Vector databases, from light to heavy: FAISS, Chroma, pgvector, Qdrant, Milvus, Pinecone.
- The memory a vector index takes: a million vectors at four lengths and three precisions.
- Semantic search for the on-call assistant: why pgvector is enough for the team's runbooks.
The buttons on the left and right edges move between slides. So do the arrow keys and a swipe.
The lab
- The vectors on the similarity and search slides, the points of the HNSW graph, and the runbook counts are made up for
the drawings.
- The similarities, the multiplications, the search path and every memory size are computed by the slides.
Sources
- Speech:
Whisper,
Amazon Transcribe,
Amazon Polly,
Piper,
Kokoro.
- Images and video:
Stable Diffusion XL,
FLUX.1,
Wan 2.1,
the source of the four-minute clip.
- Embedding models: OpenAI's
embeddings guide,
Amazon Titan Text Embeddings,
all-MiniLM-L6-v2,
nomic-embed-text,
BGE-M3.
- HNSW: Malkov and Yashunin,
Efficient and robust approximate nearest neighbor search using Hierarchical
Navigable Small World graphs (2016).
- Vector search:
FAISS,
Chroma,
pgvector,
Qdrant,
Milvus,
Pinecone,
Amazon S3 Vectors.