mirror of
https://github.com/open-webui/pipelines.git
synced 2026-11-05 01:37:24 +00:00
[GH-ISSUE #4] feat: language translation layer #8
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/pipelines#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rvsh2 on GitHub (Mar 31, 2024).
Original GitHub issue: https://github.com/open-webui/pipelines/issues/4
Is your feature request related to a problem? Please describe.
The problem with many models is that they are good only in english language.
Describe the solution you'd like
There could be additional layers for translation:
INPUT: Translation model from any language to English
MIDDLE: Intent model (eg. ChatGpt, ollama models)
OUTPUT: Translation model from English to any language
This would be groundbreaking functionality because many models have trouble with other languages than english.
For example this model could be used for translation:
https://huggingface.co/facebook/mbart-large-50-many-to-many-mmt
Describe alternatives you've considered
No alternatives for now.
Additional context
Add any other context or screenshots about the feature request here.
@tcztzy commented on GitHub (May 24, 2024):
This is some kind like a
middlewareinfastapi/django@tjbck commented on GitHub (May 28, 2024):
@tcztzy pipeline
filtertype has been added to exactly allow this. Compatible with Open WebUI latest dev!@tjbck commented on GitHub (May 30, 2024):
Implemented with
filterpipeline usinginlet, andoutlethooks!https://github.com/open-webui/pipelines/assets/25473318/4f818d72-adca-4ed0-a2e7-c5d061236f2d
https://github.com/open-webui/pipelines/blob/main/pipelines/examples/libretranlsate_filter_pipeline.py
@rvsh2 commented on GitHub (May 30, 2024):
That's look amazing - will test it right away :)
@rvsh2 commented on GitHub (May 30, 2024):
I've installed libretranslate - working fine.

I made a docker for pipelines - working fine on port 9099.
But I don't have pipelines in Admin settings.

Open webui Version seems to be the latest - v0.1.125 (latest)
How to activate pipelines options in open webui?
P.S. if someone need a dockerfile for pipelines I've attached one.
pipelines-docker.zip
@justinh-rahb commented on GitHub (May 30, 2024):
@rvsh2 Pipelines support in the UI is only in
devbranch right now, pull thedevDocker image tag.@rvsh2 commented on GitHub (May 30, 2024):
OK, I managed it to work. It looks very nice. I will try to test it more.
@rvsh2 commented on GitHub (May 30, 2024):
Ok It works very good. No bugs :) but I'm thinking about the concept and do you think there is a possiblity that libretranslate will only translate relevant information for example:
let's ask llama3: Write a simple python script that counts from 1 to 100 (no more than 4 sentences)
I don't know libre translate well, for example can it decide to not translate code section somehow?
@tjbck commented on GitHub (May 30, 2024):
Related: https://github.com/open-webui/open-webui/issues/2152
Should be relatively easy, PR welcome!