sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.44k stars 426 forks source link

Sweep: create a new search query filtering agent that will be used in ticket_utils.py #2693

Closed wwzeng1 closed 10 months ago

wwzeng1 commented 10 months ago

The agent should filter unnecessary terms out of the search query to be sent into lexical search. Use a prompt to do this, using name_agent.py as a reference.

Checklist - [X] Create `sweepai/agents/filter_agent.py` ✓ https://github.com/sweepai/sweep/commit/567be650e200fafaf77de80939e41aa8ad8456ff - [X] Running GitHub Actions for `sweepai/agents/filter_agent.py` ✓ - [X] Modify `sweepai/utils/ticket_utils.py` ✓ https://github.com/sweepai/sweep/commit/aaaa83939b6316801faf5c0deeff37637f3bf977 - [X] Running GitHub Actions for `sweepai/utils/ticket_utils.py` ✓ ![Flowchart](https://raw.githubusercontent.com/sweepai/sweep/sweep/assets/db0bd603893c36ffc9786f9823dfb47de913ca5c95b38f3a9235c4bd1bd03c09_2693_flowchart.svg)
sweep-nightly[bot] commented 10 months ago

Here's the PR! https://github.com/sweepai/sweep/pull/2695. See Sweep's process at dashboard.

💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: 29ce88717b)

Actions (click)

Sandbox Execution ✓

Here are the sandbox execution logs prior to making any changes:

Sandbox logs for d734fa9
Checking sweepai/utils/ticket_utils.py for syntax errors... ✅ sweepai/utils/ticket_utils.py has no syntax errors! 1/1 ✓
Checking sweepai/utils/ticket_utils.py for syntax errors...
✅ sweepai/utils/ticket_utils.py has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/sweepai/sweep/blob/d734fa919a4d34f5328fbe8d636e7efe34d00e5e/sweepai/agents/name_agent.py#L1-L55 https://github.com/sweepai/sweep/blob/d734fa919a4d34f5328fbe8d636e7efe34d00e5e/sweepai/utils/ticket_utils.py#L96-L129

Step 2: ⌨️ Coding

Ran GitHub Actions for 567be650e200fafaf77de80939e41aa8ad8456ff:
• black:
• Vercel Preview Comments:

Ran GitHub Actions for aaaa83939b6316801faf5c0deeff37637f3bf977:
• Vercel Preview Comments:
• black:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/search-query-filtering-agent_1.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord