A short conversational question lacks context and misses documents.
Build a complete search query from the conversation.
Choose two appropriate practices.
Rewrite the question into a self-contained query while preserving intent, permissions, and constraints, then validate the generated query.
Detailed explanation
Pronouns and omitted terms can be made searchable.
Pronouns and omitted terms can be made searchable.
A rewrite must not widen scope or change authorization.
A rewrite must not widen scope or change authorization.
Query rewriting cannot change access rights.
Query rewriting cannot change access rights.
Generated queries are untrusted data and need checks.
Generated queries are untrusted data and need checks.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01 Domain 3.2のRAG検索設計とプロンプトインジェクション対策を確認する。Expected result
検索用クエリ改善と、認可・意図の保持を両立する方法を説明できる。Key points
- Query rewrite
- Intent
- Permissions
Notes
- Environment: AWS公式AIF-C01試験ガイドとAWS公式ドキュメントの確認
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.