RAG Inc. is designing a RAG pipeline and must choose an embedding model and similarity search configuration to use Amazon OpenSearch Service. (select TWO)
Choose an answer
Tap an option to check your answer.
Correct answer: Use a Bedrock embedding model such as text-embedding-3-large (high-dimensional dense embeddings), persist embedding vectors with the same dimensionality in an OpenSearch index using a dense_vector field, and configure the OpenSearch k-NN plugin with HNSW and cosine similarity for fast ANN retrieval., Host an embedding model (text-embedding-3-small or large) in Bedrock or SageMaker to generate vectors, and index them into OpenSearch with a dense_vector mapping and appropriate dimensionality; enable the k-NN plugin with cosine metric and tune ef_construction and ef_search for recall/latency trade-offs..
Why this is the answer
The two correct options describe best practices for building a RAG pipeline with Amazon OpenSearch Service. They both involve using a dedicated embedding model (like those from Bedrock or hosted on SageMaker) to generate dense, high-dimensional vectors, which are then stored in OpenSearch using a densevector field. The OpenSearch k-NN plugin, specifically with HNSW (Hierarchical Navigable Small Worlds) and cosine similarity, is crucial for efficient Approximate Nearest Neighbor (ANN) search, which is fundamental for RAG. Tuning efconstruction and efsearch allows for balancing recall and latency. The incorrect options are flawed because: Using Amazon Comprehend for sentiment analysis doesn't generate general-purpose embeddings suitable for semantic search. Term-based inverted indices are not designed for semantic similarity. Storing embeddings in DynamoDB and using GSI for cosine similarity is not an efficient or scalable approach for vector similarity search compared to specialized vector databases or k-NN plugins. Relying solely on term matching (BM25) in OpenSearch without vector embeddings will not achieve semantic similarity, which is a core requirement for RAG.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed