Skip to content

feat(tool): add Keenable as a selectable web_search provider - #507

Merged
maralbahari merged 1 commit into
vllm-project:mainfrom
KGKallasmaa:add-keenable-search
Nov 10, 2026
Merged

maralbahari merged 1 commit into
vllm-project:mainfrom
KGKallasmaa:add-keenable-search

Conversation

@KGKallasmaa

Copy link
Copy Markdown
Contributor

Summary

Adds Keenable, an independent web index built for agents, as a selectable web_search provider beside You.com, Brave Search, Tavily, SearXNG and Serply. It follows the shape of the Tavily and Serply providers (#329, #420).

  • WebSearchProviderKind::Keenable (keenable):
    • Key from KEENABLE_API_KEY.
    • Base URL https://api.keenable.ai.
    • No provider-imposed concurrency ceiling (per-request metering), so it inherits max_concurrent_gateway_calls.
  • Works without an API key. tool/web_search/keenable.rs:
    • With no key (or a blank one), it calls Keenable's public POST /v1/search/public with an X-Keenable-Title: vLLM Agentic API header. AGENTIC_WEB_SEARCH_PROVIDER=keenable alone is a working configuration.
    • With KEENABLE_API_KEY it calls POST /v1/search with the key in X-API-Key, and Debug stays redacted through the shared ApiKey.
  • Request body is {query, max_results}; count (or search_context_size) is clamped to 20.
  • Keenable has no server-side domain, freshness, locale or safe-search parameters:
    • Tool and argument domain filters keep the usual precedence and conflict check, and the shared DomainFilter applies them on the response.
    • The rest are logged as ignored at debug level, like the other providers do.
  • Response mapping:
    • The description is snippet, falling back to description (often empty upstream). page_age comes from published_at.
    • Blank URLs are dropped, and a null results is treated as empty. Everything lands in web, so news stays empty.
  • Errors: 401/403 name KEENABLE_API_KEY without echoing anything secret. 429 is surfaced with Retry-After and never retried. Other statuses include the upstream body.
  • Docs: README provider section and tables, CHANGELOG, ARCHITECTURE, and the deploying guide.

Test Plan

  • 5 unit tests in keenable.rs cover:
    • Redacted Debug and default/override base URL.
    • Public vs keyed endpoint and headers.
    • Body shape and clamping, with ignored arguments not sent.
    • Client-side config domain filters.
    • Response mapping, including the snippet→description fallback, published_at, blank URLs and null results.
  • config.rs kind assertions and the unknown-provider message now include keenable.
  • web_search_config_selects_keenable_with_or_without_a_key, plus a serply → keenable case in the provider-switch loop.
  • cargo fmt --all -- --check passes. scripts/check_rust_file_sizes.py passes (341 files): all touched production files stay within their limits, so no exception changes were needed.
  • I couldn't run cargo test / clippy in my sandbox because openssl-sys has no system OpenSSL/pkg-config here. Please let CI run them, and I'll fix anything it flags.
  • The request and response shape (both endpoints, max_results, the snippet/description fields) is the same one I verified live against api.keenable.ai in other integrations today.

Disclosure: I work with the Keenable team. Happy to adjust scope, naming, or the key-free default, or to drop this if it isn't a direction you want for the project.

@KGKallasmaa

Copy link
Copy Markdown
Contributor Author

Hi @maralbahari @haoshan98, would you be open to taking a look when you have a moment? Happy to adjust anything. (Disclosure: I work with the Keenable team.)

@KGKallasmaa

Copy link
Copy Markdown
Contributor Author

@franciscojavierarceo thanks for the approval! CI is green, so this should be ready whenever you or @maralbahari want to merge.

@maralbahari

Copy link
Copy Markdown
Collaborator

@KGKallasmaa Thanks for the contribution. will merge once CI passes.

@maralbahari
maralbahari merged commit b1902b0 into vllm-project:main Nov 10, 2026
17 checks passed
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