QuestionQ44

VerifiedDesign Applications

A Generative AI Engineer is building an LLM system that retrieves news articles from the year 1918 that are relevant to a user's query, then summarizes them. The engineer has observed that the summaries are well generated, but they frequently also contain an undesired explanation of how the summary was produced.

Which change could the Generative AI Engineer make to mitigate this issue?

Explanation

Few-shot prompt examples demonstrate the exact desired response format and style, so they can steer the LLM to return only a summary rather than additional explanation. Clear system or user instructions can also define the required output format. Google Cloud documentation describes few-shot examples as request-response pairs that demonstrate the desired output format and style.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!