Anthropic Claude 3.5可以创建icalendar文件,所以我这样做了
Anthropic Claude 3.5 can create icalendar files, so I did this

原始链接: https://gregsramblings.com/stupid-but-useful-ai-tricks-creating-calendar-entries-from-an-image-using-anthropic-claude-35

该用户分享了一张包含私人爵士钢琴课程时间表的图片,其中列出了用绿色标记的 13 个日期。 他们使用名为 Claude 3.5 Sonnet 的聊天机器人来识别图像中的日期,并要求其生成包含这些日期的 iCalendar (ICS) 文件,标题为“爵士钢琴课”,时间为太平洋时间下午 2 点。 收到生成的 ICS 文件后,他们对结果感到满意,并将其成功导入到他们的 Google 日历中。 此外,该用户还提到,他们在使用另一个名为 ChatGPT 的聊天机器人来实现类似结果时遇到了困难,但使用 Claude 却取得了成功。 该用户还指出,克劳德能够在询问时向他们提供 .ics 文件的实际内容。

大型语言模型 (LLM) 中的“相差一”错误问题对事实信息的信任构成了威胁。 虽然向法学硕士询问乔治·华盛顿的生日等简单问题可能会得到看似准确的答案,但可能会提供不正确的详细信息,从而导致混乱并破坏信任。 当机器学习模型基于错误或不一致的数据进行训练时,就会出现此类错误。 尽管法学硕士对他们的回答充满信心,但为了确保准确性,人工验证是必要的。 在极端情况下,继续依赖不准确的信息可能会产生严重后果。 “信任但验证”的概念强调了双重检查法学硕士提供的信息的重要性。 随着技术的进步,开发验证 LLM 响应的方法、确保一致、可靠和准确的输出至关重要。
相关文章

原文

A few days ago, my jazz piano teacher sent me the new fall/winter schedule for my private jazz piano lessons -- 13 different dates -- as a JPG (mine are outlined in green marker):

I was too lazy to go make 13 entries in Google Calendar, so I decided to see if Claude could help me out:

I first uploaded the jpg to Claude 3.5 Sonnet)...

My prompt: List the dates that are outlined in green

The dates outlined in green in the image are:

Friday, 13-Sep-24 Friday, 27-Sep-24 Friday, 11-Oct-24 Friday, 8-Nov-24 Friday, 6-Dec-24 Friday, 20-Dec-24 Friday, 17-Jan-25 Friday, 31-Jan-25 Friday, 28-Feb-25 Friday, 14-Mar-25 Friday, 11-Apr-25 Friday, 25-Apr-25 Friday, 23-May-25

These dates correspond to the Friday column for students who have their first every-other-week lesson starting the week of Tuesday Sept 10, 2024.

Cool - that was easy and accurate. Now I need to get it into my calendar, so I asked it to create an ics file...

My prompt: Create a calendar ics file that creates an appointment on each of those dates at 2pm pacific time. The appointment title will be “Jazz Piano Lesson”

Certainly. I'll create an ICS (iCalendar) file with appointments for "Jazz Piano Lesson" on each of the dates you specified, set for 2:00 PM Pacific Time.

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Claude//Jazz Piano Lessons//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20240913T210000Z
DTEND:20240913T220000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20240927T210000Z
DTEND:20240927T220000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20241011T210000Z
DTEND:20241011T220000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20241108T220000Z
DTEND:20241108T230000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20241206T220000Z
DTEND:20241206T230000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20241220T220000Z
DTEND:20241220T230000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20250117T220000Z
DTEND:20250117T230000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20250131T220000Z
DTEND:20250131T230000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20250228T220000Z
DTEND:20250228T230000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20250314T210000Z
DTEND:20250314T220000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20250411T210000Z
DTEND:20250411T220000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20250425T210000Z
DTEND:20250425T220000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Jazz Piano Lesson
DTSTART:20250523T210000Z
DTEND:20250523T220000Z
DTSTAMP:20240824T000000Z
UID:[email protected]
END:VEVENT
END:VCALENDAR

I've created an ICS file with the following details:

  1. Each event is titled "Jazz Piano Lesson"

  2. The events are scheduled for 2:00 PM Pacific Time on each of the specified dates

  3. Each event is set to last for one hour

  4. The time zone is properly adjusted to UTC (Z) in the file

  5. Unique identifiers (UIDs) are provided for each event

You can save this content as a .ics file and import it into most calendar applications. Here are a few notes about the file:

  1. The times are in UTC (Coordinated Universal Time). 2:00 PM Pacific Time translates to 9:00 PM UTC (21:00) for dates not in Daylight Saving Time, and 10:00 PM UTC (22:00) for dates within Daylight Saving Time. The file accounts for these changes.

  2. The DTSTAMP for all events is set to the date of this conversation (August 24, 2024) as a placeholder. Your calendar application will likely update this when you import the events.

  3. The UID for each event is unique, based on the date of the lesson and a simple string.

To use this file:

  1. Copy the content of the artifact

  2. Paste it into a new text file

  3. Save the file with a .ics extension (e.g., "jazz_piano_lessons.ics")

  4. Import this file into your preferred calendar application

Most calendar applications should be able to read this file and create the appropriate recurring events. Let me know if you need any modifications or have any questions!

I went to calendar.google.com, imported the ics, and my appointments were imported perfectly!
(To import ics files into Google calendar, go to the calendar settings, then to import/export)

I'm pleasantly surprised at how easy this was!

I tried the exact same thing in ChatGPT -- it identified the dates in the images, but it said it was was unable to create an .ics file. However, it did give me some Python code to create the ics file for me. I came back to that conversation later and said, "Just show me the content of the .ics file" and it did!

联系我们 contact @ memedata.com