[PR #3325] [MERGED] feat: Add multilingual support for ocr module #4262

Closed
opened 2026-02-22 18:35:28 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3325
Author: @doodle777
Created: 2/22/2025
Status: Merged
Merged: 2/27/2025
Merged by: @timothycarambat

Base: masterHead: master


📝 Commits (5)

  • ee70c1c Add multilingual support for ocr mudule
  • 7a1a845 Merge branch 'master' into master
  • 5a489c8 Add OCR langauge as server var that is passed into Collector
  • d0c58c7 persist TARGET_OCR_LANG
  • 40ac294 update docker example env

📊 Changes

8 files changed (+229 additions, -7 deletions)

View changed files

📝 collector/processSingleFile/convert/asImage.js (+4 -2)
📝 collector/processSingleFile/convert/asPDF/index.js (+4 -2)
📝 collector/utils/OCRLoader/index.js (+50 -3)
collector/utils/OCRLoader/validLangs.js (+155 -0)
📝 docker/.env.example (+5 -0)
📝 server/.env.example (+5 -0)
📝 server/utils/collectorApi/index.js (+3 -0)
📝 server/utils/helpers/updateENV.js (+3 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #3314

What is in this change?

  • Add multilingual support for ocr mudule
  • Add environment variable OCR_LANG and default valube is "eng"

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3325 **Author:** [@doodle777](https://github.com/doodle777) **Created:** 2/22/2025 **Status:** ✅ Merged **Merged:** 2/27/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`ee70c1c`](https://github.com/Mintplex-Labs/anything-llm/commit/ee70c1c163011d8cfed5b98e8b68a2096755405f) Add multilingual support for ocr mudule - [`7a1a845`](https://github.com/Mintplex-Labs/anything-llm/commit/7a1a84509dbb1521d55219e0a5e04e2acd422c51) Merge branch 'master' into master - [`5a489c8`](https://github.com/Mintplex-Labs/anything-llm/commit/5a489c8d3f1f4ae2758b52a7261401b55c35401e) Add OCR langauge as server var that is passed into Collector - [`d0c58c7`](https://github.com/Mintplex-Labs/anything-llm/commit/d0c58c78e1dcab2388de2150810a3d7a5bc34679) persist TARGET_OCR_LANG - [`40ac294`](https://github.com/Mintplex-Labs/anything-llm/commit/40ac2942cf8ee5311e87d93f46f627acb660f067) update docker example env ### 📊 Changes **8 files changed** (+229 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `collector/processSingleFile/convert/asImage.js` (+4 -2) 📝 `collector/processSingleFile/convert/asPDF/index.js` (+4 -2) 📝 `collector/utils/OCRLoader/index.js` (+50 -3) ➕ `collector/utils/OCRLoader/validLangs.js` (+155 -0) 📝 `docker/.env.example` (+5 -0) 📝 `server/.env.example` (+5 -0) 📝 `server/utils/collectorApi/index.js` (+3 -0) 📝 `server/utils/helpers/updateENV.js` (+3 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #3314 ### What is in this change? - Add multilingual support for ocr mudule - Add environment variable **OCR_LANG** and default valube is "eng" ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:28 -05:00
yindo closed this issue 2026-02-22 18:35:28 -05:00
yindo changed title from [PR #3325] feat: Add multilingual support for ocr module to [PR #3325] [MERGED] feat: Add multilingual support for ocr module 2026-06-05 15:17:40 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4262