Spaces:
Sleeping
Sleeping
metadata
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 infoGET /health- Health checkPOST /validate- Main validation endpointPOST /match-stage- Test stage matchingPOST /match-room- Test room matching
Usage
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.