Skip to content

fix: enable fuzzySearch tool #1328

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

Merged
merged 1 commit into from
May 27, 2025
Merged

fix: enable fuzzySearch tool #1328

merged 1 commit into from
May 27, 2025

Conversation

jguoamz
Copy link
Contributor

@jguoamz jguoamz commented May 13, 2025

Problem

  • Context gathering is slow

Solution

  • Add fuzzySearch tool

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jguoamz jguoamz changed the title fix: enable fileSearch tool fix: enable fuzzySearch tool May 20, 2025
@jguoamz jguoamz force-pushed the fSearch branch 2 times, most recently from 52a8947 to 3f559ef Compare May 20, 2025 20:12
@jguoamz jguoamz marked this pull request as ready for review May 20, 2025 20:31
@jguoamz jguoamz requested a review from a team as a code owner May 20, 2025 20:31
// Create regex pattern for filtering
const regex = new RegExp(params.pattern, params.caseSensitive ? '' : 'i')
const fuseOptions = {
isCaseSensitive: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you can move this out to be a constant.

const regex = new RegExp(params.pattern, params.caseSensitive ? '' : 'i')
const fuseOptions = {
isCaseSensitive: false,
threshold: 0.2,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's reversed in the library: https://www.fusejs.io/api/options.html#threshold

@jguoamz jguoamz merged commit 93d9c9c into aws:main May 27, 2025
7 checks passed
@jguoamz jguoamz deleted the fSearch branch May 27, 2025 18:49
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