propose Instructions For Program
suspend fun proposeInstructionsForProgram(demoCandidates: Map<String, List<List<Demonstration>>>?, numCandidates: Int, previousInstructions: Map<String, List<Pair<String, Double>>> = emptyMap(), parallelism: Int = 1): Map<String, List<String>>
Generates instruction candidates for all modules.
Return
Map from the module name to a list of candidate instruction strings.
Parameters
demo Candidates
Map from the module name to a list of candidate demo sets.
num Candidates
Number of instruction candidates per module.
previous Instructions
Previous instructions with scores for history context.
parallelism
Maximum concurrent proposals per module.