Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,39 @@ public AiRegulationSearchResponseDTO search(AiRegulationSearchRequestDTO request
List<AiReferenceDTO> sources = List.of(
new AiReferenceDTO(
"개인정보처리방침_내부규정.pdf",
"개인정보처리방침",
"본 규정은 회사가 처리하는 개인정보에 대하여 「개인정보 보호법」 및 관계 법령을 준수하기 위한 내부 기준을 정하고, 개인정보의 수집·이용, 보관 및 파기 절차를 명확히 함을 목적으로 합니다.",
"제1조(목적)",
"1",
0.95
),
new AiReferenceDTO(
"개인정보보호_관리지침.pdf",
"개인정보보호 관리지침",
"개인정보의 안전한 처리를 위하여 필요 관리적 부여 기준, 비밀번호 관리, 로그 기록 및 점검 등 기술적·관리적 보호조치를 수립하고 이를 준수함에 있어 필요한 사항을 규정합니다.",
"제2조(적용범위)",
"2",
0.90
),
new AiReferenceDTO(
"개인정보_수집-이용_보관_파기_기준.pdf",
"개인정보 수집·이용·보관·파기 기준",
"회사는 개인정보를 수집 시 명시한 목적이 달성된 때까지 해당 정보를 보유하는 것을 원칙으로 하며, 관련 법령에 따라 일정 기간 보존이 필요한 경우에는 그 기간 동안 안전하게 보관한 후 파기합니다.",
"제5조(보관기간)",
"3",
0.85
),
new AiReferenceDTO(
"개인정보 보호법.pdf",
"개인정보 보호법",
"개인정보처리자는 정보주체의 이용목적 달성을 위하여 필요한 경우로서 명확하게 정보주체에게 알리거나 고지한 경우, 개인정보처리자의 정당한 이익과 상당한 관련이 있고 합리적 범위를 초과하지 않습니다.",
"제15조(개인정보의 수집·이용)",
"10",
0.80
),
new AiReferenceDTO(
"개인정보보호위원회 법령 목록(원문).pdf",
"개인정보보호위원회 법령 목록",
"개인정보보호위원회에서 제공하는 개인정보 관련 법령 전문 목록입니다.",
"별첨",
"1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public record AiRegulationSearchResponseDTO(
public record AiReferenceDTO(
@JsonProperty("document_title")
String documentTitle,
@JsonProperty("law_name")
String lawName,
String content,
String article,
String page,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public record ReferenceDocumentDTO(
String documentTitle,
String lawName,
String content,
String article,
String page,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public static RegulationSearchResponseDTO from(AiRegulationSearchResponseDTO aiR
? aiResponse.sources().stream()
.map(ref -> new ReferenceDocumentDTO(
ref.documentTitle(),
ref.lawName(),
ref.content(),
ref.article(),
ref.page(),
Expand Down