Class: abstract
BaseSynthesizer
Extends
Constructors
new BaseSynthesizer()
protected
new BaseSynthesizer(options
):BaseSynthesizer
Parameters
• options: Partial
<BaseSynthesizerOptions
>
Returns
Overrides
Defined in
packages/core/response-synthesizers/dist/index.d.ts:30
Properties
llm
llm:
LLM
<object
,object
>
Defined in
packages/core/response-synthesizers/dist/index.d.ts:28
promptHelper
promptHelper:
PromptHelper
Defined in
packages/core/response-synthesizers/dist/index.d.ts:29
Methods
_getPromptModules()
abstract
protected
_getPromptModules():ModuleRecord
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
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:69
_getPrompts()
abstract
protected
_getPrompts():PromptsRecord
Returns
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:60
_updatePrompts()
abstract
protected
_updatePrompts(prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:61
getPrompts()
getPrompts():
PromptsRecord
Returns
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:58
getResponse()
abstract
protected
getResponse(query
,textChunks
,stream
):Promise
<EngineResponse
|AsyncIterable
<EngineResponse
,any
,any
>>
Parameters
• query: MessageContent
• textChunks: NodeWithScore
<Metadata
>[]
• stream: boolean
Returns
Promise
<EngineResponse
| AsyncIterable
<EngineResponse
, any
, any
>>
Defined in
packages/core/response-synthesizers/dist/index.d.ts:31
synthesize()
synthesize(query, stream)
synthesize(
query
,stream
):Promise
<AsyncIterable
<EngineResponse
,any
,any
>>
Parameters
• query: SynthesizeQuery
• stream: true
Returns
Promise
<AsyncIterable
<EngineResponse
, any
, any
>>
Defined in
packages/core/response-synthesizers/dist/index.d.ts:32
synthesize(query, stream)
synthesize(
query
,stream
?):Promise
<EngineResponse
>
Parameters
• query: SynthesizeQuery
• stream?: false
Returns
Promise
<EngineResponse
>
Defined in
packages/core/response-synthesizers/dist/index.d.ts:33
updatePrompts()
updatePrompts(
prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:59
validatePrompts()
validatePrompts(
promptsDict
,moduleDict
):void
Parameters
• promptsDict: PromptsRecord
• moduleDict: ModuleRecord
Returns
void
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:57