AxDefaultResultReranker
Class: AxDefaultResultReranker
Extends
Constructors
new AxDefaultResultReranker()
new AxDefaultResultReranker(
options
?):AxDefaultResultReranker
Parameters
• options?: Readonly
<AxGenOptions
>
Returns
Overrides
Defined in
Properties
demos?
protected
optional
demos:Record
<string
,AxFieldValue
>[]
Inherited from
Defined in
examples?
protected
optional
examples:Record
<string
,AxFieldValue
>[]
Inherited from
Defined in
sigHash
protected
sigHash:string
Inherited from
Defined in
signature
protected
signature:AxSignature
Inherited from
Defined in
trace?
protected
optional
trace:Record
<string
,AxFieldValue
>
Inherited from
Defined in
usage
protected
usage:AxTokenUsage
&object
[] =[]
Inherited from
Defined in
Methods
addAssert()
addAssert(
fn
,message
?,optional
?):void
Parameters
• fn
• message?: string
• optional?: boolean
Returns
void
Inherited from
Defined in
addStreamingAssert()
addStreamingAssert(
fieldName
,fn
,message
?,optional
?):void
Parameters
• fieldName: string
• fn
• message?: string
• optional?: boolean
Returns
void
Inherited from
Defined in
forward()
forward(
ai
,input
,options
?):Promise
<AxRerankerOut
>
Parameters
• ai: Readonly
<AxAIService
>
• input: Readonly
<AxRerankerIn
>
• options?: Readonly
<AxProgramForwardOptions
>
Returns
Promise
<AxRerankerOut
>
Overrides
Defined in
getSignature()
getSignature():
AxSignature
Returns
Inherited from
Defined in
getTraces()
getTraces():
AxProgramTrace
[]
Returns
Inherited from
Defined in
getUsage()
getUsage():
AxTokenUsage
&object
[]
Returns
AxTokenUsage
& object
[]
Inherited from
Defined in
register()
register(
prog
):void
Parameters
• prog: Readonly
<AxTunable
& AxUsable
>
Returns
void
Inherited from
Defined in
resetUsage()
resetUsage():
void
Returns
void
Inherited from
Defined in
setDemos()
setDemos(
demos
):void
Parameters
• demos: readonly AxProgramDemos
[]
Returns
void
Inherited from
Defined in
setExamples()
setExamples(
examples
):void
Parameters
• examples: Readonly
<AxProgramExamples
>
Returns
void
Inherited from
Defined in
setId()
setId(
id
):void
Parameters
• id: string
Returns
void
Inherited from
Defined in
setParentId()
setParentId(
parentId
):void
Parameters
• parentId: string
Returns
void