refactor: improve instructions for ambiguous values#9594
Open
ugur-vaadin wants to merge 1 commit into
Open
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
There is an issue with
FormAIControllerignoring per-field description directives like "let the user pick when the query returns multiple items" on queryable fields. When the query returned multiple matches, the LLM picked one (or all) of them rather than asking the user, regardless of what the developer wrote in the description.This PR updates the form-fill workflow text in
INSTRUCTIONS_TEXTstep 3 so the LLM checks the field'sdescriptionfor an ambiguity directive before writing a queryable field whose query returned multiple matches. When the directive is present and the user's prompt does not single out the subset to write, the LLM asks for clarification instead. Prompts like "Add both X and Y" or "Pick all of them" already name the subset, so they proceed without asking. Without a directive, the LLM picks the most reasonable match and writes it.Based on Form Filler DX test session findings.
No related issue.
Type of change
Checklist