Skip to content
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

Add new tool: Doc2X #5753

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add new tool: Doc2X #5753

wants to merge 10 commits into from

Conversation

Menghuan1918
Copy link

Description

As mentioned here (#5675), a tool for OCR of images was added whose output preserves the text in the format of the source image. Its accuracy is higher than using LLM (Vison) to extract text in band format, with significantly fewer illusions.

Example1:

Extracting the value of loss from a screenshot of a machine learning training and plotting a line graph

2024-06-29.22-09-40.mp4

Example2:

Extract maths questions, give them to multiple LLMs (even non-version ones) to answer, and subsequently aggregate them

2024-06-29.21-27-47.mp4

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?

Created several new workflow tests using this new tool and ran several tests in the workflow using its supported image formats (png/jpg)

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

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🔨 feat:tools Tools for agent, function call related stuff. labels Jun 29, 2024
@takatost takatost requested a review from laipz8200 June 30, 2024 02:41
@laipz8200
Copy link
Collaborator

We need to wait for the service provider to support internationalization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 feat:tools Tools for agent, function call related stuff. size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants