Skip to content

falakrana/LangChainGROQTranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌍 AI-Powered Text Translation with LangChain & Groq

A high-performance translation API leveraging Gemma 2B via Groq's LPUs for sub-second translations, managed with LangChain and served via FastAPI.

πŸš€ Key Features

  • Lightning-fast translations (<1s latency) using Groq's inference API
  • LangChain pipeline for prompt templating and model management
  • Multi-language support with state-of-the-art LLM translation
  • Production-ready API built with FastAPI (async support)
  • Simple integration via clean REST endpoints

βš™οΈ Tech Stack

  • Backend: FastAPI (Python)
  • AI Pipeline: LangChain
  • LLM: Gemma 2B (via Groq)
  • Hardware Acceleration: Groq LPUs

πŸ“¦ Installation

  1. Clone the repository:
    git clone https://github.com/falakrana/TextTranslationLangchain.git
    cd TextTranslationLangchain
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Add your API key in .env file.

Running app

  1. Run with:
    python app.py
    

API will be available at http://127.0.0.1:8000

Interactive docs available at:

About

A high-performance translation API leveraging Gemma 2B via Groq's LPUs for sub-second translations, managed with LangChain and served via FastAPI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors