Skip to content

Raufjatoi/Multilingual-chatbot

Repository files navigation

🌍 Multilingual AI Assistant

A modern chatbot that can communicate in multiple languages, powered by GROQ's Compound Beta model, delivering fast and accurate responses with advanced context awareness.

✨ Features

  • 🤖 Powered by GROQ Compound Beta

    • High-performance language model
    • Fast response times
    • Advanced reasoning capabilities
    • Accurate multilingual support
  • 💬 Chat in multiple languages:

    • English
    • Urdu
    • Hindi
    • Chinese
    • Spanish
    • French
    • German
    • Arabic
    • Turkish
  • 🧠 Advanced Context Awareness

    • Memory feature for conversation context
    • Remembers up to 5 previous messages
    • Toggle memory on/off with visual indicator
  • 📂 File Support

    • Upload and analyze text files
    • PDF document support
    • Multiple file handling
    • Smart file content analysis
    • Context-aware document queries
  • 🎙️ Voice Features

    • Voice input
    • Text-to-speech output
  • 🔍 Enhanced Capabilities

    • Web search functionality
    • Web scraping for real-time information
    • Context-aware responses
    • Formatted responses with markdown support
    • Code syntax highlighting

🚀 Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • GROQ API key

Installation

  1. Clone the repository:
git clone https://github.com/Raufjatoi/Multilingual-chatbot.git
cd Multilingual-chatbot
  1. Install dependencies:
npm install
# or
yarn install
  1. Create a .env file in the root directory:
VITE_GROQ_API_KEY=your_groq_api_key
  1. Start the development server:
npm run dev
# or
yarn dev

💻 Usage

  1. Select your preferred language from the dropdown
  2. Type your message or use voice input
  3. Upload files for analysis and context
  4. Toggle memory button for contextual conversations
  5. Enable text-to-speech for spoken responses

🔮 Future Plans

  • WhatsApp Integration
    • Direct chat through WhatsApp
    • File sharing support
    • Voice message handling
  • Website Integration
    • Embeddable chat widget
    • Custom styling options
    • API endpoints for integration
  • Enhanced Analytics
    • Conversation insights
    • Usage statistics
    • Performance metrics

Python Folder 📁

The Python folder was just for researching and trying out the models and features on Streamlit before working on React-Vite, so yeah, you can find some code there too if you're interested ;)

🛠️ Built With

  • React + TypeScript
  • Vite
  • Tailwind
  • Shadcn/ui
  • GROQ Compound Beta
  • React Markdown
  • Syntax Highlighting

🤝 Contributing

Contributions, issues, and feature requests are welcome!

📧 Contact

Abdul Rauf Jatoi: Gmail