Git Product home page Git Product logo

multilingual-rag's Introduction

Multilingual-RAG

Multilingual-RAG

Overview

Multilingual-RAG is an innovative question-answering system with multilingual capabilities, capable of understanding and generating responses in multiple languages. It is built upon the powerful architecture of Large Language Models (LLMs) with Retrieve-And-Generate (RAG) capabilities. This application harnesses the capabilities of Cohere's multilingual embeddings, LanceDB vector store, LangChain for question answering, and Argos Translate for seamless translation between languages. The user interface is provided by Gradio, ensuring a smooth and interactive user experience.

Supported Languages

Multilingual RAG is designed to support over 100 languages. The specific list of supported languages depends on the capabilities of the Cohere multilingual model and Argos Translate. By default, it includes support for English, Hindi, French, and Turkish languages. Additional languages can be added to suit your use case.

Getting Started

Follow these instructions to set up Multilingual-RAG in your local environment.

Prerequisites

Ensure you have the following prerequisites installed:

  • Python 3.x

Create a .env file and add your Cohere API key: just rename .env-example with .env & past your API

Installation

You can install the required dependencies using the following commands:

pip install -r requirements.txt

For Argos Translate, you can install it as follows:

git clone https://github.com/argosopentech/argos-translate.git
cd argos-translate
virtualenv env
source env/bin/activate
pip install -e .

Running the App

To run the Multilingual-RAG app, use the following command: Currently, support text/pdf file - change the file path inside main.py

python3 main.py

To-Do

[ ] Add direct UI support for uploading files

[ ] Explore open-source multilingual model support

[ ] Audio support

Contributing

Contributions to Multilingual-RAG are welcome! Whether it's bug reports, pull requests, documentation writing, or feature ideas, we appreciate your contributions to making this project even better.

License

This project is licensed under the terms of the MIT License.

๐Ÿค— Acknowledgments Multilingual-RAG is built upon the foundations of several open-source projects:

langchain lancedb Cohere gradio argosopentech

multilingual-rag's People

Contributors

akashad98 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.