/lightningAI-styleguide-assistant

The Lightning ⚡️ AI Style Guide Assistant & Code Translator is a specialized adaptation of the Lightning Chatbot, designed to assist in maintaining consistency and accuracy in style guides. Leveraging Groq LPUs, it provides real-time style and grammar recommendations, making it an essential tool for editors and writers.

Primary LanguagePythonMIT LicenseMIT

Lightning ⚡️ AI Style Guide Assistant & Code Translator

Supports Meta AI's new Llama 3 Model!

AI Style Guide Assistant Logo

GitHub Stars GitHub Issues GitHub Pull Requests

The Lightning ⚡️ AI Style Guide Assistant is a specialized adaptation of the Lightning Chatbot, designed to assist in maintaining consistency and accuracy in code. Powered by Groq LPUs (Language Processing Units), it offers one of the fastest inference speeds on the market as of April 2024.

Features

  • ⚡ Real-time style and grammar recommendations powered by Groq LPUs.
  • 📘 Supports custom style guide integration for personalized recommendations.
  • 📝 Lightning fast style guide rewrites and code translation
  • 🌐 Deploy easily using the Streamlit web framework.

Available Models

  • 🦙 Llama3-70B-8192: Experience high-end performance with this large-scale model, ideal for complex language tasks and deep learning insights.
  • 🦙 Llama3-8B-8192: Harness robust capabilities with this more accessible version of Llama3, perfect for a wide range of AI applications.
  • 🌟 Mixtral-8x7B-32768: Leverage the power of ensemble modeling with Mixtral's extensive capacity for nuanced understanding and response generation.
  • 🦙 Llama2-70B-4096: Utilize the proven effectiveness of Llama2 for comprehensive language processing and application development.
  • 💎 Gemma-7B-IT: Explore specialized interactions and tech-focused solutions with Gemma, tailored for IT and technical content.

Installation

  1. Clone the repository:

    git clone https://github.com/MaxMLang/lightningAI-styleguide-assistant.git
    
  2. Navigate to the project directory:

    cd lightningAI-styleguide-assistant
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Configure the Groq API key:

    • Create a .env file in the project directory.
    • Add the following line, replacing your_api_key with your actual Groq API key:
      GROQ_API_KEY=your_api_key
      
  5. Launch the assistant:

    streamlit run app.py
    
  6. Open the provided URL in your browser to access the AI Style Guide Assistant interface.

Usage

  1. Select your custom style guide settings from the sidebar.
  2. Type a block of text into the input field and submit.
  3. Receive style and grammar recommendations based on your settings.
  4. Apply or dismiss suggestions and see the edits in real-time.
  5. Continue refining your text with further input and revisions.

License

This project is licensed under the MIT License.

Acknowledgements

  • Groq for the cutting-edge LPUs.
  • Langchain for robust language modeling tools.
  • Streamlit for the user-friendly web application framework.