Skip to main content
Glama

Semiconductor Component RAG Search

README.md•2.23 kB
# Node.js Frontend for Semiconductor Component Search ## šŸš€ Quick Start ### 1. Install Dependencies ```bash cd frontend npm install ``` ### 2. Start Frontend Server ```bash npm start ``` Or for development with auto-reload: ```bash npm run dev ``` ### 3. Access the UI **Open in your browser:** ``` http://localhost:3000 ``` ## šŸ“‹ Prerequisites - **Node.js** (v14 or higher) - **npm** (comes with Node.js) - **Backend running** on `http://localhost:8001` ## šŸ”§ Configuration Edit `frontend/.env` to configure: ```env PORT=3000 BACKEND_URL=http://localhost:8001 ``` ## šŸŽØ Features - āœ… **Modern UI Design** - Beautiful dark theme interface - āœ… **File Upload** - Drag & drop Excel files - āœ… **Question Answering** - Interactive Q&A interface - āœ… **Real-time Status** - Connection and collection info - āœ… **Toast Notifications** - User feedback messages - āœ… **Responsive Design** - Works on all devices ## šŸ“ Project Structure ``` frontend/ ā”œā”€ā”€ server.js # Express server (proxies to backend) ā”œā”€ā”€ package.json # Node.js dependencies ā”œā”€ā”€ .env # Configuration ā”œā”€ā”€ public/ │ ā”œā”€ā”€ index.html # Main UI page │ ā”œā”€ā”€ styles.css # Beautiful styling │ └── script.js # Frontend logic └── uploads/ # Temporary uploads (auto-cleaned) ``` ## šŸ”Œ API Endpoints The frontend proxies these endpoints to the backend: - `GET /api/health` - Health check - `GET /api/info` - Collection information - `POST /api/upload` - Upload Excel document - `POST /api/ask` - Ask questions ## šŸŽÆ Usage 1. **Make sure backend is running** on port 8001 2. **Start frontend**: `npm start` 3. **Open browser**: http://localhost:3000 4. **Upload file**: Drag & drop Excel file 5. **Ask questions**: Type question or click quick buttons 6. **View answers**: See formatted answers with context ## šŸ› ļø Development ```bash # Install dependencies npm install # Start with auto-reload npm run dev # Start production npm start ``` ## šŸ“ Notes - Frontend runs on port 3000 - Backend should run on port 8001 - Frontend proxies all API calls to backend - File uploads are temporarily stored and auto-cleaned

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chakradharkalle03-arch/MCP2'

If you have feedback or need assistance with the MCP directory API, please join our Discord server