A blazing fast chat client powered by Redis semantic cache and Azure OpenAI, featuring language-aware memory, a beautiful UI, and PWA (Progressive Web App) support. Redis-Plus-AzureOpenAI combines a Python backend (Gradio, Redis, Azure OpenAI) with a modern frontend, delivering username persistence, Markdown chat, and advanced cache utilities.
Redis-Plus-AzureOpenAI is designed to provide an intelligent, responsive, and scalable chat experience. Leveraging Redis for semantic caching and Azure OpenAI for natural language understanding, this app stores conversation memory contextually, supports user identity persistence, and offers a Markdown-enabled chat interface. The project is ideal for developers seeking to build AI-powered chat apps with robust caching and modern web features.
- Semantic Cache: Store and retrieve chat history using Redis and sentence embeddings for fast, context-aware responses.
- Azure OpenAI Integration: Harness the power of Azure OpenAI for state-of-the-art conversational AI.
- Language-Aware Memory: Maintain contextually relevant memory for personalized conversations.
- Beautiful, Modern UI: Clean, responsive frontend with Markdown support for chat messages.
- PWA Support: Installable as a Progressive Web App for native-like experience.
- Username Persistence: Usernames are securely persisted in local storage for seamless experience across sessions.
- Cache Utilities: Advanced cache management and inspection tools for developers.
- Easy Backend: Python backend powered by Gradio, Redis, and Azure OpenAI.
- Python 3.8+
- Node.js and npm (for frontend development)
- Redis instance (cloud or local)
- Azure OpenAI credentials
git clone https://github.com/yourusername/Redis-Plus-AzureOpenAI.git
cd Redis-Plus-AzureOpenAI
Install Python dependencies:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Create a .env
file and configure your Redis and Azure OpenAI credentials:
REDIS_HOST=your_redis_host
REDIS_PORT=your_redis_port
REDIS_PASSWORD=your_redis_password
AZURE_OPENAI_API_KEY=your_azure_openai_key
AZURE_OPENAI_ENDPOINT=your_azure_openai_endpoint
Install dependencies and build frontend (if needed):
cd frontend
npm install
npm run build
python app.py
If using a static server:
cd frontend
npx serve .
Or integrate with Gradio's UI as configured.
Open your browser and go to http://localhost:7860 (or your configured port).
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create your feature branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
Redis-Plus-AzureOpenAI/
├── app.py # Python backend (Gradio, Redis, Azure OpenAI)
├── core_logic.py # Core logic and utilities
├── frontend/
│ ├── script.js # Frontend logic (username, chat, cache)
│ └── ... # Other frontend assets and files
├── requirements.txt
├── README.md
├── LICENSE
└── ...
For issues and feature requests, please use the GitHub Issues page.
Redis-Plus-AzureOpenAI — Fast, smart, and beautiful AI chat for the modern web! ✨
This project is licensed under the MIT License.
🔗 GitHub Repo: https://github.com/Pranesh-2005/Redis-Plus-AzureOpenAI