Class: LLMSingleSelector
A selector that uses the LLM to select a single choice from a list of choices.
Hierarchy
-
↳
LLMSingleSelector
Constructors
constructor
• new LLMSingleSelector(init
): LLMSingleSelector
Parameters
Name | Type |
---|---|
init | Object |
init.llm | LLMPredictorType |
init.outputParser? | BaseOutputParser <StructuredOutput <Answer []>> |
init.prompt? | (numChoices : number , contextList : string , queryStr : string ) => string |
Returns
Overrides
Defined in
packages/core/src/selectors/llmSelectors.ts:123
Properties
llm
• llm: LLMPredictorType
Defined in
packages/core/src/selectors/llmSelectors.ts:119
outputParser
• outputParser: BaseOutputParser
<StructuredOutput
<Answer
[]>>
Defined in
packages/core/src/selectors/llmSelectors.ts:121