索引
子问题 #
基类:EventBaseModel
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
sub_question
|
str
|
|
required |
tool_name
|
str
|
|
required |
workflows/handler.py 中的源代码llama_index/core/question_gen/types.py
11 12 13 | |
子问题列表 #
基类:EventBaseModel
一个包装子问题列表的pydantic对象。
这主要用于使获取JSON模式更加容易。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
items
|
List[SubQuestion]
|
|
required |
workflows/handler.py 中的源代码llama_index/core/question_gen/types.py
16 17 18 19 20 21 22 23 | |
基础问题生成器 #
Bases: PromptMixin, DispatcherSpanMixin
workflows/handler.py 中的源代码llama_index/core/question_gen/types.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
选项: 成员:- BaseQuestionGenerator - SubQuestionList - SubQuestion