HOW_TO_USE_UI.mdā¢3.07 kB
# šØ How to Use the Beautiful UI
## ⨠New Attractive Web Interface is Ready!
### š Access the UI
**Simply open in your browser:**
```
http://localhost:8001/
```
The server should automatically reload with the new UI!
### šÆ Features
#### 1. **Modern Design**
- Dark theme with beautiful gradients
- Professional card-based layout
- Smooth animations and transitions
- Responsive design for all devices
#### 2. **File Upload**
- **Drag & drop** Excel files directly onto the upload area
- **Click to browse** for files
- **Visual progress** indicator during upload
- **Success/Error notifications** with toast messages
#### 3. **Question Answering**
- **Type questions** in the search bar
- **Quick question buttons** for common queries:
- MOSFET components
- Voltage regulators
- 5V components
- Texas Instruments
- **Formatted answers** with context
- **Copy to clipboard** button
- **Context visualization** below answers
#### 4. **Information Panel**
- **Live statistics** about your collection
- **Document count** display
- **Status indicators**
- **Refresh button** for real-time updates
#### 5. **Status Indicator**
- **Connection status** badge in header
- **Pulsing indicator** shows server status
- **Auto-checks** health endpoint
### š Step-by-Step Usage
1. **Open Browser**
- Navigate to: `http://localhost:8001/`
- You'll see the beautiful interface!
2. **Upload Document**
- Drag and drop `examples/semiconductor_components.xlsx` onto the upload area
- OR click to browse and select the file
- Wait for upload progress
- See success message when complete
3. **Ask Questions**
- Type your question: "What MOSFET components are available?"
- OR click one of the quick question buttons
- Press Enter or click "Ask" button
- View formatted answer with context
4. **View Information**
- Check collection stats in the info panel
- See document count
- Click "Refresh Info" to update
### šØ Design Highlights
- **Colors**: Modern dark theme with purple/indigo accents
- **Typography**: Inter font for excellent readability
- **Icons**: Font Awesome icons throughout
- **Animations**: Smooth transitions and hover effects
- **Layout**: Clean card-based design
- **Responsive**: Works on all screen sizes
### š” Tips
- **Press Enter** in the question box to submit
- **Click quick buttons** for instant common queries
- **Copy answers** using the copy button
- **Watch status badge** for connection status
- **Check toast notifications** for feedback
### š§ If Server Needs Restart
If the UI doesn't load, restart the server:
```bash
# Stop current server (Ctrl+C)
# Then restart:
python main.py
```
### ā
What You'll See
- Beautiful header with logo and status
- Drag-and-drop upload area
- Question input with quick action buttons
- Answer display with formatted text
- Context items showing retrieved information
- Information cards with statistics
- Smooth animations and transitions
### š Ready!
**Just open**: http://localhost:8001/
**Enjoy the beautiful UI!** š