fix search on auto completion (#1544)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
There is an input element on an HTML page. Based on the context and information provided, you have two goals:
|
||||
There is an input element on an HTML page. Based on the context and information provided, you have {{ "three" if is_search else "two" }} goals:
|
||||
- Confirm if an auto-completion attempt appears after the user inputs the current value.
|
||||
- If auto-completion suggestions appear, assist the user in selecting the most appropriate element based on the user's goal, details, and the context.
|
||||
- If auto-completion suggestions appear, assist the user in selecting the most appropriate element based on the user's goal, details, and the context.{% if is_search %}
|
||||
- Confirm if direct searching is a better way compared to all suggestions based on user's goal.{% endif %}
|
||||
|
||||
You can confirm an auto-completion attempt based on the following rules:
|
||||
- Several auto-completion suggestions appear for the input value.
|
||||
@@ -15,6 +16,8 @@ Each interactable element is tagged with an ID.
|
||||
|
||||
Reply in JSON format with the following keys:
|
||||
{
|
||||
"thought": str, // Think step by step. Describe your thought about how you achieve the {{ "three" if is_search else "two" }} goals with convincing evidence.{% if is_search %}
|
||||
"direct_searching": bool, // True if direct searching is a better way compared to all suggestions, otherwise False.{% endif %}
|
||||
"auto_completion_attempt": bool, // True if there's any auto completion attempt based on the rules. Otherwise, it should be False.
|
||||
"reasoning": str, // The reasoning behind the decision. Be specific, referencing the value and the element id in your reasoning. Mention why you chose the element id. Keep the reasoning short and to the point.
|
||||
"confidence_float": float, // The confidence of the action. Pick a number between 0.0 and 1.0. 0.0 means no confidence, 1.0 means full confidence.
|
||||
@@ -25,7 +28,7 @@ Reply in JSON format with the following keys:
|
||||
|
||||
Context:
|
||||
```
|
||||
Choose an auto-completion suggestion for "{{ field_information }}"
|
||||
Choose an auto-completion suggestion for "{{ field_information }}"{%if is_search %} or directly search with the input value{% endif %}
|
||||
```
|
||||
|
||||
Input value:
|
||||
|
||||
Reference in New Issue
Block a user