MLA-C02

Introduction to Text Preparation, Embeddings and Vector Databases

Tokenization and text pre-processing, domain-specific augmentation, embedding models for text and images, and configuring scalable vector databases.

  • 5 lessons
  • Module quiz

Generative AI and search applications work with meaning rather than exact words. They represent text and images as embeddings, vectors of numbers in which similar content produces nearby vectors, and they store and search those vectors in vector databases.

This module covers the path from raw text to searchable vectors: tokenisation and text pre-processing; augmentation of domain-specific text; embedding models on Amazon Bedrock, such as Titan Text Embeddings V2, with 1,024, 512 or 256 dimensions; and the vector stores available on AWS, including Amazon OpenSearch Service, Aurora and RDS PostgreSQL with pgvector, Amazon S3 Vectors and Neptune Analytics, with the index types that make them fast.

What the exam expects

Questions test the rule that documents and queries must use the same embedding model and dimensions, choosing a vector store by query rate, hybrid search needs, SQL joins and cost, and the trade-off between HNSW indexes, with high recall and more memory, and IVF indexes, with less memory.

How this module is organised

Pre-processing and Tokenizing Text explains how text is prepared. Augmenting Text for Specialist Domains explains how to add training examples. Generating Embeddings for Text and Images explains embeddings and their configuration. Choosing a Vector Database on AWS and Configuring Vector Indexes for Recall, Latency and Cost explain vector stores and their tuning.

  1. Pre-processing and Tokenizing Text Lesson 1
  2. Augmenting Text for Specialist Domains Lesson 2
  3. Generating Embeddings for Text and Images Lesson 3
  4. Choosing a Vector Database on AWS Lesson 4
  5. Configuring Vector Indexes for Recall, Latency and Cost Lesson 5
  6. Practise and review
  7. Checkpoint Practice activities across the module
  8. Test your knowledge 4 questions