Skill 1.2.4

Design RAG architectures, including ingestion and retrieval strategies (for example, Amazon Bedrock knowledge bases that use vector stores).

Key Concepts

Ingestion splits documents into chunks, converts each chunk to a vector with an embeddings model and stores vectors with metadata in a vector store. Bedrock Knowledge Bases manages this pipeline from S3 and other connectors, with fixed-size, semantic or hierarchical chunking, optional parsing of tables and images, and incremental sync. Vector store options include Amazon OpenSearch Serverless, Aurora PostgreSQL with pgvector, Amazon S3 Vectors (lowest cost for large, less frequently queried vector sets) and OpenSearch Service managed clusters.

Retrieval embeds the question, finds the nearest chunks and passes them to the model. Hybrid search combines semantic and keyword matching, metadata filters restrict results (for example by department or document date, and to enforce which user may see which documents), reranking models reorder results by relevance, and query decomposition breaks complex questions into sub-queries. The Retrieve API returns chunks only; RetrieveAndGenerate also produces the answer with citations.