LLMMultiSelector
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:47
一个使用LLM从选项列表中选取单个或多个选项的选择器。
new LLMMultiSelector(
init):LLMMultiSelector
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:53
大语言模型
Section titled “llm”LLM
MultiSelectPrompt
最大输出数量?
Section titled “maxOutputs?”number
BaseOutputParser<StructuredOutput<Answer[]>>
LLMMultiSelector
大语言模型
Section titled “llm”llm:
LLM
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:48
prompt:
MultiSelectPrompt
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:49
maxOutputs
Section titled “maxOutputs”maxOutputs:
number
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:50
outputParser
Section titled “outputParser”outputParser:
BaseOutputParser<StructuredOutput<Answer[]>>
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:51
select()
Section titled “select()”select(
choices,query):Promise<SelectorResult>
Defined in: .build/typescript/packages/llamaindex/src/selectors/base.ts:27
MetadataType[]
QueryType
Promise<SelectorResult>
_getPrompts()
Section titled “_getPrompts()”_getPrompts():
object
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:67
object
prompt:
MultiSelectPrompt
BaseSelector._getPrompts
_updatePrompts()
Section titled “_updatePrompts()”_updatePrompts(
prompts):void
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:71
MultiSelectPrompt
void
BaseSelector._updatePrompts
_getPromptModules()
Section titled “_getPromptModules()”
protected_getPromptModules():ModuleRecord
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:77
返回当前模块中同样实现了 PromptMixin 的子模块字典(以便也能获取/设置它们的提示)。
如果没有子模块,可以为空。
ModuleRecord
BaseSelector._getPromptModules
_select()
Section titled “_select()”_select(
choices,query):Promise<SelectorResult>
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:86
从选项列表中选择单个选项。
QueryBundle
Promise<SelectorResult>
asQueryComponent()
Section titled “asQueryComponent()”asQueryComponent():
unknown
定义于:.build/typescript/packages/llamaindex/src/selectors/llmSelectors.ts:114
unknown