EvSys

JSONLToChatTransform

Attributes

attributenamestr
= 'jsonl_to_chat'
attributeConfigtype
= JSONLToChatConfig
attributesystem_prompt
= system_prompt
attributeuser_template
= user_template
attributeassistant_template
= assistant_template

Functions

func__init__(self, *, system_prompt='', user_template='{query}', assistant_template=None) -> None
paramself
paramsystem_promptstr
= ''
paramuser_templatestr
= '{query}'
paramassistant_templatestr | None
= None

Returns

None
func__call__(self, rows) -> Iterable[dict[str, Any]]
paramself
paramrowsIterable[dict[str, Any]]

Returns

typing.Iterable[dict[str, typing.Any]]

On this page