Skip to content

cypherbyte-tech/Redis-Plus-AzureOpenAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis-Plus-AzureOpenAI

🚀 Redis-Plus-AzureOpenAI

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.


📝 Introduction

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.


🌟 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.

⚡ Installation

Prerequisites

  • Python 3.8+
  • Node.js and npm (for frontend development)
  • Redis instance (cloud or local)
  • Azure OpenAI credentials

1. Clone the Repository

git clone https://github.com/yourusername/Redis-Plus-AzureOpenAI.git
cd Redis-Plus-AzureOpenAI

2. Backend Setup

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

3. Frontend Setup

Install dependencies and build frontend (if needed):

cd frontend
npm install
npm run build

🚦 Usage

1. Start the Backend

python app.py

2. Launch the Frontend

If using a static server:

cd frontend
npx serve .

Or integrate with Gradio's UI as configured.

3. Access the Application

Open your browser and go to http://localhost:7860 (or your configured port).


🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a Pull Request.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


📁 Project Structure

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
└── ...

💬 Support

For issues and feature requests, please use the GitHub Issues page.


Redis-Plus-AzureOpenAI — Fast, smart, and beautiful AI chat for the modern web! ✨

License

This project is licensed under the MIT License.


🔗 GitHub Repo: https://github.com/Pranesh-2005/Redis-Plus-AzureOpenAI

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published