"Setting up LLMs to output structured data is incredibly hard." resonated strongly with my experience working in similar one-off projects. I've almost always implemented some level of fuzzy-matching to validate and convert the LLM output back into my expected structured format. I've also noticed that the LLMs are much better at writing code than structured JSON (no real surprise given the popularity of code assistant…
Building an email-to-calendar LLM
21–30 of 46 posts
Re: Building an email-to-calendar LLM
#22Re: Building an email-to-calendar LLM
#23"Setting up LLMs to output structured data is incredibly hard." resonated strongly with my experience working in similar one-off projects. I've almost always implemented some level of fuzzy-matching to validate and convert the LLM output back into my expected structured format. I've also noticed that the LLMs are much better at writing code than structured JSON (no real surprise given the popularity of code assistant…
Re: Building an email-to-calendar LLM
#24Earlier quoted context omitted.
A 3B model runs on Android phones from 2 years ago at 6 tkns/s.
I'm not sure what you're comparing this to or how you're making this comparison—can you enlighten us? (Somehow I doubt whatever caldav software the above poster references takes more than a second to process multiple emails.)
I don't have a problem with a background task taking a minute or something...
Re: Building an email-to-calendar LLM
#25Earlier quoted context omitted.
A 3B model runs on Android phones from 2 years ago at 6 tkns/s.
I'm not sure what you're comparing this to or how you're making this comparison—can you enlighten us? (Somehow I doubt whatever caldav software the above poster references takes more than a second to process multiple emails.)
Re: Building an email-to-calendar LLM
#26Just use CALDAV; it's designed for making calendar entries automatically via email. I'm not hip with the fashion for putting an LLM into everything. I think it's lazy.
That's a great solution to a different problem. Unless caldav has a process for extracting dates and actions from unstructured emails? But that doesn't seem related to caldav.
Re: Building an email-to-calendar LLM
#27Hey! It's awesome to read other people's solutions to this. I've been working on solving this for the past 2 years or so and I went through much of the same struggles in the beginning until we came up with a solution which is fairly complex, to get LLM's to output data in a way we can use. The big problem is that 95% accuracy is not good enough for calendars. People lose confidence after 1 failed attempt. Trying to g…
Re: Building an email-to-calendar LLM
#28Earlier quoted context omitted.
Apps Script is positively ancient at this point, first released in 2009: https://en.wikipedia.org/wiki/Google_Apps_Script It's one of the Google products I worry least about, mainly because there are 15+ years of existing Google Sheets documents that people have built using it at this point. I don't think even Google would lightly break THAT many of their existing (often paid) users.
> I don't think even Google would lightly break THAT many of their existing (often paid) users. Says everyone using GCP services that get deprecated.
Re: Building an email-to-calendar LLM
#29"Setting up LLMs to output structured data is incredibly hard." resonated strongly with my experience working in similar one-off projects. I've almost always implemented some level of fuzzy-matching to validate and convert the LLM output back into my expected structured format. I've also noticed that the LLMs are much better at writing code than structured JSON (no real surprise given the popularity of code assistant…
Re: Building an email-to-calendar LLM
#30In cases like this the author could just set up a filter like:
"If the email contains a task for me" (or some variation)
Then add a Gmail label to it.
In this way the author will immediately find all the actionable emails for him in a specific folder, much faster to skim and to keep track of all of them.
Another option would it be to have GabrielAI generate a Draft like "reply acknowledging the task and put a to-do date in the email in 1 week"
This would allow Google to track the email and the deadline.