AxGEPAAdapter
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/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/d2df625e2c2fd70a090d6321c042579c2819f0d1/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/d2df625e2c2fd70a090d6321c042579c2819f0d1/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[]>