def build_prompt()

in prompts/stories/build_ultrachat_stories_prompts.py [0:0]


def build_prompt(x, style="forums_story"):
    """Build the prompt based on the generation type"""
    snippet = x["first_turn"].strip()
    snippet = snippet[:min(len(snippet), EXTRACT_SIZE)]
    prompt = STYLES[style].replace("<EXTRACT>", snippet)
    return {f"prompt_{style}": prompt}