mirror of
https://github.com/harivansh-afk/RAG-ui.git
synced 2026-04-17 20:05:08 +00:00
Update README.md
This commit is contained in:
parent
a241013966
commit
a3fdcb4880
1 changed files with 71 additions and 60 deletions
119
README.md
119
README.md
|
|
@ -1,25 +1,27 @@
|
||||||
# RAG-UI
|
# AI Agent App
|
||||||
|
|
||||||
A modern web application for Retrieval-Augmented Generation (RAG) that leverages AI to provide intelligent document-based chat interactions. Built with React, TypeScript, and a powerful n8n backend for RAG processing.
|
A cutting-edge AI-powered application designed to simplify and supercharge your daily workflows. This intelligent agent seamlessly handles email automation, conducts precise web searches, and retrieves relevant files from Google Drive to provide personalized and context-aware responses. With a modern UI, robust backend processing, and secure authentication, the AI Agent App is your ultimate assistant for productivity and efficiency.
|
||||||
|
|
||||||
## 🌟 Features
|
## 🌟 Features
|
||||||
|
|
||||||
- **AI-Powered Chat**: Advanced RAG system processing 1000+ queries with 90% relevance rate
|
- **AI Task Automation**: Handles complex tasks like email composition, web search, and file retrieval.
|
||||||
- **High Performance**: Optimized client-side architecture with 40% reduced API calls
|
- **High Performance**: Optimized client-side architecture with 40% reduced API calls.
|
||||||
- **Intelligent Retrieval**: Context-aware document search with 95% query response accuracy
|
- **Context-Aware Retrieval**: Dynamically accesses and references Google Drive files.
|
||||||
- **Secure Authentication**: Zero-breach security with Supabase authentication
|
- **Secure Authentication**: Zero-breach security with Supabase authentication.
|
||||||
- **Modern Tech Stack**: React 18, TypeScript, Vite, and Tailwind CSS
|
- **Modern Tech Stack**: React 18, TypeScript, Vite, and Tailwind CSS.
|
||||||
- **Real-time Updates**: Instant message delivery with optimized local storage
|
- **Real-Time Updates**: Instant task execution feedback with optimized local storage.
|
||||||
- **Responsive Design**: Fluid UI built with Radix UI components
|
- **Responsive Design**: Fluid UI built with Radix UI components.
|
||||||
- **Type Safety**: Full TypeScript support throughout the application
|
- **Type Safety**: Full TypeScript support throughout the application.
|
||||||
|
|
||||||
## 🧠 AI Capabilities
|
## 🧠 AI Capabilities
|
||||||
|
|
||||||
- **Document Processing**: Efficient handling of various document formats
|
- **Email Automation**: Generates and sends professional emails tailored to user needs.
|
||||||
- **Context Retention**: Maintains conversation context for more relevant responses
|
- **Web Search**: Conducts intelligent searches and summarizes results.
|
||||||
- **Source Attribution**: Transparent source referencing for retrieved information
|
- **Google Drive Integration**: Retrieves and uses files as references for contextual responses.
|
||||||
- **Relevance Scoring**: AI-powered ranking of retrieved documents
|
- **Context Retention**: Maintains conversation history for seamless task execution.
|
||||||
- **Query Optimization**: Intelligent query preprocessing for better results
|
- **Source Attribution**: Transparent referencing of retrieved information.
|
||||||
|
- **Relevance Scoring**: AI-powered ranking of search results and file content.
|
||||||
|
- **Query Optimization**: Intelligent preprocessing for better task execution.
|
||||||
|
|
||||||
## 🚀 Getting Started
|
## 🚀 Getting Started
|
||||||
|
|
||||||
|
|
@ -27,8 +29,9 @@ A modern web application for Retrieval-Augmented Generation (RAG) that leverages
|
||||||
|
|
||||||
- Node.js (v18 or higher)
|
- Node.js (v18 or higher)
|
||||||
- npm or yarn
|
- npm or yarn
|
||||||
- n8n instance for RAG processing
|
- n8n instance for task processing
|
||||||
- Supabase account
|
- Supabase account
|
||||||
|
- Google Drive API credentials
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
||||||
|
|
@ -38,6 +41,8 @@ Create a `.env` file in the root directory:
|
||||||
VITE_SUPABASE_URL=your_supabase_url
|
VITE_SUPABASE_URL=your_supabase_url
|
||||||
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
|
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
|
||||||
VITE_N8N_WEBHOOK_URL=your_n8n_webhook_url
|
VITE_N8N_WEBHOOK_URL=your_n8n_webhook_url
|
||||||
|
VITE_GOOGLE_API_KEY=your_google_api_key
|
||||||
|
VITE_GOOGLE_DRIVE_FOLDER_ID=your_drive_folder_id
|
||||||
```
|
```
|
||||||
|
|
||||||
### Quick Start
|
### Quick Start
|
||||||
|
|
@ -45,8 +50,8 @@ VITE_N8N_WEBHOOK_URL=your_n8n_webhook_url
|
||||||
1. Clone and setup:
|
1. Clone and setup:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/yourusername/RAG-ui.git
|
git clone https://github.com/yourusername/ai-agent-app.git
|
||||||
cd RAG-ui
|
cd ai-agent-app
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -60,57 +65,63 @@ npm run dev
|
||||||
|
|
||||||
### Frontend Architecture
|
### Frontend Architecture
|
||||||
|
|
||||||
- **React 18**: Latest features including concurrent rendering
|
- **React 18**: Latest features including concurrent rendering.
|
||||||
- **TypeScript**: Strong type safety across the application
|
- **TypeScript**: Strong type safety across the application.
|
||||||
- **Vite**: Lightning-fast build tooling
|
- **Vite**: Lightning-fast build tooling.
|
||||||
- **Tailwind CSS**: Utility-first styling
|
- **Tailwind CSS**: Utility-first styling.
|
||||||
- **Radix UI**: Accessible component library
|
- **Radix UI**: Accessible component library.
|
||||||
|
|
||||||
### Backend Services
|
### Backend Services
|
||||||
|
|
||||||
- **n8n RAG Processing**:
|
- **n8n Task Processing**:
|
||||||
- Document indexing and retrieval
|
- Email automation.
|
||||||
- Context-aware search
|
- Web search.
|
||||||
- Response generation
|
- File retrieval and reference.
|
||||||
|
- Response generation.
|
||||||
- **Supabase Integration**:
|
- **Supabase Integration**:
|
||||||
- Secure authentication
|
- Secure authentication.
|
||||||
- Session management
|
- Session management.
|
||||||
- Protected routes
|
- Protected routes.
|
||||||
|
- **Google Drive API**:
|
||||||
|
- File indexing and retrieval.
|
||||||
|
- Context-aware integration.
|
||||||
- **Local Storage Optimization**:
|
- **Local Storage Optimization**:
|
||||||
- Efficient chat persistence
|
- Efficient chat/task persistence.
|
||||||
- Reduced API calls
|
- Reduced API calls.
|
||||||
- Optimized performance
|
- Optimized performance.
|
||||||
|
|
||||||
### Data Flow
|
### Data Flow
|
||||||
|
|
||||||
1. User sends query through secure channel
|
1. User submits a task request (email, search, file retrieval) through a secure channel.
|
||||||
2. Query processed by n8n RAG system
|
2. Task processed by n8n system.
|
||||||
3. Relevant documents retrieved and ranked
|
3. Relevant data retrieved, processed, and integrated.
|
||||||
4. AI-generated response with source attribution
|
4. AI-generated results with source attribution.
|
||||||
5. Real-time UI updates with optimized storage
|
5. Real-time UI updates with optimized storage.
|
||||||
|
|
||||||
## 💬 Chat System Features
|
## 💬 AI Task Automation Features
|
||||||
|
|
||||||
- **Real-time Processing**: Instant message handling
|
- **Email Handling**: Compose and send context-aware emails.
|
||||||
- **Context Awareness**: Maintains conversation history
|
- **Web Search**: Conduct targeted searches and summarize results.
|
||||||
- **Source Attribution**: Links responses to documents
|
- **File Retrieval**: Fetch and integrate Google Drive files for responses.
|
||||||
- **Error Handling**: Graceful fallbacks
|
- **Context Awareness**: Maintains task history for seamless operation.
|
||||||
- **Performance Optimization**: Local storage caching
|
- **Error Handling**: Graceful fallbacks for failed tasks.
|
||||||
- **Type Safety**: Full TypeScript integration
|
- **Performance Optimization**: Local storage caching.
|
||||||
|
- **Type Safety**: Full TypeScript integration.
|
||||||
|
|
||||||
## 🛠️ Development
|
## 🛠️ Development
|
||||||
|
|
||||||
### Available Scripts
|
### Available Scripts
|
||||||
|
|
||||||
- `npm run dev`: Development server
|
- `npm run dev`: Development server.
|
||||||
- `npm run build`: Production build
|
- `npm run build`: Production build.
|
||||||
- `npm run preview`: Preview build
|
- `npm run preview`: Preview build.
|
||||||
- `npm run lint`: Code linting
|
- `npm run lint`: Code linting.
|
||||||
|
|
||||||
### Performance Metrics
|
### Performance Metrics
|
||||||
|
|
||||||
- 95% query response accuracy
|
- Sub-second task execution.
|
||||||
- 40% reduction in API calls
|
- 95% task accuracy.
|
||||||
- 90% document retrieval relevance
|
- 40% reduction in API calls.
|
||||||
- Zero security breaches
|
- Zero security breaches.
|
||||||
- Sub-second response times
|
- Seamless file retrieval and integration.
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue