You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepare a list of insights. Show the insights in the list to LLM, so that it will not repeat itself.
Ask LLM for M times. For each time:
it will see the statements and previous insights.
it will generate a new insight based on the statements
it gives references to the statements that are related to the new insight. BUT how can we ensure that the selected statement indices are valid??
I can for sure call guidance multiple times to do this with proper string formatting, but can we do it in just one call of guidance with one prompt?
An example output would look like (suppose N=3, M=2):
Statement 0: statement.........
Statement 1: statement.........
Statement 2: statement.........
Given the above statements, give me 2 insights. Do not repeat insights and list references.
Insight 0: insight..............
References: [0, 1]
Insight 1: insight..............
References: [1, 2]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The problem setting is: I have N statements. I want LLM to generate M different insights based on these statements and to give references.
I read the README and it seems role-based-chat-model-example is the most relevant. And the tools we need include
geneach
,select
andeach
.My pseudocode would be like
This is easy, like
I can for sure call guidance multiple times to do this with proper string formatting, but can we do it in just one call of guidance with one prompt?
An example output would look like (suppose N=3, M=2):
Beta Was this translation helpful? Give feedback.
All reactions