Spaces:
Sleeping
Sleeping
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "title": "KCSC Construction Standards RAG API", | |
| "description": "νκ΅κ±΄μ€κΈ°μ€(KDS/KCS/LHCS/SMCS) μ΄μ λ° μ‘°ν λ° μ¦κ±°(RAG) κ²μ API", | |
| "version": "0.2.0" | |
| }, | |
| "servers": [ | |
| { | |
| "url": "https://nicefree19-kcsc-mcp-.hf.space", | |
| "description": "KCSC RAG ν΄λΌμ°λ μ€λ¬΄ μ΄μ μλ² (Hugging Face Spaces)" | |
| } | |
| ], | |
| "paths": { | |
| "/search/clause": { | |
| "post": { | |
| "tags": [ | |
| "RAG Search" | |
| ], | |
| "summary": "μ‘°ν λ¨μ RAG κ²μ", | |
| "description": "μμ°μ΄ μ§μλ₯Ό λ°νμΌλ‘ 15λ§ κ° κ±΄μ€κΈ°μ€ μ‘°ν μ€ μ΅μ μ μλ¬Έ κ·Όκ±°(Evidence)μ 곡μ μΉ λ§ν¬λ₯Ό μ°Ύμλ λλ€.", | |
| "operationId": "search_clause", | |
| "requestBody": { | |
| "required": true, | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string", | |
| "minLength": 2, | |
| "maxLength": 500, | |
| "description": "μ€λ¬΄ μμ°μ΄ μ§μ (μ: κ³ μ₯λ ₯ λ³ΌνΈ μ‘°μ μμ)" | |
| }, | |
| "limit": { | |
| "type": "integer", | |
| "default": 5, | |
| "minimum": 1, | |
| "maximum": 10, | |
| "description": "λ°νν μ΅λ μ‘°ν κ°μ" | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ] | |
| } | |
| } | |
| }, | |
| "responses": { | |
| "200": { | |
| "description": "κ²μ μ±κ³΅", | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string" | |
| }, | |
| "count": { | |
| "type": "integer" | |
| }, | |
| "results": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "code": { | |
| "type": "string" | |
| }, | |
| "title": { | |
| "type": "string" | |
| }, | |
| "section": { | |
| "type": "string" | |
| }, | |
| "source_location": { | |
| "type": "string" | |
| }, | |
| "evidence_text": { | |
| "type": "string" | |
| }, | |
| "relevance": { | |
| "type": "number" | |
| }, | |
| "official_url": { | |
| "type": "string" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "/assist/response-draft": { | |
| "post": { | |
| "tags": [ | |
| "RAG Assist" | |
| ], | |
| "summary": "μ€λ¬΄ λμ μ΄μ λ° κ³ μν μ¬μΈ΅ κ²ν μ μμ±", | |
| "description": "μμ°μ΄ μ§μμ νλ‘μ νΈ μν©(Scenario)μ κ²°ν©νμ¬, μ± μκΈ°μ μ μμ€μ μ λ° λμ κ°μ΄λ λ° μν μ§λ¨ 체ν¬λ¦¬μ€νΈλ₯Ό μλ μμ±ν©λλ€.", | |
| "operationId": "response_draft", | |
| "requestBody": { | |
| "required": true, | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string", | |
| "minLength": 2, | |
| "maxLength": 500, | |
| "description": "μ€λ¬΄ μμ°μ΄ μ§μ" | |
| }, | |
| "scenario": { | |
| "type": "string", | |
| "maxLength": 1200, | |
| "description": "νμ₯μ νμ μν, λΆμ¬ μ 보 λ± κ΅¬μ²΄μ μΈ μν©μ μ€λͺ " | |
| }, | |
| "limit": { | |
| "type": "integer", | |
| "default": 5, | |
| "minimum": 1, | |
| "maximum": 10 | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ] | |
| } | |
| } | |
| }, | |
| "responses": { | |
| "200": { | |
| "description": "κ²ν μ μμ± μ±κ³΅", | |
| "content": { | |
| "application/json": { | |
| "schema": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string" | |
| }, | |
| "draft": { | |
| "type": { | |
| "type": "object", | |
| "properties": { | |
| "confidence": { | |
| "type": "string" | |
| }, | |
| "review_required": { | |
| "type": "boolean" | |
| }, | |
| "recommended_actions": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "additional_checks": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "answer_markdown": { | |
| "type": "string" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |