Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/im-anhat/llama-latte

AI-powered coffee shop app built with React Native, featuring Llama 3 model integration, Retrieval-Augmented Generation (RAG) for personalized chatbot responses, agent-based task handling, and tailored product recommendations using Market Basket Analysis. Deployed with Docker and RunPod API for scalability and cross-platform compatibility.
https://github.com/im-anhat/llama-latte

Last synced: 3 days ago
JSON representation

AI-powered coffee shop app built with React Native, featuring Llama 3 model integration, Retrieval-Augmented Generation (RAG) for personalized chatbot responses, agent-based task handling, and tailored product recommendations using Market Basket Analysis. Deployed with Docker and RunPod API for scalability and cross-platform compatibility.

Awesome Lists containing this project

README

        

# β˜• **Llama-Latte**

> **Llama-Latte** is an AI-powered coffee shop application designed to enhance customer experience through personalized chatbot interactions, real-time recommendations, and seamless order management. Built with **React Native** and **Llama 3 model**, it leverages **Retrieval-Augmented Generation (RAG)** and **Market Basket Analysis** for accurate, context-aware responses and tailored product suggestions.


Llama-Latte Screenshot

---

## πŸ“Έ **Screenshots**




Image 1




Image 2


---

## πŸ’» **Technologies**

### **Frontend**

- **React Native**
- **Expo** for rapid app development
- **NativeWind** for styling

### **AI and Backend**

- **Llama 3 Model** for AI-driven chatbot
- **Retrieval-Augmented Generation (RAG)** for personalized responses
- **Firebase Firestore** for real-time database
- **RunPod API** for scalable model hosting

### **Data Science**

- **Market Basket Analysis** using Apriori algorithm for recommendation generation

### **DevOps**

- **Docker** for containerization
- **RunPod** for deployment and hosting
- **GitHub Actions** for CI/CD

---

## πŸš€ **Features**

### πŸ€– **AI-Driven Chatbot**

- Built with **Llama 3 Model** to handle customer queries, recommend products, and manage orders seamlessly.
- Enhanced with **RAG** for context-aware responses by retrieving real-time data from the coffee shop database.

### πŸ›’ **Personalized Recommendations**

- Utilizes **Market Basket Analysis** to provide tailored recommendations based on purchase patterns.
- Offers **popularity-based** and **category-specific** recommendations for drinks and pastries.

### 🎯 **Agent-Based System**

- Specialized agents handle:
- **Order-taking**: Validates menu items and calculates totals.
- **Product recommendations**: Suggests complementary products.
- **Query filtering**: Ensures only relevant questions are processed.

### πŸ–₯️ **Cross-Platform Compatibility**

- Developed with **React Native** for smooth deployment on iOS and Android.
- Deployed on **RunPod** for scalable API and AI model integration.

---

## πŸ› οΈ **Getting Started**

### πŸ“‹ **Prerequisites**

- **Node.js** (v14 or higher)
- **npm** or **yarn**
- **Expo CLI**
- **Firebase** account with Firestore configured
- **Docker** for local containerization (optional)

### πŸš€ **Installation**

1. **Clone the Repository**:

```bash
git clone https://github.com/yourusername/llama-latte.git
cd llama-latte

```

2. **Install Dependencies**:

```bash
npm install
```

3. **Set Up Environment Variables**:
Create a .env file in the root directory with:

RUNPOD_TOKEN=your_runpod_token

RUNPOD_CHATBOT_URL=your_runpod_chatbot_url

MODEL_NAME=meta-llama/Meta-Llama-3-8B-Instruct

FIREBASE_API_KEY=your_firebase_api_key

4. **Start the Application**:
```bash
npx expo start --tunnel
```

## πŸ“Š Architecture

Frontend

β€’ React Native app powered by Expo

β€’ NativeWind for consistent and flexible UI styling

Backend

β€’ Llama 3 model deployed on RunPod API

β€’ Firebase Firestore for real-time database management

Recommendation System

β€’ Apriori algorithm for generating purchase-based recommendations

β€’ Popularity-based recommendations categorized by product types

## πŸ› οΈ Key Functionalities

🌟 AI-Driven Order Management

β€’ Process orders with accurate validation and price calculation.

β€’ Suggest complementary products based on the customer’s current selection.

πŸ” Smart Recommendations

β€’ Apriori Recommendations: Suggest items frequently purchased together.

β€’ Popular Recommendations: Suggest trending items in the coffee shop.

β€’ Category-Specific Recommendations: Suggest items within a specific category based on customer interest.

πŸ”’ Secure and Scalable Deployment

β€’ Deployed with Docker and RunPod, ensuring scalability and cross-platform compatibility.

β€’ Sensitive configurations securely managed with environment variables.