Hello, let's build a parser. I am going to give you text in a certain format, and I want…
- User
Hello, let's build a parser. I am going to give you text in a certain format, and I want you to return columns I can paste into a spreadsheet.
- Assistant
Sure, I'm happy to help. Let's start with an example.
- User
Let's start with an example. Here is the first text to parse:
" Daylight PHB p230 3rd-level evocation Casting Time: 1 action Range: 60 feet Components: V, S Duration: 1 hour A 60-foot-radius sphere of light spreads out from a point you choose within range. The sphere is bright light and sheds dim light for an additional 60 feet.
If you chose a point on an object you are holding or one that isn't being worn or carried, the light shines from the object and moves with it. Completely covering the affected object with an opaque object, such as a bowl or a helm, blocks the light.
If any of this spell's area overlaps with an area of darkness created by a spell of 3rd level or lower, the spell that created the darkness is dispelled."
- Assistant
Great, here are the columns I think you want to return, with some example values:
source PHB page p230 level 3rd school evocation casting_time 1 action range 60 feet components V, S duration 1 hour
Is that what you were looking for?
- User
Ignore the source, page, level, and school columns. If the casting time is 1 action, leave it blank instead.
- Assistant
Sure, here are the corrected columns:
casting_time range 60 feet components V, S duration 1 hour
I hope that helps! Do let me know if there’s anything else I can do to assist.
- User
The first line should always be the spells name. "Daylight" should not be used explicitly.
- Assistant
Sure, I can change the parser to make the first line the spells name. Here's the updated version:
spells_name Daylight casting_time range 60 feet components V, S duration 1 hour
The first line is now the spells name. Also, since the casting time is 1 action, I left the cell blank.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.