BaseSynthesizer
Defined in: .build/typescript/packages/core/src/response-synthesizers/base-synthesizer.ts:14
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”
protected
new BaseSynthesizer(options
):BaseSynthesizer
Defined in: .build/typescript/packages/core/src/response-synthesizers/base-synthesizer.ts:18
Parameters
Section titled “Parameters”options
Section titled “options”Partial
<BaseSynthesizerOptions
>
Returns
Section titled “Returns”BaseSynthesizer
Overrides
Section titled “Overrides”Properties
Section titled “Properties”llm:
LLM
Defined in: .build/typescript/packages/core/src/response-synthesizers/base-synthesizer.ts:15
promptHelper
Section titled “promptHelper”promptHelper:
PromptHelper
Defined in: .build/typescript/packages/core/src/response-synthesizers/base-synthesizer.ts:16
Methods
Section titled “Methods”validatePrompts()
Section titled “validatePrompts()”validatePrompts(
promptsDict
,moduleDict
):void
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:8
Parameters
Section titled “Parameters”promptsDict
Section titled “promptsDict”moduleDict
Section titled “moduleDict”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”getPrompts()
Section titled “getPrompts()”getPrompts():
PromptsRecord
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:22
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”updatePrompts()
Section titled “updatePrompts()”updatePrompts(
prompts
):void
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:39
Parameters
Section titled “Parameters”prompts
Section titled “prompts”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”_getPrompts()
Section titled “_getPrompts()”
abstract
protected
_getPrompts():PromptsRecord
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:68
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”_updatePrompts()
Section titled “_updatePrompts()”
abstract
protected
_updatePrompts(prompts
):void
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:69
Parameters
Section titled “Parameters”prompts
Section titled “prompts”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”_getPromptModules()
Section titled “_getPromptModules()”
abstract
protected
_getPromptModules():ModuleRecord
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:78
Return a dictionary of sub-modules within the current module that also implement PromptMixin (so that their prompts can also be get/set).
Can be blank if no sub-modules.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”getResponse()
Section titled “getResponse()”
abstract
protected
getResponse(query
,textChunks
,stream
):Promise
<EngineResponse
|AsyncIterable
<EngineResponse
,any
,any
>>
Defined in: .build/typescript/packages/core/src/response-synthesizers/base-synthesizer.ts:25
Parameters
Section titled “Parameters”textChunks
Section titled “textChunks”stream
Section titled “stream”boolean
Returns
Section titled “Returns”Promise
<EngineResponse
| AsyncIterable
<EngineResponse
, any
, any
>>
synthesize()
Section titled “synthesize()”Call Signature
Section titled “Call Signature”synthesize(
query
,stream
):Promise
<AsyncIterable
<EngineResponse
,any
,any
>>
Defined in: .build/typescript/packages/core/src/response-synthesizers/base-synthesizer.ts:31
Parameters
Section titled “Parameters”stream
Section titled “stream”true
Returns
Section titled “Returns”Promise
<AsyncIterable
<EngineResponse
, any
, any
>>
Call Signature
Section titled “Call Signature”synthesize(
query
,stream?
):Promise
<EngineResponse
>
Defined in: .build/typescript/packages/core/src/response-synthesizers/base-synthesizer.ts:35
Parameters
Section titled “Parameters”stream?
Section titled “stream?”false
Returns
Section titled “Returns”Promise
<EngineResponse
>