AxGEPAAdapter
Defined in: https://github.com/ax-llm/ax/blob/be56d0cb4027af0a3a23d397cd01a57261e362d4/src/ax/dsp/optimizers/gepaAdapter.ts#L7
Type Parameters
Type Parameter | Default type |
---|
Datum | any |
Traj | any |
Out | any |
Properties
Property | Type |
---|
propose_new_texts? | (candidate : Readonly <Record <string , string >>, reflectiveDataset : Readonly <Record <string , any []>>, componentsToUpdate : readonly string []) => | Record <string , string > | Promise <Record <string , string >> |
Methods
evaluate()
evaluate(
batch: readonly Datum[],
candidate: Readonly<Record<string, string>>,
captureTraces?: boolean):
| AxGEPAEvaluationBatch<Traj, Out>
| Promise<AxGEPAEvaluationBatch<Traj, Out>>;
Defined in: https://github.com/ax-llm/ax/blob/be56d0cb4027af0a3a23d397cd01a57261e362d4/src/ax/dsp/optimizers/gepaAdapter.ts#L8
Parameters
Parameter | Type |
---|
batch | readonly Datum [] |
candidate | Readonly <Record <string , string >> |
captureTraces? | boolean |
Returns
| AxGEPAEvaluationBatch
<Traj
, Out
>
| Promise
<AxGEPAEvaluationBatch
<Traj
, Out
>>
make_reflective_dataset()
make_reflective_dataset(
candidate: Readonly<Record<string, string>>,
evalBatch: Readonly<AxGEPAEvaluationBatch<Traj, Out>>,
componentsToUpdate: readonly string[]): Record<string, any[]>;
Defined in: https://github.com/ax-llm/ax/blob/be56d0cb4027af0a3a23d397cd01a57261e362d4/src/ax/dsp/optimizers/gepaAdapter.ts#L16
Parameters
Parameter | Type |
---|
candidate | Readonly <Record <string , string >> |
evalBatch | Readonly <AxGEPAEvaluationBatch <Traj , Out >> |
componentsToUpdate | readonly string [] |
Returns
Record
<string
, any
[]>