Conversation
ConversationTemplate
¶
Bases: Step
Generate a conversation template from an instruction and a response.
Input columns
- instruction (
str): The instruction to be used in the conversation. - response (
str): The response to be used in the conversation.
Output columns
- conversation (
ChatType): The conversation template.
Source code in src/distilabel/steps/conversation.py
inputs: List[str]
property
¶
The instruction and response.
outputs: List[str]
property
¶
The conversation template.
process(inputs)
¶
Generate a conversation template from an instruction and a response.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inputs |
StepInput
|
The input data. |
required |
Yields:
| Type | Description |
|---|---|
StepOutput
|
The input data with the conversation template. |