mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-19 18:43:34 -04:00
7699f5432d
In theory this will stop the API docs thrashing on every build. Of course, there is a drawback in that if main changes but we haven't released a new version of the docs yet the links will go out of date. So longer term we might want to investigate some kind of variable where we can continue to have up to date revs but keep the rev in a single variable somewhere: https://github.com/facebook/docusaurus/issues/395 In the meantime much smaller commits will be a relief
2.0 KiB
2.0 KiB
id, title, sidebar_label, sidebar_position, custom_edit_url
| id | title | sidebar_label | sidebar_position | custom_edit_url |
|---|---|---|---|---|
| LLMQuestionGenerator | Class: LLMQuestionGenerator | LLMQuestionGenerator | 0 | null |
LLMQuestionGenerator uses the LLM to generate new questions for the LLM using tools and a user query.
Implements
Constructors
constructor
• new LLMQuestionGenerator(init?)
Parameters
| Name | Type |
|---|---|
init? |
Partial<LLMQuestionGenerator> |
Defined in
Properties
llm
• llm: LLM
Defined in
outputParser
• outputParser: BaseOutputParser<StructuredOutput<SubQuestion[]>>
Defined in
prompt
• prompt: SimplePrompt
Defined in
Methods
generate
▸ generate(tools, query): Promise<SubQuestion[]>
Parameters
| Name | Type |
|---|---|
tools |
ToolMetadata[] |
query |
string |
Returns
Promise<SubQuestion[]>
Implementation of
BaseQuestionGenerator.generate