콘텐츠로 이동

4.3 확장 AI 및 플랫폼


AI 기반 API 서비스:

# 의미 검색 API
POST /api/v1/ai/search
body:
query: "기후변화 대응 정책"
mode: "semantic" # semantic, keyword, hybrid
include_analysis: true
response:
results: [...]
analysis:
main_topics: ["탄소중립", "재생에너지"]
key_bills: [...]
trend: "2020년 이후 급증"
# 대화형 QA API
POST /api/v1/ai/qa
body:
question: "반도체특별법 여야 입장 차이는?"
conversation_id: "conv_123" # 대화 이어가기
response:
answer: "..."
sources: [...]
confidence: 0.92
follow_up_questions: ["세부 쟁점은?", "표결 결과는?"]
# 요약 API
POST /api/v1/ai/summarize
body:
document_ids: ["bill_123", "minutes_456"]
style: "comparison" # brief, detailed, comparison
language: "ko"
response:
summary: "..."
key_points: [...]
differences: [...] # comparison 모드 시
# 분석 API
POST /api/v1/ai/analyze
body:
target: "member"
member_id: "member_001"
metrics: ["activity", "focus_area", "voting_pattern"]
response:
profile: {...}
activity_summary: {...}
focus_areas: [...]
voting_analysis: {...}

AI 처리 파이프라인:

%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '14px' }}}%%
flowchart TB
    A["기증 자료"]
    
    subgraph typeId["유형 식별"]
        B["이미지, 문서, 영상, 음성 분류"]
    end
    
    subgraph process["유형별 처리"]
        C1["이미지: 장면 인식, OCR, 얼굴 인식"]
        C2["문서: OCR, 구조 분석, 메타 추출"]
        C3["영상: 장면 분할, STT, 요약"]
        C4["음성: STT, 화자 분리"]
    end
    
    subgraph context["맥락 분석"]
        D["시대, 장소, 관련 사건 추정"]
    end
    
    subgraph connect["공식 기록 연결"]
        E["관련 회의록, 법안 자동 연결"]
    end
    
    subgraph verify["품질 검증"]
        F["중복, 진위, 저작권, 개인정보"]
    end
    
    G["통합 아카이브 + 기증자 크레딧"]
    
    A --> typeId --> process --> context --> connect --> verify --> G
    
    style typeId fill:#f5f5f5,stroke:#666,stroke-width:1px
    style process fill:#fff,stroke:#333,stroke-width:1px
    style context fill:#f5f5f5,stroke:#666,stroke-width:1px
    style connect fill:#f5f5f5,stroke:#666,stroke-width:1px
    style verify fill:#f5f5f5,stroke:#666,stroke-width:1px

품질 검증 체계:

검증 항목AI 방법인간 검토
중복 탐지해시 + 의미 유사도최종 판단
진위 확인메타데이터 일관성전문가 검증
저작권이미지 역검색, 패턴 매칭법적 검토
개인정보얼굴/이름/번호 탐지비식별화 확인
품질 점수해상도, 명확성, 완전성큐레이션

여론 연계 분석:

분석 항목내용
언론 보도긍정 45% (산업 경쟁력) · 중립 35% · 부정 20% (대기업 특혜)
SNS 반응키워드: #반도체지원 #대기업특혜 / 감성: 긍정 52%, 부정 31%
관련 청원반도체 지원 확대 촉구 (10,234명), 중소기업 우선 지원 요청 (3,456명)
시계열법안 발의 → 언론 보도 → SNS 확산 추이


%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '14px' }}}%%
flowchart TB
    A["외부 개발자/서비스"]
    B["개발자 포털<br/>API 문서 · 테스트 콘솔 · 키 발급 · 사용량 대시보드"]
    C["API Gateway<br/>인증 · Rate Limit · 요청 검증 · 라우팅 · 로깅 · 캐싱"]
    
    D1["Data API"]
    D2["Search API"]
    D3["AI API"]
    D4["Stream API"]
    D5["Webhook API"]
    
    E["내부 서비스 계층"]
    
    A --> B --> C
    C --> D1
    C --> D2
    C --> D3
    C --> D4
    C --> D5
    D1 --> E
    D2 --> E
    D3 --> E
    D4 --> E
    D5 --> E
    
    style A fill:#fff,stroke:#333,stroke-width:1px
    style B fill:#fff,stroke:#333,stroke-width:1px
    style C fill:#f5f5f5,stroke:#666,stroke-width:1px
    style E fill:#f5f5f5,stroke:#666,stroke-width:1px

API 사용 정책:

등급대상일일 한도AI 기능비용
Basic누구나1,000건제한적무료
Standard인증 개발자10,000건전체무료
Pro기관/기업100,000건전체+우선협의
Research연구기관무제한전체무료

플랫폼 구조:

%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '14px' }}}%%
flowchart TB
    subgraph ui["참여자 인터페이스"]
        U1["기증하기"]
        U2["오류신고"]
        U3["태그추가"]
        U4["평가하기"]
    end
    
    subgraph engine["참여 처리 엔진"]
        E1["AI 자동 처리"]
        E2["품질 검증"]
        E3["큐레이션"]
    end
    
    subgraph archive["통합 아카이브"]
        A1["공식 기록"]
        A2["참여 기록"]
        A1 <-->|AI 연결| A2
    end
    
    subgraph reward["기여자 리워드"]
        R1["포인트 · 배지 · 랭킹 · 크레딧"]
    end
    
    ui --> engine --> archive --> reward
    
    style ui fill:#fff,stroke:#333,stroke-width:1px
    style engine fill:#f5f5f5,stroke:#666,stroke-width:1px
    style archive fill:#fff,stroke:#333,stroke-width:1px
    style reward fill:#fff,stroke:#333,stroke-width:1px

거버넌스 구조:

%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '14px' }}}%%
flowchart TB
    subgraph committee["운영위원회"]
        C["국회기록원 + 외부 전문가 + 이용자 대표<br/>• API 정책 결정<br/>• 데이터 공개 범위 심의<br/>• 품질 기준 수립"]
    end
    
    D1["기술 분과<br/>• API 설계<br/>• 성능 관리<br/>• 보안"]
    D2["데이터 분과<br/>• 공개 범위<br/>• 품질 관리<br/>• 라이선스"]
    D3["윤리 분과<br/>• 개인정보<br/>• AI 윤리<br/>• 편향 관리"]
    
    committee --> D1
    committee --> D2
    committee --> D3
    
    style committee fill:#f5f5f5,stroke:#666,stroke-width:1px
    style D1 fill:#fff,stroke:#333,stroke-width:1px
    style D2 fill:#fff,stroke:#333,stroke-width:1px
    style D3 fill:#fff,stroke:#333,stroke-width:1px

품질 정책:

항목정책
데이터 정확성원본 데이터 99.9% 정확도 목표
API 가용성99.5% 이상 가동률 보장
응답 시간95% 요청 2초 이내 응답
AI 품질검색 관련성 90%+, QA 정확도 85%+
버전 관리구버전 12개월 지원, 사전 공지
변경 공지중대 변경 30일 전 공지

구분현행To-Be
데이터 공개PDF, 웹 검색Open API, 데이터셋
AI 기능미제공검색/QA/요약/분석 API
국민 참여청원만기증, 태깅, 피드백
외부 연계없음정부/언론/학술 데이터
거버넌스내부 운영외부 참여 운영위

“국회기록이 사회와 연결되고, 국민이 참여하고, 민간이 활용할 때 민주주의 기록으로서의 가치가 완성된다.”