proposeInstructionsForProgram

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

demoCandidates

Map from the module name to a list of candidate demo sets.

numCandidates

Number of instruction candidates per module.

previousInstructions

Previous instructions with scores for history context.

parallelism

Maximum concurrent proposals per module.