-
Notifications
You must be signed in to change notification settings - Fork 396
Move Wikipedia search to separate file #237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Wikipedia search to separate file #237
Conversation
Signed-off-by: Jesse Kornblum <jkornblum@nvidia.com>
d87dc2e to
504d902
Compare
|
/ok to test 8e2ae2e |
There was a problem hiding this 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_searchtool intowikipedia_search.py - Removes duplicated Wikipedia code from
tavily_internet_search.py - Updates
register.pyto 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.dedentto keep the description clean.
description=("""This tool retrieves relevant contexts from wikipedia search for the given question.
packages/aiqtoolkit_langchain/src/aiq/plugins/langchain/tools/wikipedia_search.py
Show resolved
Hide resolved
packages/aiqtoolkit_langchain/src/aiq/plugins/langchain/tools/register.py
Show resolved
Hide resolved
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
|
/ok to test 232a50f |
@AnuradhaKaruppiah, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/ |
|
/ok to test 3c28c81 |
|
/merge |
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>
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>
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>
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
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
Description
Moves the Wikipedia search tool to a separate file. It had been included with Tavily.
By Submitting this PR I confirm: