[PR #5371] feat: allow non-english wikipedias to be searched #24893

Closed
opened 2026-02-21 20:23:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/5371

State: closed
Merged: Yes


Description

This PR adds new parameter language to wikipedia_search tool, to allow non-English Wikipedia to be searched.

Considerations: Wikipedia has so many languages that it is difficult to support them all. Therefore, the languages that are currently supported by Dify are used as parameters.

Fixes #5370

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Tested with GPT-4o.

  • Simply ask in English and confirm that English Wikipedia is searched
    image
  • Simply ask in Japanese and confirm that Japanese Wikipedia is searched
    image
  • Ask in English, but tell the bot to refer to the Japanese Wikipedia
    image
  • Ask in English, but tell the bot to refer to the German Wikipedia
    image

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
  • optional I have made corresponding changes to the documentation
  • optional I have added tests that prove my fix is effective or that my feature works
  • optional New and existing unit tests pass locally with my changes
**Original Pull Request:** https://github.com/langgenius/dify/pull/5371 **State:** closed **Merged:** Yes --- # Description This PR adds new parameter `language` to `wikipedia_search` tool, to allow non-English Wikipedia to be searched. **Considerations**: [Wikipedia has so many languages](https://meta.wikimedia.org/wiki/List_of_Wikipedias) that it is difficult to support them all. Therefore, the languages that are currently supported by Dify are used as parameters. Fixes #5370 ## Type of Change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration Tested with GPT-4o. - [x] Simply ask in English and confirm that English Wikipedia is searched ![image](https://github.com/langgenius/dify/assets/2920259/adbe8d44-d8a0-430b-ba05-84fcb8fa7426) - [x] Simply ask in Japanese and confirm that Japanese Wikipedia is searched ![image](https://github.com/langgenius/dify/assets/2920259/9a07d6e4-16bc-41de-9afa-a015788e1089) - [x] Ask in English, but tell the bot to refer to the Japanese Wikipedia ![image](https://github.com/langgenius/dify/assets/2920259/8b19288e-9e04-464c-b334-5cfd4bda38e1) - [x] Ask in English, but tell the bot to refer to the German Wikipedia ![image](https://github.com/langgenius/dify/assets/2920259/7e03fddd-2ade-4aba-9861-1e91537f6553) # Suggested Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [x] My changes generate no new warnings - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods - [ ] `optional` I have made corresponding changes to the documentation - [ ] `optional` I have added tests that prove my fix is effective or that my feature works - [ ] `optional` New and existing unit tests pass locally with my changes
yindo added the pull-request label 2026-02-21 20:23:53 -05:00
yindo closed this issue 2026-02-21 20:23:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#24893