Skip to content

AxDefaultResultReranker

Class: AxDefaultResultReranker

Extends

Constructors

new AxDefaultResultReranker()

new AxDefaultResultReranker(options?): AxDefaultResultReranker

Parameters

options?: Readonly<AxGenOptions>

Returns

AxDefaultResultReranker

Overrides

AxGen.constructor

Defined in

src/ax/docs/reranker.ts:15

Properties

demos?

protected optional demos: Record<string, AxFieldValue>[]

Inherited from

AxGen.demos

Defined in

src/ax/dsp/program.ts:91


examples?

protected optional examples: Record<string, AxFieldValue>[]

Inherited from

AxGen.examples

Defined in

src/ax/dsp/program.ts:90


sigHash

protected sigHash: string

Inherited from

AxGen.sigHash

Defined in

src/ax/dsp/program.ts:88


signature

protected signature: AxSignature

Inherited from

AxGen.signature

Defined in

src/ax/dsp/program.ts:87


trace?

protected optional trace: Record<string, AxFieldValue>

Inherited from

AxGen.trace

Defined in

src/ax/dsp/program.ts:92


usage

protected usage: AxTokenUsage & object[] = []

Inherited from

AxGen.usage

Defined in

src/ax/dsp/program.ts:93

Methods

addAssert()

addAssert(fn, message?, optional?): void

Parameters

fn

message?: string

optional?: boolean

Returns

void

Inherited from

AxGen.addAssert

Defined in

src/ax/dsp/generate.ts:134


addStreamingAssert()

addStreamingAssert(fieldName, fn, message?, optional?): void

Parameters

fieldName: string

fn

message?: string

optional?: boolean

Returns

void

Inherited from

AxGen.addStreamingAssert

Defined in

src/ax/dsp/generate.ts:142


forward()

forward(ai, input, options?): Promise<AxRerankerOut>

Parameters

ai: Readonly<AxAIService>

input: Readonly<AxRerankerIn>

options?: Readonly<AxProgramForwardOptions>

Returns

Promise<AxRerankerOut>

Overrides

AxGen.forward

Defined in

src/ax/docs/reranker.ts:22


getSignature()

getSignature(): AxSignature

Returns

AxSignature

Inherited from

AxGen.getSignature

Defined in

src/ax/dsp/program.ts:112


getTraces()

getTraces(): AxProgramTrace[]

Returns

AxProgramTrace[]

Inherited from

AxGen.getTraces

Defined in

src/ax/dsp/program.ts:188


getUsage()

getUsage(): AxTokenUsage & object[]

Returns

AxTokenUsage & object[]

Inherited from

AxGen.getUsage

Defined in

src/ax/dsp/program.ts:202


register()

register(prog): void

Parameters

prog: Readonly<AxTunable & AxUsable>

Returns

void

Inherited from

AxGen.register

Defined in

src/ax/dsp/program.ts:116


resetUsage()

resetUsage(): void

Returns

void

Inherited from

AxGen.resetUsage

Defined in

src/ax/dsp/program.ts:212


setDemos()

setDemos(demos): void

Parameters

demos: readonly AxProgramDemos[]

Returns

void

Inherited from

AxGen.setDemos

Defined in

src/ax/dsp/program.ts:219


setExamples()

setExamples(examples): void

Parameters

examples: Readonly<AxProgramExamples>

Returns

void

Inherited from

AxGen.setExamples

Defined in

src/ax/dsp/program.ts:147


setId()

setId(id): void

Parameters

id: string

Returns

void

Inherited from

AxGen.setId

Defined in

src/ax/dsp/program.ts:134


setParentId()

setParentId(parentId): void

Parameters

parentId: string

Returns

void

Inherited from

AxGen.setParentId

Defined in

src/ax/dsp/program.ts:141