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

fix(agentic-context): update search tool prompt and examples #6632

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

abeatrix
Copy link
Contributor

As discussed with @camdencheek , our search endpoint for context retrieval doesn't support Sourcegraph-style search query. This PR modifies the search examples for the "Search tool" to remove the use of Sourcegraph-style search query.

Test plan

Ask Cody Write a unit test for the openExternalAuthUrl function with agentic context enabled:

Before: It'd run a code search with openExternalAuthUrl file:* as the search query

image

After: It'd run a code search with openExternalAuthUrl as the search query

image

- Update the search tool prompt to clarify that natural language search is not supported
- Modify the search examples to remove use of Sourcegraph-style search query
@abeatrix abeatrix requested review from camdencheek and a team January 13, 2025 23:22
Copy link
Contributor

@dominiccooney dominiccooney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving given the limited scope of this, but I have some doubts about one choice of example.

vscode/src/chat/agentic/CodyTool.ts Outdated Show resolved Hide resolved
Copy link
Member

@camdencheek camdencheek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following up!

@abeatrix
Copy link
Contributor Author

remove the $ and verified it behaves the same with the example query with the lastest commit:
image

@abeatrix abeatrix enabled auto-merge (squash) January 14, 2025 08:27
@abeatrix abeatrix merged commit 5a8821d into main Jan 14, 2025
21 checks passed
@abeatrix abeatrix deleted the bee/update-keyword-prompt branch January 14, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants