Hacker News new | ask | show | jobs
by anoy8888 835 days ago
Is there an example on how to do this ?
1 comments

Contrived example, but say I'm summarizing an arbitrary document, I might ask for JSON with the following keys and instructions:

- purpose: one sentence on why would someone want to summarize this document

- effect: one sentence on how this affects the strategy we should use to summarize it vs a naive approach

- summary: one paragraph with the summary of the document based on purpose and effect

The LLM will change its summary based on the keys that come before summary in a meaningful way