feat: add GroundRoute web search integration#3479
Open
jp0xz wants to merge 2 commits into
Open
Conversation
Add the groundroute-haystack package (scaffolded via scripts/create_new_integration.py): GroundRouteWebSearch, a web-search component for GroundRoute, a meta search layer over six engines (Serper, Brave, Exa, Tavily, Firecrawl, Perplexity) with price-based routing and failover. Component lives under the namespace package haystack_integrations.components.websearch.groundroute, with run + run_async, to_dict/from_dict, and httpx-only dependencies. Includes the scaffold-generated CI workflow, labeler, coverage, and root README registrations. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
90eb63d to
c3bbaa7
Compare
Add @pytest.mark.integration tests (sync + async) that hit the live GroundRoute API, skipped when GROUNDROUTE_API_KEY is absent (mirroring tavily). This lets the integration CI step collect at least one test and exit 0 instead of exit 5 (no tests collected) when no key is configured. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
groundroute-haystackintegration: aGroundRouteWebSearchcomponent (Web Search type, mirroring the Tavily / SerperDev pattern). GroundRoute is a meta search layer, one API in front of six engines (Serper, Brave, Exa, Tavily, Firecrawl, Perplexity), routing each query to the cheapest engine that clears a quality bar and failing over if one is down.Why
A drop-in, opt-in multi-engine web-search option for Haystack pipelines, useful for high-volume retrieval where single-engine cost, rate limits, or outages are a pain. It's selected like any other websearch component.
Details
groundroute-haystackunderintegrations/groundroute/, namespacehaystack_integrations.components.websearch.groundroute.httpxonly, no other new dependencies.to_dict/from_dictserialization;Secret.from_env_var("GROUNDROUTE_API_KEY").ruff+mypyclean.integrations/tavily).Notes