How does one install and use the new LLMFunction described in Wolfram blog ?
Update for V 13.3
I found I had to do nothing in V 13.3 to use
LLMFunction. It just connects to openAI directly and does not ask for any key. Here is movie showing that.
But, and this is important, I was logged into my Wolfram account when I did the above. i.e. I had signed in using this
When I signed out from Wolfram cloud, then it will not work any more and now it asks for key as before from openAI:
So if you do not want to deal with getting a key each time and having to login to openAI, you have to be logged into your Wolfram cloud account first. Once you are logged into Wolfram cloud account, you will remained logged, and when you restart Mathematica, it will automatically login again without you asking to login each time.
If anyone having problem using
LLMFunction in V 13.3 may be separate question will be better.
Currently LLMFunction is installed via paclet. In V 13.3 it will be build in.
The very first time, when you issue the first
LLMFunction command, you will get this pop-up menu
If you do not see the above, then run
PacletUninstall["Wolfram/LLMFunctions"], exit Mathematica, and open Mathematica again and try again to install it again. The pop-up menu will show up only first time after installation, and only after issuing the very first
LLMFunction. It will not show up automatically after just installing the paclet. You must issue an
LLMFunction command to see it.
Here is small movie showing the above
Now login to your openAI account. (click on
Go to OpenAI button above) I used my google login. i.e. I was logged into google before doing all the above.
Now under your settings at top right corner, you will see
View API keys.
Click on that and then click on
Create new secret key
Now a pop-up menu will show up asking you to enter some text. Then click on create secret key
Copy the key generated (by clicking on the little icon on the right of the key, to copy it to buffer) which will show up after the above step and paste into the pop-up menu that Mathematica have opened above. Then click I agree on conditions,and click on Done button.
Now you can use LLMFunction
The above was done on Version 13.2.1 on windows 10.
How to use the new LLMFunction?
The following Community post "Workflows with LLM functions" has a notebook with different use case examples worked out.