KEMBAR78
Move Wikipedia search to separate file by jkornblum-nv · Pull Request #237 · NVIDIA/NeMo-Agent-Toolkit · GitHub
Skip to content

Conversation

@jkornblum-nv
Copy link
Contributor

Description

Moves the Wikipedia search tool to a separate file. It had been included with Tavily.

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
    • Any contribution which contains commits that are not Signed-Off will not be accepted.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

@copy-pr-bot
Copy link

copy-pr-bot bot commented May 9, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Signed-off-by: Jesse Kornblum <jkornblum@nvidia.com>
@jkornblum-nv jkornblum-nv force-pushed the jkornblum-nv-wikipedia-search branch from d87dc2e to 504d902 Compare May 9, 2025 18:16
@yczhang-nv yczhang-nv added improvement Improvement to existing functionality non-breaking Non-breaking change labels May 9, 2025
@AnuradhaKaruppiah
Copy link
Contributor

/ok to test 8e2ae2e

@AnuradhaKaruppiah AnuradhaKaruppiah requested a review from Copilot May 20, 2025 16:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Moves the Wikipedia search tool out of the Tavily internet search module into its own file and updates the registration to include the new module.

  • Extracts the wiki_search tool into wikipedia_search.py
  • Removes duplicated Wikipedia code from tavily_internet_search.py
  • Updates register.py to import the standalone Wikipedia tool

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/aiqtoolkit_langchain/src/aiq/plugins/langchain/tools/wikipedia_search.py New file defining the standalone Wikipedia search tool
packages/aiqtoolkit_langchain/src/aiq/plugins/langchain/tools/tavily_internet_search.py Removed embedded Wikipedia code block
packages/aiqtoolkit_langchain/src/aiq/plugins/langchain/tools/register.py Added import for the new wikipedia_search module
Comments suppressed due to low confidence (2)

packages/aiqtoolkit_langchain/src/aiq/plugins/langchain/tools/wikipedia_search.py:22

  • This new standalone tool implementation should be covered by unit or integration tests to ensure its behavior (e.g., max_results handling) stays correct.
class WikiSearchToolConfig(FunctionBaseConfig, name="wiki_search"):

packages/aiqtoolkit_langchain/src/aiq/plugins/langchain/tools/wikipedia_search.py:46

  • [nitpick] The multi-line description string is indented with extra spaces, which will appear in the generated help text; consider dedenting or using textwrap.dedent to keep the description clean.
        description=("""This tool retrieves relevant contexts from wikipedia search for the given question.

AnuradhaKaruppiah and others added 3 commits May 20, 2025 09:40
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
@AnuradhaKaruppiah
Copy link
Contributor

/ok to test 232a50f

@copy-pr-bot
Copy link

copy-pr-bot bot commented May 20, 2025

/ok to test 232a50f

@AnuradhaKaruppiah, there was an error processing your request: E2

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/

@AnuradhaKaruppiah
Copy link
Contributor

/ok to test 3c28c81

@AnuradhaKaruppiah
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit a8a97af into NVIDIA:develop May 20, 2025
12 checks passed
@jkornblum-nv jkornblum-nv deleted the jkornblum-nv-wikipedia-search branch May 22, 2025 14:21
gfreeman-nvidia pushed a commit to gfreeman-nvidia/AIQToolkit that referenced this pull request May 30, 2025
Moves the Wikipedia search tool to a separate file. It had been included with Tavily.

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AIQToolkit/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Jesse Kornblum (https://github.com/jkornblum-nv)
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#237
Signed-off-by: Greg Freeman <gfreeman@nvidia.com>
ericevans-nv pushed a commit to ericevans-nv/agent-iq that referenced this pull request Jun 3, 2025
Moves the Wikipedia search tool to a separate file. It had been included with Tavily.

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AIQToolkit/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Jesse Kornblum (https://github.com/jkornblum-nv)
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#237
Signed-off-by: Eric Evans <194135482+ericevans-nv@users.noreply.github.com>
ericevans-nv pushed a commit to ericevans-nv/agent-iq that referenced this pull request Jun 3, 2025
Moves the Wikipedia search tool to a separate file. It had been included with Tavily.

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AIQToolkit/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Jesse Kornblum (https://github.com/jkornblum-nv)
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#237
Signed-off-by: Eric Evans <194135482+ericevans-nv@users.noreply.github.com>
AnuradhaKaruppiah pushed a commit to AnuradhaKaruppiah/oss-agentiq that referenced this pull request Aug 4, 2025
Moves the Wikipedia search tool to a separate file. It had been included with Tavily.

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AIQToolkit/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Jesse Kornblum (https://github.com/jkornblum-nv)
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#237
scheckerNV pushed a commit to scheckerNV/aiq-factory-reset that referenced this pull request Aug 22, 2025
Moves the Wikipedia search tool to a separate file. It had been included with Tavily.

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/AIQToolkit/blob/develop/docs/source/advanced/contributing.md).
- We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license.
  - Any contribution which contains commits that are not Signed-Off will not be accepted.
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - Jesse Kornblum (https://github.com/jkornblum-nv)
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: NVIDIA#237
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement to existing functionality non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants