|
|
|
|
|
by adamgordonbell
1054 days ago
|
|
This looks nice! I frequently am putting together complex chains of prompts and found microsoft guidance to be quite nice. Have you looked at it? It feels like the abstraction I'd like the most is some way to combine few shot prompting, voting and chain-of-thought. I have to create a prompt chain like this fairly often: write a description for this thing, given these previous input and outputs as examples (few shot). Do it N times with high randomness, maybe with expert personas, then review the solutions one by one with pros and cons (chain of thought) and then use all that to create a better description (final answer). Right now, I always have to write out and connect all the steps, but its fairly rote and I think other prompting chains have a similar repetitiveness to them. https://github.com/microsoft/guidance |
|
You might find this guide useful to your use case:
https://llmflows.readthedocs.io/en/latest/user_guide/Async%2...
It shows how you can connect multiple similar flowsteps to a previous flowstep and they will all run in parallel.