Skip to main content
Glama

Semiconductor Component RAG Search

QUICK_START_GUIDE.md•3.29 kB
# šŸš€ Quick Start Guide ## āœ… Repository Pushed Successfully! Your MCP-based RAG system is now on GitHub: **https://github.com/chakradharkalle03-arch/MCP2** --- ## šŸ“¦ What's Included - āœ… **50 files** committed and pushed - āœ… **MCP (Model Context Protocol)** integration - āœ… **ChromaDB** vector database - āœ… **FastAPI** backend - āœ… **Node.js/Express** frontend - āœ… **RAG pipeline** with HuggingFace models - āœ… **Complete documentation** --- ## šŸŽÆ Quick Setup (3 Steps) ### Step 1: Clone the Repository ```bash git clone https://github.com/chakradharkalle03-arch/MCP2.git cd MCP2 ``` ### Step 2: Set Up Environment **Backend (Python):** ```bash # Create virtual environment python -m venv venv # Activate virtual environment # Windows: venv\Scripts\activate # Linux/Mac: source venv/bin/activate # Install dependencies pip install -r requirements.txt # Create .env file from template copy env.example .env # Then edit .env and add your Hugging Face API key: # HF_API_KEY=your_api_key_here ``` **Frontend (Node.js):** ```bash cd frontend npm install cd .. ``` ### Step 3: Run the Application **Option A: Run Both Servers (Recommended)** ```bash # Windows: start_all.bat # Linux/Mac: # Terminal 1: Backend python main.py # Terminal 2: Frontend cd frontend && node server.js ``` **Option B: Run Separately** **Backend:** ```bash python main.py # Backend runs on: http://localhost:8001 ``` **Frontend:** ```bash cd frontend node server.js # Frontend runs on: http://localhost:3000 ``` --- ## 🌐 Access the Application **Frontend UI:** http://localhost:3000 **Backend API:** http://localhost:8001 --- ## šŸ“ First Steps 1. **Add Your API Key** - Get your Hugging Face API key from: https://huggingface.co/settings/tokens - Add it to `.env` file: ``` HF_API_KEY=your_api_key_here ``` 2. **Create Example Data** ```bash python create_example_excel.py ``` 3. **Upload Document** - Go to http://localhost:3000 - Click "Upload Excel Document" - Select the generated `semiconductor_components.xlsx` 4. **Ask Questions** - Type your question in the input field - Examples: - "Show me all voltage regulators" - "What components are used for power switching?" - "List temperature sensors" --- ## šŸ“š Documentation Files - `README.md` - Main documentation - `QUICK_START.md` - Detailed quick start - `USAGE.md` - API usage guide - `FRONTEND_GUIDE.md` - Frontend documentation - `SETUP_WINDOWS.md` - Windows-specific setup --- ## šŸŽ‰ You're All Set! Your MCP-based RAG system is ready to use! **Repository:** https://github.com/chakradharkalle03-arch/MCP2 **Issues:** https://github.com/chakradharkalle03-arch/MCP2/issues **Pull Requests:** https://github.com/chakradharkalle03-arch/MCP2/pulls --- ## šŸ”§ Troubleshooting ### Port Already in Use If port 8001 or 3000 is in use, change them in: - Backend: `config.py` → `API_PORT` - Frontend: `frontend/server.js` → `const PORT` ### DLL Errors (Windows) See `SETUP_WINDOWS.md` for solutions to common Windows DLL issues. ### API Key Issues - Make sure `.env` file exists - Check that `HF_API_KEY` is set correctly - Verify your API key is valid at https://huggingface.co/settings/tokens --- **Happy coding! šŸš€**

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