[PR #5517] feat: add new features to enhance image and link handling in Jina tool #24963

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

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

State: closed
Merged: Yes


Description

Adds new features to enhance image and link handling in the Jina tool. The changes include:

  • Adding captions to all images at the specified URL with the image_caption feature, which helps downstream LLMs interact with the images in activities such as reasoning and summarizing.
  • Creating a "Buttons & Links" section at the end of the page with the gather_all_links_at_the_end feature, aiding downstream LLMs or web agents in navigating the page or taking further actions.
  • Creating an "Images" section at the end of the page with the gather_all_images_at_the_end feature, providing downstream LLMs an overview of all visuals on the page, potentially improving reasoning.

Snipaste_2024-06-23_13-50-13

Fixes #5524 (issue)

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update, included: Dify Document
  • Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • Dependency upgrade

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

  • TODO

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/5517 **State:** closed **Merged:** Yes --- # Description Adds new features to enhance image and link handling in the Jina tool. The changes include: - Adding captions to all images at the specified URL with the `image_caption` feature, which helps downstream LLMs interact with the images in activities such as reasoning and summarizing. - Creating a "Buttons & Links" section at the end of the page with the `gather_all_links_at_the_end` feature, aiding downstream LLMs or web agents in navigating the page or taking further actions. - Creating an "Images" section at the end of the page with the `gather_all_images_at_the_end` feature, providing downstream LLMs an overview of all visuals on the page, potentially improving reasoning. ![Snipaste_2024-06-23_13-50-13](https://github.com/langgenius/dify/assets/46273173/b2d565e6-402c-4ead-909e-43eb025710b5) Fixes #5524 (issue) ## Type of Change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement - [ ] Dependency upgrade # 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 - [ ] TODO # 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 - [ ] 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:24:01 -05:00
yindo closed this issue 2026-02-21 20:24:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#24963