Hybrid Retriever Tool icon

Hybrid Retriever Tool

Wraps the Hybrid Retriever as a Tool for AI Agents.

Hybrid Retriever Tool

AI-generated

Summary

Create a named tool wrapping a hybrid retriever that combines multiple retrievers and an optional rerank model to perform content searches based on specified metadata text fields.

Inputs

  • Tool Name (required) — Unique name for the tool within the AI agent, using underscores instead of spaces.
  • Tool Description (required) — Description explaining what the tool does to inform the AI agent when to use it.
  • Text Field Mapping — Comma-separated list of metadata fields (e.g., text, page_content) to consider as page content during retrieval.

Output shape

a single AI tool object implementing a hybrid retriever accessible by the AI agent

The tool uses the configured retrievers and optional rerank model wired as inputs to build the hybrid retriever. The text field mapping defines which metadata fields are treated as content for search. The tool is returned as a single object with the configured name and description.

Discussion