LangGenie is a cutting-edge AI-powered language generation and translation platform. It combines modern machine learning models with an intuitive user interface to help users generate and translate text effortlessly.
- ✏️ Language Generation: Create natural, high-quality text with the help of advanced AI models.
- 🌐 Translation: Translate text between multiple languages instantly.
- ⚡️ Seamless Integration: Frontend and backend communicate smoothly for a real-time experience.
- 🚀 Modern Web Technologies: Fast, responsive, and reliable user interface.
-
Frontend:
- React
- Tailwind CSS
- Vite
- Axios
-
Backend:
- Python
- FastAPI
- LangChain
- Hugging Face Transformers
- GROQ API for enhanced performance
- Wikipedia & ArXiv retrieval tools
LangGenie/
├── frontend/ # React-based UI
├── backend/ # FastAPI-powered backend
├── LICENSE
└── README.md # Project documentation (this file)
The backend service is currently not working because of free tier limitations on Render.com. You can still explore the frontend locally or deploy your own backend instance using the provided code.
- Node.js and npm (for the frontend)
- Python 3.9+ and pip (for the backend)
- Poetry (for backend dependency management)
cd frontend
npm install
# or
yarn install
# Start development server
npm run dev
# or
yarn devThe frontend will be running at http://localhost:5173.
-
Install Poetry (if not already installed):
pip install poetry
-
Install dependencies:
cd backend poetry install -
Configure environment variables (add your GROQ API key to your
.envfile or export it):export GROQ_API_KEY=your_api_key_here -
Run the backend app:
poetry run python app.py
The backend will be running at http://localhost:8000.
Create a .env file in the frontend directory:
VITE_API_URL=http://localhost:8000Ensure your .env file (or exported variables) includes:
export GROQ_API_KEY=your_api_key_herenpm run lint(Consider adding unit tests for better code coverage.)
You can use tools like pytest to add automated tests for the backend API.
npm run buildThe production-ready frontend build will be generated in the frontend/dist directory.
Contributions are welcome! Please:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed explanation.
This project is licensed under the MIT License.
For questions, feel free to open an issue on GitHub.
Enjoy using LangGenie! Let us know how we can improve.