4 ms·
Is it possible to teach GPT3 to do something like this through prompts? Like, responding with an API call to get information when it doesn't have enough? The c
by losteric 4y ago
Is it possible to teach GPT3 to do something like this through prompts? Like, responding with an API call to get information when it doesn't have enough?
The closest I've gotten is having the model output both the be API call and a hallucinated response
- anigbrowl 4y agoYes, you can provide the equivalent of a code box in your prompt input by using Markdown, specifically enclosing the json response in ``` and advising it that you are functioning as a simulation of a running system.
- sprobertson 4y agoWith two prompts and a parsing step in between is how I'm doing it. An input prompt with multiple examples like "what's the weather" -> "getWeather($location)", a glue step to parse and run the commands it outputs, then a second response prompt with examples like "$weather = {temp: 50, ...}" -> "it's 50 degrees with a clear sky" to turn JSON data back into English.