AxRAG
Class: AxRAG
Extends
AxChainOfThought
<object
,object
>
Constructors
new AxRAG()
new AxRAG(
queryFn
,options
):AxRAG
Parameters
• queryFn
• options: Readonly
<AxGenOptions
& object
>
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
AxChainOfThought
.addStreamingAssert
Defined in
forward()
forward(
ai
,__namedParameters
,options
?):Promise
<object
>
Parameters
• ai: Readonly
<AxAIService
>
• __namedParameters: Readonly
<object
>
• options?: Readonly
<AxProgramForwardOptions
>
Returns
Promise
<object
>
answer
answer:
string
reason
reason:
string
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