Spaces:
Sleeping
Sleeping
| title: Construction Scope Validator | |
| emoji: ποΈ | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: docker | |
| pinned: false | |
| # Construction Scope Validator API | |
| FastAPI service that validates and enriches LLM-generated construction scope of work with database-verified stages, tasks, and materials. | |
| ## Features | |
| - π― Stage name validation and matching | |
| - π Task recommendation based on stage and context | |
| - π¨ Material suggestion with pricing | |
| - π Confidence scores for all matches | |
| - π Fast embedding-based search | |
| ## API Endpoints | |
| - `GET /` - Service info | |
| - `GET /health` - Health check | |
| - `POST /validate` - Main validation endpoint | |
| - `POST /match-stage` - Test stage matching | |
| - `POST /match-room` - Test room matching | |
| ## Usage | |
| ```python | |
| import requests | |
| response = requests.post( | |
| "https://mlbench123-sudoco-scopeofwork.hf.space/validate", | |
| json={ | |
| "scope_of_work": [ | |
| { | |
| "area": "Living Room", | |
| "items": [ | |
| { | |
| "stage": "Demolition", | |
| "task": "Remove walls", | |
| "material": "Demolition tools", | |
| "quantity": 1, | |
| "unit": "set" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ) | |
| print(response.json()) | |
| ``` | |
| ## Model | |
| Uses fine-tuned Sentence Transformer (all-MiniLM-L6-v2) with 89.4% accuracy for stage-task-material matching. |