trace_synthesis/summary/376_prompt_debug.txt
yuyr a84d51a101 1. 增加r1生成综合策略代码和输出;
2. 增加tasks;
3. 增加analysis部分,对策略进行归纳分类,然后进行评测。
2025-04-17 17:40:15 +08:00

172 lines
7.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Instruction
- You are an expert in cleaning process data descriptions. Given a task, you are provided with a set of annotation description
data for a certain visual LLM related to human user operation videos. Plus, You are provided with full trace of playwright action,
whic includes action and url before and after the action.
- You need to analyze all the descriptive data and ultimately summarize a complete and reasonable user operation description that can accomplish the given task.
- For each strategy, give a clear list of the low level action sequence.
# Task
Summarize customer reviews for Amazon Echo Dot 3rd generation.
# Annotation description
### Step-by-Step Actions in the Video Segment
#### 1. **Initial Page Load**
- **Action:** The video begins with the homepage of "One Stop Market" fully loaded.
- **Page Changes:** The page displays various categories such as "Beauty & Personal Care," "Sports & Outdoors," "Clothing, Shoes & Jewelry," etc., along with a search bar at the top right.
- **Possible Purpose:** The initial load sets the context for navigating the website, allowing access to different product categories and search functionality.
#### 2. **Entering Search Query**
- **Action:** I click on the search bar located at the top right corner of the page.
- **Page Changes:** The cursor is now active inside the search bar, ready for text input.
- **Possible Purpose:** To initiate a product search by entering specific keywords.
#### 3. **Typing the Search Query**
- **Action:** I type "echo dot 3rd" into the search bar.
- **Page Changes:** The text "echo dot 3rd" appears in the search bar.
- **Possible Purpose:** To find products related to "Echo Dot (3rd generation)" on the website.
#### 4. **Executing the Search**
- **Action:** I press the Enter key or click the search icon next to the search bar.
- **Page Changes:** The page transitions to display search results for "echo dot 3rd." The header shows "Search results for: 'echo dot 3rd'," and a list of relevant products is displayed.
- **Possible Purpose:** To view all available products matching the search query.
#### 5. **Navigating Search Results**
- **Action:** I scroll through the search results page.
- **Page Changes:** Various Echo Dot (3rd generation) products are visible, including different models and accessories.
- **Possible Purpose:** To review the available options and select a specific product.
#### 6. **Selecting a Product**
- **Action:** I click on a product titled "Echo Dot (3rd Gen) - Smart Speaker with Alexa."
- **Page Changes:** The page transitions to the product detail page for the selected Echo Dot (3rd Gen).
- **Possible Purpose:** To view detailed information about the selected product, such as specifications, price, and purchasing options.
#### 7. **Reviewing Product Details**
- **Action:** I observe the product detail page.
- **Page Changes:** The page displays a high-resolution image of the Echo Dot (3rd Gen), along with its price, description, and an "Add to Cart" button.
- **Possible Purpose:** To gather all necessary information before making a purchase decision.
#### 8. **Adding Product to Cart**
- **Action:** I click the "Add to Cart" button.
- **Page Changes:** A confirmation message appears, indicating that the product has been successfully added to the cart.
- **Possible Purpose:** To add the selected product to the shopping cart for potential purchase.
### Summary
In this video segment, I navigated from the homepage of "One Stop Market" to the search results for "echo dot 3rd," selected a specific product, reviewed its details, and added it to the cart. Each step was methodically executed to achieve the goal of adding the desired product to the shopping cart.
# Playwright action
[
{
"action_uid": "action_0",
"idx": 0,
"action_repr": "frame.clickget_by_placeholder(\"Search entire store here...\")",
"before": {
"url": "http://ec2-3-135-39-80.us-east-2.compute.amazonaws.com:7770/"
},
"after": {
"url": "http://ec2-3-135-39-80.us-east-2.compute.amazonaws.com:7770/"
}
},
{
"action_uid": "action_1",
"idx": 1,
"action_repr": "frame.pressget_by_placeholder(\"Search entire store here...\")Enter",
"before": {
"url": "http://ec2-3-135-39-80.us-east-2.compute.amazonaws.com:7770/"
},
"after": {
"url": "http://ec2-3-135-39-80.us-east-2.compute.amazonaws.com:7770/"
}
},
{
"action_uid": "link_Image",
"idx": 2,
"action_repr": "frame.clicklocator(\"#product-item-info_101735\").get_by_role(\"link\", name=\"Image\")",
"before": {
"url": "http://ec2-3-135-39-80.us-east-2.compute.amazonaws.com:7770/catalogsearch/result/?q=echo+dot+3rd"
},
"after": {
"url": "http://ec2-3-135-39-80.us-east-2.compute.amazonaws.com:7770/catalogsearch/result/?q=echo+dot+3rd"
}
}
]
# Output format
- 先总结整个任务的Objective然后按照Strategy-SubStrategy-action三级层次来给出整个过程
- 接着给出整个操作流程后的观察和有趣的发现最后严格按照json格式输出三级层次的过程描述。
- 最后的输出json应该是包在```{json}```之间最底层动作需要包含描述、对应的playwright动作指令顺序编号以及具体指令内容。
# Example
### Complete User Operation Description to Display Labeled Issues in kkroening/ffmpeg-python
**Objective:** Filter and display all issues labeled as "question" in the kkroening/ffmpeg-python repository.
---
#### **Strategy 1: Navigate to the Repository**
**Low-Level Action Sequence:**
1. **Search for the user "kkroening"**
- Click the global search bar (placeholder: "Search GitLab").
- Type "kkroening" and press `Enter`.
2. **Select the user from results**
- Click the "Users" tab in search results.
- Click on "Karl Kroening @kkroening" in the user list.
3. **Access the repository**
- Navigate to the "Personal projects" section.
- Click on the "ffmpeg-python" project.
---
#### **Strategy 2: Filter Issues by Label**
**Low-Level Action Sequence:**
1. **Open the Issues tab**
- Scroll to the left sidebar menu.
- Click the "Issues" tab (displaying the count, e.g., "Issues 402").
2. **Apply label filtering**
- Click the search/filter bar in the issues list.
- Select the "Label" dropdown from the filter options.
- Type or select "question" from the label dropdown.
- Click the search/apply button to confirm the filter.
---
#### **Final Oberservation**
The issues list will refresh to show only issues with the "question" label. The URL will reflect the filter:
`.../ffmpeg-python/-/issues/?label_name[]=question`.
---
### Key Observations from Playwright Trace
- The final URL after filtering:
`http://ec2-3-135-39-80.../ffmpeg-python/-/issues/?label_name%5B%5D=question`
confirms the "question" label filter is applied.
- Critical interactions include selecting the "Label" dropdown and explicitly choosing "question" to refine results.
### Final output
```json
[{
"strategy" : "Navigate to the Repository",
"substrategies": [
{
"substrategy": "Search for the user \"kkroening\"",
"actions" : [
{
"description": "Click the global search bar (placeholder: \"Search GitLab\"). ",
"playwright_idx" : 18,
"playwright_instruction" : "frame.pressget_by_placeholder(\"Search GitLab\")Enter"
}
]
},
{
"substrategy": "Select the user from results",
"actions" : [
]
}
]
},
{
"strategy" : "Filter Issues by Label",
"substrategies" : [
]
}]
```