Let’s Get Certified
Module 06 / 21 · Foundation model integration, data management and compliance

Find the passage that supports an answer

Choose a chunk, embedding and ranking strategy using reference questions.

Find the passage that supports an answer

Work through the decision

A technician searches for fault E-710 and finds a general overview. A second query uses a symptom description and misses a bulletin with a different vocabulary. Which experiment can help both?

Check your reasoning

Keep a labeled set with both query types. Compare exact and semantic retrieval, combine their candidates, then rerank and measure whether the supporting bulletin enters the top results. Change chunk boundaries if the code and remedy live in separate passages.

Watch the source lesson at 1:47:48

Compare the choices

Chunk by coherent boundaries
Keep related conditions and exceptions together. Use structure-aware boundaries and measure the effect of overlap on recall and duplication.
Use compatible embeddings
Use the same compatible representation for indexing and querying. A model change can require re-embedding the corpus and rebuilding the vector index.
Combine lexical and semantic search
Merge keyword and vector candidates and rerank against the query. Exact part numbers and paraphrases reward different retrieval signals.
Decompose a compound request
Retrieve evidence for each subquestion, then combine results under a common contract carrying text, source IDs and scores.

Check the top three

For a known bulletin, vector retrieval puts it fourth, lexical retrieval second and a merged reranker first. At k=3 the latter two hit. Try a symptom-only paraphrase before deciding that lexical search alone is sufficient.

Apply it on AWS

With Bedrock Knowledge Bases, inspect retrieval output before calling the generator. Compare supported hybrid search against vector search for a catalog with exact part codes. A reranker can reorder the candidate set, but cannot select a document that retrieval never returned.

Practice the guide skills

  1. Compare fixed-size and section-aware chunks on a paragraph whose exception crosses a boundary. Check recall and context cost. Watch 1:47:48
  2. Match embedding modality and model version for both stored documents and queries. Plan a full reindex before switching incompatible encoders. Watch 1:52:15
  3. Choose a search backend with the right distance metric, metadata filters and capacity. Validate against known nearest neighbors. Watch 1:26:25
  4. Combine keyword and vector candidates, rerank a small candidate set and compare recall at k with the baseline. Watch 1:56:07
  5. Split a two-part question into retrieval requests. Preserve filters and combine evidence from both before drafting. Watch 2:02:24
  6. Return normalized passages, stable source IDs, scores and versions through one retrieval contract so multiple models receive comparable evidence. Watch 2:03:49

Official objectives for this lesson

Related lesson · Design retrieval, generation and authorized actions

Knowledge check

Find the passage that supports an answer quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Find the passage that supports an answer