AxACEOptimizedProgram
Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/dsp/optimizers/ace.ts#L71
Optimized program artifact that persists ACE playbook updates.
Extends
Type Parameters
Type Parameter | Default type |
---|---|
OUT | any |
Constructors
Constructor
new AxACEOptimizedProgram<OUT>(config: object): AxACEOptimizedProgram<OUT>;
Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/dsp/optimizers/ace.ts#L78
Parameters
Parameter | Type |
---|---|
config | { artifact : AxACEOptimizationArtifact ; baseInstruction? : string ; bestScore : number ; configurationHistory? : Record <string , unknown >[]; converged : boolean ; demos? : AxProgramDemos <any , OUT >[]; examples? : AxExample []; instruction? : string ; modelConfig? : { [key : string ]: unknown ; frequencyPenalty? : number ; maxTokens? : number ; presencePenalty? : number ; stop? : string | string []; temperature? : number ; topK? : number ; topP? : number ; }; optimizationTime : number ; optimizerType : string ; playbook : AxACEPlaybook ; scoreHistory? : number []; stats : AxOptimizationStats ; totalRounds : number ; } |
config.artifact | AxACEOptimizationArtifact |
config.baseInstruction? | string |
config.bestScore | number |
config.configurationHistory? | Record <string , unknown >[] |
config.converged | boolean |
config.demos? | AxProgramDemos <any , OUT >[] |
config.examples? | AxExample [] |
config.instruction? | string |
config.modelConfig? | { [key : string ]: unknown ; frequencyPenalty? : number ; maxTokens? : number ; presencePenalty? : number ; stop? : string | string []; temperature? : number ; topK? : number ; topP? : number ; } |
config.modelConfig.frequencyPenalty? | number |
config.modelConfig.maxTokens? | number |
config.modelConfig.presencePenalty? | number |
config.modelConfig.stop? | string | string [] |
config.modelConfig.temperature? | number |
config.modelConfig.topK? | number |
config.modelConfig.topP? | number |
config.optimizationTime | number |
config.optimizerType | string |
config.playbook | AxACEPlaybook |
config.scoreHistory? | number [] |
config.stats | AxOptimizationStats |
config.totalRounds | number |
Returns
AxACEOptimizedProgram
<OUT
>
Overrides
AxOptimizedProgramImpl
.constructor
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
artifact | readonly | AxACEOptimizationArtifact | - |
bestScore | readonly | number | AxOptimizedProgramImpl .bestScore |
configurationHistory? | readonly | Record <string , unknown >[] | AxOptimizedProgramImpl .configurationHistory |
converged | readonly | boolean | AxOptimizedProgramImpl .converged |
demos? | readonly | AxProgramDemos <any , OUT >[] | AxOptimizedProgramImpl .demos |
examples? | readonly | AxExample [] | AxOptimizedProgramImpl .examples |
instruction? | readonly | string | AxOptimizedProgramImpl .instruction |
modelConfig? | readonly | object | AxOptimizedProgramImpl .modelConfig |
modelConfig.frequencyPenalty? | public | number | - |
modelConfig.maxTokens? | public | number | - |
modelConfig.presencePenalty? | public | number | - |
modelConfig.stop? | public | string | string [] | - |
modelConfig.temperature? | public | number | - |
modelConfig.topK? | public | number | - |
modelConfig.topP? | public | number | - |
optimizationTime | readonly | number | AxOptimizedProgramImpl .optimizationTime |
optimizerType | readonly | string | AxOptimizedProgramImpl .optimizerType |
playbook | readonly | AxACEPlaybook | - |
scoreHistory? | readonly | number [] | AxOptimizedProgramImpl .scoreHistory |
stats | readonly | AxOptimizationStats | AxOptimizedProgramImpl .stats |
totalRounds | readonly | number | AxOptimizedProgramImpl .totalRounds |
Methods
applyTo()
applyTo<IN, T>(program: AxGen<IN, T>): void;
Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/dsp/optimizers/ace.ts#L115
Type Parameters
Type Parameter |
---|
IN |
T extends AxGenOut |
Parameters
Parameter | Type |
---|---|
program | AxGen <IN , T > |
Returns
void