Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool mistook long form content for a question #20

Closed
timpaul opened this issue Apr 23, 2024 · 5 comments
Closed

Tool mistook long form content for a question #20

timpaul opened this issue Apr 23, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@timpaul
Copy link
Owner

timpaul commented Apr 23, 2024

Here's a fun one. The tool took the contents of the 'Documents we need' section on this page and turned it into a multiple choice question!

image

Then, it took the content at the start of the next section, 'What you need to do now', and turned it into an address question:

image

Finally, it took the content at the end of that section and made a text question:

image
@timpaul timpaul added the bug Something isn't working label Apr 23, 2024
@timpaul
Copy link
Owner Author

timpaul commented Apr 25, 2024

I tried adding the following to the tool description:

  • pages: An array of the questions in the form. A question typically consists of a question title, some optional hint text and one or more form fields. Form fields typically look like boxes.

It did this!:

image

So, it took the first sentence on the page as the question title, then used the checkboxes from the declaration panel as the question fields. There were no other questions generated.

@timpaul
Copy link
Owner Author

timpaul commented Apr 26, 2024

I isolated the first part of the form that generates the error:

image

Now it generates 3 pages, one for each bullet.

I think this might reveal what is happening. Claude is returning the most question-like things it can see in the image, evcen if they are not very question-like at all. It doesn't know how to say "There are no questions here".

@timpaul
Copy link
Owner Author

timpaul commented Apr 26, 2024

I've somewhat addressed this now:

image

This commit adds the ability to recognise if an image isn't a form, by (amongst other things) changing the prompt text to this:

"Is this a form? It's only a form if it contains form field boxes. If it is a form, extract the questions from it using the extract_form_questions tool."

@timpaul
Copy link
Owner Author

timpaul commented May 14, 2024

OK, now it does this:

image image image

(It gets the signature and date too).

It's interesting - it's not a good replication of the original form, but it DOES work - in that it gets the user to make a series of explicit declarations.

@timpaul
Copy link
Owner Author

timpaul commented May 14, 2024

Closing this for now, until new examples turn up

@timpaul timpaul closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant