menu_book Course Curriculum (Generative AI) expand_more
Model Inputs
Generation Controls
Grounding & Retrieval
System and user messages
Learn System and user messages in Generative AI with a focused explanation, a topic-specific example, and a mastery check.
12 min read
•
Beginner
Advertisement
generative-ai-006.py
python
messages=[{'role':'system','content':'Return JSON only.'},{'role':'user','content':'Summarize order 42.'}]
print(messages)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content