Skip to main content
Glama

Semiconductor Component RAG Search

WEB_ACCESS.md•3.13 kB
# 🌐 Web Access Guide ## āœ… System Status **Server is RUNNING and READY for web use!** - **URL**: http://localhost:8001 - **Status**: āœ… Operational - **Mode**: Text-based search (fallback due to DLL issues) ## šŸš€ Quick Access ### 1. Open API Documentation (Interactive) **Open in your browser:** ``` http://localhost:8001/docs ``` This provides: - āœ… Interactive API interface - āœ… Test all endpoints directly from browser - āœ… Upload files - āœ… Ask questions - āœ… View responses ### 2. Available Endpoints | Endpoint | Method | Description | Status | |----------|--------|-------------|--------| | `/` | GET | API information | āœ… Working | | `/health` | GET | Health check | āœ… Working | | `/upload` | POST | Upload Excel document | āœ… Working | | `/ask` | POST | Ask questions | āœ… Working | | `/info` | GET | Collection info | āœ… Working | ## šŸ“ Step-by-Step Usage ### Step 1: Open Web Interface 1. Open your browser 2. Go to: **http://localhost:8001/docs** 3. You'll see the FastAPI interactive documentation ### Step 2: Upload Document 1. Click on **`/upload`** endpoint 2. Click **"Try it out"** button 3. Click **"Choose File"** 4. Select: `examples/semiconductor_components.xlsx` 5. Click **"Execute"** 6. See response: `{"message": "File uploaded and processed successfully"}` ### Step 3: Ask Questions 1. Click on **`/ask`** endpoint 2. Click **"Try it out"** button 3. Enter question in the request body: ```json { "question": "What MOSFET components are available?", "n_results": 3 } ``` 4. Click **"Execute"** 5. See the answer with relevant context! ### Step 4: Check Collection Info 1. Click on **`/info`** endpoint 2. Click **"Try it out"** 3. Click **"Execute"** 4. See: `{"collection_name": "semiconductor_components", "document_count": 10}` ## šŸ’” Example Questions to Try Try these questions in the `/ask` endpoint: 1. **"What MOSFET components are available?"** - Finds MOSFET-related components 2. **"Show me voltage regulators"** - Finds voltage regulator components 3. **"What components work with 5V?"** - Searches for 5V compatible components 4. **"List components from Texas Instruments"** - Filters by manufacturer 5. **"What temperature sensors are available?"** - Finds temperature sensor components 6. **"Show me components for power switching"** - Searches by application ## šŸŽÆ Current Status ``` āœ… Server: Running on port 8001 āœ… Database: Active (10 documents loaded) āœ… Upload: Working āœ… Question Answering: Working āœ… Web Interface: Available at /docs āœ… All Endpoints: Operational ``` ## šŸ“Š Technical Details - **Search Mode**: Text-based (fallback mode) - **Embeddings**: Disabled (DLL issue with PyTorch) - **Database**: ChromaDB (working with text search) - **Response Format**: Context-based answers ## šŸ”§ Notes - System works with text-based search fallback - Embeddings disabled due to Windows DLL issues - Full functionality maintained - All endpoints working correctly ## šŸš€ Ready to Use! **Just open**: http://localhost:8001/docs Everything is ready for web use! šŸŽ‰

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