Skip to content

**<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Honor configured rerank top_k in web_search defaults** #61

@weilixu

Description

@weilixu

P2 Badge Honor configured rerank top_k in web_search defaults

invoke() always uses args.top_k (defaulting to 5) when reranking, so WebSearchToolConfig.rerank.top_k from tools_config is effectively ignored unless the model explicitly supplies top_k in each tool call. This causes configured rerank depth to be silently bypassed, which can skew result quality and performance in production setups relying on declarative tool config.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #58 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions