The LLMInvoke actor is the primary method through which requests are sent to an LLM. It sends structured messages and receives responses.
When sending a prompt to an LLM, the messages are structured with distinct roles to indicate the purpose of each message:
Fabric provides utility actors that simplify and streamline the process of building prompts:
This actor constructs LLM prompt messages for any role and is used for defining the static portions of a prompt.
The content can include parameter references in the form of \${value}.
If the value key is not found, the parameter reference will remain in the text for later phases.
This actor merges multiple message arrays into a single array before passing them to the LLMInvoke actor.
Use Case: Combine system instructions, few-shot examples, and user query into one prompt.
Example Flow:
LLMConst (System) ────┐
│
LLMConst (Examples) ──┼──▶ LLMAppend ──▶ LLMInvoke
│
LLMConst (User) ──────┘
The LLMInvoke actor is the primary method through which requests are sent to an LLM. It sends structured messages and receives responses.
When sending a prompt to an LLM, the messages are structured with distinct roles to indicate the purpose of each message:
Fabric provides utility actors that simplify and streamline the process of building prompts:
This actor constructs LLM prompt messages for any role and is used for defining the static portions of a prompt.
The content can include parameter references in the form of \${value}.
If the value key is not found, the parameter reference will remain in the text for later phases.
This actor merges multiple message arrays into a single array before passing them to the LLMInvoke actor.
Use Case: Combine system instructions, few-shot examples, and user query into one prompt.
Example Flow:
LLMConst (System) ────┐
│
LLMConst (Examples) ──┼──▶ LLMAppend ──▶ LLMInvoke
│
LLMConst (User) ──────┘