First, describe the large language model "ReAct" prompting pattern briefly. Then,…
- User
First, describe the large language model "ReAct" prompting pattern briefly. Then, implement an Elixir implementation of it, with a function called
LLM.exec(query)used to call out to the LLM model powering the ReAct implementation. - Assistant
ReAct is a large language model designed to generate human-like responses to natural language queries. To interact with ReAct, you can call the
LLM.exec(query)function, passing the query as an argument. The function will then send the query to the ReAct model, which will generate a response based on the provided input.Here's an example of how to implement an Elixir implementation of the
LLM.execfunction:elixir
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.