A Wolfram U Daily Study Group focusing on LLMs and Wolfram Tech will be starting soon!
Join Wolfram Experts @Alan Joyce , Rick Hennigan, Timothee Verdier and @Jon McLoone and a group of fellow enthusiasts to learn about all the different ways you can use Wolfram tech along with Large Language Models (LLMs). Our topics for the study group include the Wolfram GPT, Chat Notebooks and LLM Functionality in Wolfram Language. The sessions will feature a number of fun examples that will show you how you can combine the computational powers and curated knowledge of Wolfram Language along with the generative capabilities of LLMs.
Each session will kick off with a presentation by an expert who will introduce the topic, followed by some review questions and discussions. There will be time for Q&A at the end.
No prior Wolfram Language experience is required to join the study group.
Please feel free to use this thread to collaborate and share ideas, materials and links to other resources with fellow learners.
We look forward to seeing you:
March 25th-29th, 2024,
11am-12pm CT (4-5pm GMT)
In Monday’s session, Alan Joyce pointed out that we can use a Chat Notebook with an OpenAI token, but Wolfram GPT requires a ChatGPT Plus subscription. As a retiree who uses the Wolfram Language only for personal projects, $20/month is way too expensive for my limited use. Why can’t we have an option for pay-as-you-go for this? I can accept that it might require a different API token, possibly charged at a higher rate, but my usage shouldn’t cost anywhere near $20/month.
Hi Abrita,
Attached is a notebook where I am trying to get the code for a new custom Moonrise function. I tried several ways but in the end the code didn’t work. Comments? Suggestions? Thank you kindly.
John
Congrats on your excellent work. Nevertheless during the study group a trial account should have been given to all participants such as to try and work on the relevant subjects such as participants consider a paid subscription after testing the fit to their own needs.
Day 3 of our Daily Study Group series on Wolfram Tools for LLMs: Today we are going to talk about Programmatic Access to LLM Functionality. Our speaker is @Timothee Verdier
I checked in with our Astronomy expert @Jeffrey Bryant.
I will post more details from our discussion, but the solution he recommended was to use natural language understanding native to Wolfram Notebooks which fetches the results from the Wolfram Alpha knowledgebase.
In a regular notebook, press the equal sign (=) to start a natural language input and type in your query.
For example:
= next rise time of the Moon from Champaign, IL on March 27, 2024
This will convert to Wolfram Language input and evaluate to give you the result:
Thank you kindly Abiria & Jeffrey,
Unfortunately, I already was able to solve a similar more-elementary situation using the City entity. I figured Wolfram & ChatGPT together should be able to write the custom code that works for giving simply the Lat / Long data for any location on the globe along with any reasonable past or future date. Somewhat like the first attempt that failed because it attempted to use the old (deprecated) “AstronomicalData” which caused it to fail:
Thank you kindly Abrita & Jeffrey.
Unfortunately, I have already found a similar solution, but I was trying to find a slightly more ambitious results like the final effort to generate a custom function that uses lat / long data that failed:
To calculate the moonrise time for a specific location and date in the Wolfram Language, we can create a custom function ChatCodeInlineTemplate[Moonrise[]] that calculates the moonrise time using the Horizon Event function. Here is the code for the custom ChatCodeInlineTemplate[Moonrise[]] function:
This custom ChatCodeInlineTemplate[Moonrise[]] function uses the ChatCodeInlineTemplate[HorizonEvent] function to calculate the moonrise time for a specific location and date. You can use this function by providing the geographic location as a GeoPosition object and the date as a DateObject.
Comments? Suggestions? What is wrong with the code ChatGPT / Wolfram generated? Where did it go off the track?
We do not have a built-in documented function for computing Moonrise.
The algorithm for computing moon rise isn’t a simple formula so its unlikely that the LLM would know how to write an algorithm from the bottom up.
The LLM is hallucinating badly with things like Needs[“AstronomicalData`”] which makes no sense. In fact, AstronomicalData is obsolete and shouldn’t be used in any case
it looks to me (I could be wrong) that the user was running their chatbook with the “plain chat” persona instead of the “code assistant” persona. The latter would let the “assistant” evaluate WL code and see that things weren’t working correctly… though (), that doesn’t mean there’s a straight path to something useful.
Could probably adapt Jeff’s suggestion and tell the model to try using SemanticInterpretation[“next rise time of the Moon from Champaign, IL on March 27, 2024”] to see how to construct a valid WL expression, which then I would expect it to be able to turn into something that could take arbitrary locations and dates and return a Moon rise time.
I am facing an old and repetitive issue: I do not receive any Bigmarker course email (like reminder, etc.). Therefore, I kindly ask you to send me the email with the link to the quiz that you mentioned yesterday to my email address via your Wolfram email account.
Sure. I will forward your request to our coordinator and they will email all the links to you.
We will also share the quiz link at today’s live session.
Day 5 of our Daily Study Group series. We will look at some built-in AI related functionality useful for NLP tasks. We will also review some topics from the earlier sessions this week.