Skip to contents

set_audience lets you define for which audience the model should answer. This will tweak its answers accordingly to match their expectations.

Usage

set_audience(workflow_obj, audience)

Arguments

workflow_obj

an ai_workflow object created by ai_workflow() in the first place.

audience

a text description of the audience you want the LLM to write for.

Value

a workflow object with the new added audience parameter

Details

This lets you modify a typical workflow by adding information about the expected audience.

Examples

my_workflow <- ai_workflow() |> 
set_system_prompt(system_prompt="You are a helpful AI assistant. 
Answer to the best of your knowledge") |>
set_audience(audience="Marketing Professionals")

my_workflow <- ai_workflow() |> 
set_system_prompt(system_prompt="You are a helpful AI assistant. 
Answer to the best of your knowledge") |>
set_audience(audience="5 years old kids")