AI Demos
OpenAI AI Demos.
Nuxflare Pro includes two AI demos that showcase integration with OpenAI's APIs.
1. AI Chatbot with RAG (Retrieval-Augmented Generation)
The chatbot implementation allows users to:
- Have conversations with an AI assistant
- Upload and interact with various file types (PDF, images, text, HTML)
- Leverage RAG capabilities by referencing uploaded documents
Key Features
- File Support: Handles multiple file formats including:
- Images (.png, .jpg, .jpeg)
- Documents (.pdf, .docx, .doc)
- Text (.txt, .md)
- File Size Limit: 2MB per file
- Real-time Chat: Messages display with timestamps
- Markdown Rendering: Supports formatted responses with code blocks
- File Management: Visual display of uploaded files with remove capability
Implementation
/api/ai/send-message
Handles chat messages and file processing./api/upload/ai-assistant
Manages file uploads.
2. Image Generator
A DALL-E 3 powered image generation interface that allows users to:
- Generate images from text descriptions
- View generated images in real-time
- Handle generation states and errors
Key Features
- Uses DALL-E 3 model
- 1024x1024 image resolution
- Real-time generation status
Implementation
/api/ai/generate-image
Generates images.