Skip to content

Commit

Permalink
refactor: 프롬프트 및 dto 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yooniicode committed Feb 13, 2025
1 parent 99a9847 commit 0992e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ public class SpaceResponseDto {
private Integer group = 0;

// 올바른 생성자 추가
public SpaceResponseDto(Bubble bubble, String content, double x, double y, Integer group) {
public SpaceResponseDto(Bubble bubble, double x, double y, Integer group) {
this.id = bubble.getBubbleId();
this.content = content;
this.x = x;
this.y = y;
this.group = group;
Expand All @@ -29,14 +28,6 @@ public void setId(Long id) {
this.id = id;
}

public String getContent() {
return content;
}

public void setContent(String content) {
this.content = content;
}

public double getX() {
return x;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public ResponseEntity<ApiResponse> processSpaces(CustomUserPrincipal userPrincip
List<SpaceResponseDto> spaceDtos = spaces.stream()
.map(space -> new SpaceResponseDto(
space.getBubble(), // ✅ Bubble 객체 전달
space.getContent(),
space.getX(),
space.getY(),
space.getGroup()
Expand Down Expand Up @@ -252,7 +251,7 @@ private String buildPromptWithId(Map<Long, String> requestData) {
promptBuilder.append("- group: An integer representing the item's group ID, starting from 1. If an item does not belong to any group, set this to `null`.\n\n");

promptBuilder.append("### Rules:\n");
promptBuilder.append("1. Each item must have a unique (x, y) coordinate, with a minimum spacing of 0.5.\n");
promptBuilder.append("1. Each item must have a unique (x, y) coordinate, with a minimum Euclidean distance of 0.5 between any two items.\n");
promptBuilder.append("2. Items with similar topics should form visually distinct clusters.\n");
promptBuilder.append("3. Clusters should be well-separated from each other but internally cohesive.\n");
promptBuilder.append("4. **❗ Each group MUST contain between 5 and 8 items. This is MANDATORY. ❗**\n");
Expand Down

0 comments on commit 0992e81

Please sign in to comment.