> Source: https://builder-docs.ema.ai/agent-reference/core/combine-search-results
> Title: Combine Search Results Agent

# Combine Search Results Agent

The Combine Search Results agent merges search results from multiple upstream search agents into a single, deduplicated, and weighted result set. Use it when a workflow searches across several knowledge bases or search strategies and needs to present unified results to a downstream response agent.

## Use Cases

-   Your workflow runs multiple Knowledge Search agents against different data sources in parallel.
-   You need to deduplicate and rank results from heterogeneous sources.
-   You want to assign different weights to different sources (e.g., internal docs weighted higher than web results).

## Inputs

Input

Type

Description

`search_results_1`

SearchResults

Results from the first search agent.

`search_results_2`

SearchResults

Results from the second search agent.

`search_results_N`

SearchResults

(Optional) Additional result sets. Accepts any number of named search result inputs.

## Outputs

Output

Type

Description

`combined_results`

SearchResults

The merged, deduplicated, and ranked result set.

## Configurations

Parameter

Description

Default

`weights`

Per-source weight multipliers for ranking. Higher weight = higher priority.

Equal weights

`max_results`

Maximum number of results in the combined output.

`10`

## How to Use This Agent

Search both an internal HR knowledge base and a public benefits FAQ, then combine:

```
chat_trigger -> knowledge_search_hr --------\
 -> knowledge_search_benefits ----> combine_search_results -> respond_using_search_results -> workflow_output
```

## Related Agents

-   [Knowledge Search](/legacy-docs/agent-reference/core/knowledge-search) -- the primary search agent whose outputs feed into this agent.
-   [Rerank Search Results](/legacy-docs/agent-reference/core/rerank-search-results) -- for LLM-based reranking after combining.
-   [Respond using Search Results](/legacy-docs/agent-reference/core/respond-using-search-results) -- typically the downstream consumer.
