Skip to contents

set_current_time_and_date_reference lets you set the current time and date as addition reference as part of the background for the LLM's answer.

Usage

set_current_time_and_date_reference(workflow_obj)

Arguments

workflow_obj

A workflow object containing all parameters describing the workflow required

Value

a workflow object with the new added current_timedate parameter

Details

Setting some additional time and date reference in the background info to be used by the LLM. This can be very useful if you expect your LLM to answer about questions related to the future, present or past.

Examples

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