Writing prompts using interpolate()
AI
ellmer
LLMs
I just discovered
interpolate()
, which is similar but not identical to glue::glue()
.
This week, I’m writing a function that generates a short help file for any stats concept the user specifies. While prompting ChatGPT to do this isn’t particularly hard, the process spotlights some important and interesting aspects of embedding such prompts inside of functions. I had a great time learning about interpolate()
, in particular.