Skip to content

fix: apply web search domain filters#278

Open
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/web-search-domain-filters
Open

fix: apply web search domain filters#278
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/web-search-domain-filters

Conversation

@Bortlesboat
Copy link
Copy Markdown

Fixes PlatformNetwork/bounty-challenge#53257.

What changed:

  • WebSearch now appends include_domains as site: filters to the DuckDuckGo query.
  • WebSearch now appends exclude_domains as -site: filters to the DuckDuckGo query.
  • Existing mutual-exclusion validation for include/exclude domain filters is preserved.
  • Added focused regression tests for include and exclude domain URL construction.

Verification:

  • cargo test -p cortex-engine include_domains_are_added_as_site_filters_to_search_url -- --nocapture (red before fix: missing helper)
  • cargo test -p cortex-engine domain -- --nocapture
  • cargo check -p cortex-engine
  • cargo fmt --check --package cortex-engine
  • git diff --check

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant