AWS Certified AI Practitioner (AIF-C01) — Question 53
A company wants to use large language models (LLMs) with Amazon Bedrock to develop a chat interface for the company's product manuals. The manuals are stored as PDF files.
Which solution meets these requirements MOST cost-effectively?
Answer options
- A. Use prompt engineering to add one PDF file as context to the user prompt when the prompt is submitted to Amazon Bedrock.
- B. Use prompt engineering to add all the PDF files as context to the user prompt when the prompt is submitted to Amazon Bedrock.
- C. Use all the PDF documents to fine-tune a model with Amazon Bedrock. Use the fine-tuned model to process user prompts.
- D. Upload PDF documents to an Amazon Bedrock knowledge base. Use the knowledge base to provide context when users submit prompts to Amazon Bedrock.
Correct answer: D
Explanation
The correct answer is D because uploading the PDF documents to an Amazon Bedrock knowledge base allows for efficient retrieval of relevant context without the need for costly model fine-tuning or processing of all documents at once. Options A and B are less effective as they only utilize context from a limited number of documents, and option C involves more expensive fine-tuning processes that are not necessary for the task.