import create_data_generation_chain, DatasetGenerator# LLMmodel = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.7)chain = create_data_generation_chain(model)chain({"fields": ["blue", "yellow"], "preferences": {}})    {'fields': ['blue', 'yellow'],     'preferences': {},     'text': 'The vibrant blue sky contrasted beautifully with the bright yellow sun, creating a stunning display of colors that instantly lifted the spirits of all who gazed upon it.'}chain({"fields": {"colors": ["blue", "yellow"]}, "preferences": {"style": "Make it in a style of a weather forecast."}})    {'fields': {'colors': ['blue', 'yellow']},     'preferences': {'style': 'Make it in a style of a weather forecast.'},     'text': "Good morning! Today's weather forecast brings a beautiful combination of colors to the sky, with hues of blue and yellow gently blending together like a mesmerizing painting."}chain({"fields": {"actor": "Tom Hanks", "movies": ["Forrest Gump", "Green Mile"]}, "preferences": None})    {'fields': {'actor': 'Tom Hanks', 'movies': ['Forrest Gump', 'Green Mile']},     'preferences': None,     'text': 'Tom Hanks, the renowned actor known for his incredible versatility and charm, has graced the silver screen in unforgettable movies such as "Forrest Gump" and "Green Mile".'}chain(    {        "fields": [            {"actor": "Tom Hanks", "movies": ["Forrest Gump", "Green Mile"]},            {"actor": "Mads Mikkelsen", "movies": ["Hannibal", "Another round"]}        ],        "preferences": {"minimum_length": 200, "style": "gossip"}    })    {'fields': [{'actor': 'Tom Hanks', 'movies': ['Forrest Gump', 'Green Mile']},      {'actor': 'Mads Mikkelsen', 'movies': ['Hannibal', 'Another round']}],     'preferences': {'minimum_length': 200, 'style': 'gossip'},     'text': 'Did you know that Tom Hanks, the beloved Hollywood actor known for his roles in "Forrest Gump" and "Green Mile", has shared the screen with the talented Mads Mikkelsen, who gained international acclaim for
Open In Colab
Open In Colab ->: import create_data_generation_chain, DatasetGenerator# LLMmodel = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.7)chain = create_data_generation_chain(model)chain({"fields": ["blue", "yellow"], "preferences": {}})    {'fields': ['blue', 'yellow'],     'preferences': {},     'text': 'The vibrant blue sky contrasted beautifully with the bright yellow sun, creating a stunning display of colors that instantly lifted the spirits of all who gazed upon it.'}chain({"fields": {"colors": ["blue", "yellow"]}, "preferences": {"style": "Make it in a style of a weather forecast."}})    {'fields': {'colors': ['blue', 'yellow']},     'preferences': {'style': 'Make it in a style of a weather forecast.'},     'text': "Good morning! Today's weather forecast brings a beautiful combination of colors to the sky, with hues of blue and yellow gently blending together like a mesmerizing painting."}chain({"fields": {"actor": "Tom Hanks", "movies": ["Forrest Gump", "Green Mile"]}, "preferences": None})    {'fields': {'actor': 'Tom Hanks', 'movies': ['Forrest Gump', 'Green Mile']},     'preferences': None,     'text': 'Tom Hanks, the renowned actor known for his incredible versatility and charm, has graced the silver screen in unforgettable movies such as "Forrest Gump" and "Green Mile".'}chain(    {        "fields": [            {"actor": "Tom Hanks", "movies": ["Forrest Gump", "Green Mile"]},            {"actor": "Mads Mikkelsen", "movies": ["Hannibal", "Another round"]}        ],        "preferences": {"minimum_length": 200, "style": "gossip"}    })    {'fields': [{'actor': 'Tom Hanks', 'movies': ['Forrest Gump', 'Green Mile']},      {'actor': 'Mads Mikkelsen', 'movies': ['Hannibal', 'Another round']}],     'preferences': {'minimum_length': 200, 'style': 'gossip'},     'text': 'Did you know that Tom Hanks, the beloved Hollywood actor known for his roles in "Forrest Gump" and "Green Mile", has shared the screen with the talented Mads Mikkelsen, who gained international acclaim for