dottxt-ai / outlines

Structured Text Generation
https://dottxt-ai.github.io/outlines/
Apache License 2.0
9.57k stars 490 forks source link

Cookbook receipe on extract event details from text #1268

Closed scampion closed 6 days ago

scampion commented 1 week ago

If useful, an example to illustrate how to extract event details from a message like :

Hello Kitty, my grandmother will be here , I think it's better to postpone our
appointment to review math lessons to next Monday at 2pm at the same place, 3 avenue des tanneurs, 
I think that one hour will be enough
see you 😘 

to

{
  "title":"Math lessons",
  "location":"3 avenue des tanneurs",
  "start":"2024-11-18T14:00:00Z"
}

Indeed, the next Monday is the 18 November, the smallest models cannot infer this example of ‘next Monday’ with precision and a real benchmark would be welcome, or maybe another approach with a function call

scampion commented 6 days ago

Need to mention https://github.com/jrudoler/ics-generator