Set overall background info for your model before an answer is formulated
set_overall_background.Rd
set_overall_background
lets you give some additional background info that is supposed to be used by your model for every answer.
Details
Setting background info can help with general knowledge or reference that you expect the LLM to have. Say, you have specific personal information that you want to enter that is relevant for answering several questions, you want to put it in here. This is different from RAG, where a RAG system will basically pull relevant information for every specific question. Here, this is more akin to letting the LLM have fundamental, general knowledge.
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("Marketing Professionals") |>
set_overall_background("Our company, YOMAN & Co, has been struggling with our
recent products because of lack of market understanding.")