NaturalLanguage
GetCommand
ask a large language model to find a Maple command
Calling Sequence
Parameters
Description
Examples
References
Compatibility
GetCommand(s)
GetCommand(s, mo)
s
-
string, query to send to a large language model.
mo
(optional) option of the form model=m, where m is ChatGPT or GPT4.
The GetCommand command sends the string query to a large language model and asks it to return a Maple command as MathML. This is then interpreted by Maple's MathML:-Import command. The result is returned as a mathematical expression.
Maple can interface with OpenAI's GPT-4 and ChatGPT models. The default model is GPT-4; you can select ChatGPT by using the model=ChatGPT option, or force use of the GPT-4 model by using the model=GPT4 option. Note that OpenAI may deprecate and disable models, so the set of models supported may change in the future.
Note: Large language models often generate inaccurate statements. Please keep this in mind: this is not technology for building a bridge with.
with⁡NaturalLanguage:
GetCommand⁡What's the command for numerical equation solving?
fsolve⁡equation,variable
GetCommand⁡How do I generate uniform random numbers?
RandomTools:−Generate⁡list⁡realrange⁡0,1
GetCommand⁡Tell me how to find the maximum of a function,model=ChatGPT
solve⁡ⅆⅆxf⁡x=0,x
GetCommand⁡How do I solve a differential equation numerically?,model=ChatGPT
dsolve⁡eq,numeric
The OpenAI website.
The NaturalLanguage:-GetCommand command was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
Download Help Document