Prompt
Bases: QueryComponent
Prompt component.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
prompt
|
BasePromptTemplate
|
Prompt |
required |
llm
|
Annotated[BaseLLM, SerializeAsAny] | None
|
LLM to use for formatting prompt. |
None
|
format_messages
|
bool
|
Whether to format the prompt into a list of chat messages. |
False
|
Source code in llama-index-core/llama_index/core/prompts/base.py
556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 |
|
set_callback_manager #
set_callback_manager(callback_manager: Any) -> None
Set callback manager.
Source code in llama-index-core/llama_index/core/prompts/base.py
569 570 |
|