Skip to content

fms-byte/Lekhoni

 
 

Repository files navigation

KUET CSE BITFEST 2025 Hackathon

Lekhoni: An AI-powered Banglish to Bangla Conversion App

Table of Contents

  1. Project Overview
  2. Features
  3. Technology Stack
  4. System Architecture
  5. Installation
  6. Usage
  7. Contributors

Overview

This project is an innovative Banglish-to-Bangla conversion application designed to bridge the language gap by enabling seamless translations, chatbot interactions, and content creation in Bangla. It is equipped with advanced AI capabilities and continuous learning features to deliver precise translations and improve over time.


Features

Core Features

  1. Authentication
    • Secure login and registration.
    • API protection for secure access.
  2. Banglish-to-Bangla Conversion
    • Real-time high-accuracy translation using Pretrained Mbert model finetuned from facebook/mbart-large-50-many-to-many-mmt and OpenAI gpt4o model
  3. Content Management
    • A custom Rich Text editor with voice input for writing and converting content.
    • Export as PDF (public/private options).
    • AI-generated titles and captions.
  4. Chatbot Integration
    • Supports Banglish and Bangla inputs.
    • Context-aware responses based on saved content.
  5. Search Functionality
    • App-wide search in both Banglish and Bangla.
  6. Continuous Learning
    • Improves translation accuracy through verified user inputs.

Bonus Features

  • Voice Interaction: Hands-free text input and chatbot responses.
  • Smart Editor: Auto-correct common typing errors.
  • Real-Time Collaboration: Multi-user content editing.
  • Analytics Dashboard: Tracking translation usage and chatbot interactions.
  • Customizable Bangla Fonts: Personalize PDF outputs.
  • Dockerized Deployment: Ensures scalable and consistent environments.

Technology Stack

  • Frontend:

    • Next.js 14 (App Directory)
    • Tailwind CSS (Styling)
    • Shadcn/UI (Component Library)
    • TypeScript
  • Backend:

    • Python (FastAPI)
    • LangChain
    • PostgreSQL Database + LanceDB (Vector DB)
    • Next Auth (Authentication)
  • AI/ML Services:

    • Pre-trained models (mBERT, GPT-4o)
    • OpenAI API
    • Custom LangChain Agents
  • External APIs & CDNs:

    • Cloudinary (Image CDN)
  • Hosting: Docker

  • Version Control: Git & Github


System Architecture

Workflow Diagram

Workflow Diagram Preview


RAG (Chatbot) Model Workflow Diagram

RAG (Chatbot) Model Workflow Diagram Preview


Installation

Prerequisites

  • Node.js
  • Python 3.8 or Higher
  • Docker (optional)

Steps

  1. Clone the repository:
    git clone https://github.com/JHM69/Lekhoni.git
  2. Navigate to the project directory:
    cd Lekhoni
  3. Install dependencies:
    npm install
  4. Install Python Server dependencies:
    pip install -r python-server/requirements.txt
  5. Install Pretrained Model and it's dependencies:
    pip install -r pretained-model/requirements.txt
  6. Set environment variables in .env.
  7. Start the development server:
    npm run dev

Usage

  1. Register/Login into the app.
  2. Input Banglish text in the editor or chatbot.
  3. Convert text to Bangla and export as PDF.
  4. Use the chatbot to ask questions and get responses.
  5. Track analytics and customize settings.

Contribution

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-name
  3. Commit changes:
    git commit -m 'Add new feature'
  4. Push to your branch:
    git push origin feature-name
  5. Open a Pull Request.

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.4%
  • Python 2.7%
  • Other 1.9%