1Z0-1127-25 Prompt Engineering Practice Question
A developer is using the Cohere Command model via OCI Generative AI and wants to ground responses in a specific uploaded document. Which syntax should be used in the preamble to enable document-grounded generation?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use the preamble field with '<doc>document text</doc>'
Cohere's document-grounded generation uses a special preamble format that includes document references. The correct syntax is to enclose document text in <doc> tags within the preamble.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set a system message with 'DOCUMENT: ...'
Why it's wrong here
System message is not the correct mechanism; Cohere uses preamble with <doc> tags.
- ✗
Include the document in the user message with 'Document: ...'
Why it's wrong here
Simply including 'Document:' in the user message does not trigger document grounding.
- ✗
Pass the document as a separate parameter named 'context'
Why it's wrong here
There is no separate 'context' parameter in Cohere's API for document grounding.
- ✓
Use the preamble field with '<doc>document text</doc>'
Why this is correct
Cohere's API expects the document to be embedded in the preamble using <doc> tags for grounded generation.
Go deeper
Related to this question
About these practice questions
This 1Z0-1127-25 question is part of Courseiva's 768-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-1127-25 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-1127-25 exam.