Query - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

NaturalLanguage

  

Query

  

ask a large language model to answer a question in English and math

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

Query()

Query(, )

Parameters

-

string, question for the large language model.

-

(optional) option of the form , where  is  or .

Description

• 

The Query command sends a query to a large language model, attempting to instruct the model to use both natural language and MathML. Maple tries to split the answer into MathML and non-MathML, parse the MathML, and then print the results on screen. The command does not return anything.

• 

Maple can interface with OpenAI's GPT-4 and ChatGPT models. The default model is GPT-4; you can select ChatGPT by using the  option, or force use of the GPT-4 model by using the  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.

Examples

(1)

(2)

(3)

References

  

The OpenAI website.

Compatibility

• 

The NaturalLanguage:-Query command was introduced in Maple 2024.

• 

For more information on Maple 2024 changes, see Updates in Maple 2024.


Download Help Document