Assume we have access to the following API class: LlmModel(): Transforms the given input…
- User
Assume we have access to the following API class:
LlmModel():
Transforms the given
inputaccording to thetransform_promptgenerate(transform_prompt: str, input: str): str
Creates a user prompt that might have generated the given text
get_user_prompt(input: str): str
Write a Python script that takes in a dataset (in the form of .txt files containing full length stories), extracts sections from them, and modifies the sections according to some prompt. The Python script should output a CSV file containing the user prompt, the original text of the section, and the transformed prompt. There are about 100 .txt files, and the end dataset should end up being approximately 16k rows.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.