Skip to content

Conversation

@lazyyq
Copy link
Member

@lazyyq lazyyq commented May 26, 2025

Issue Number

Summary

  • AI를 이용한 여행지 추천 기능 구현

Description

어떤 변경 사항이 있나요?

  • 카카오맵을 이용한 여행지 검색 구현
  • 기존 여행지(Attraction) 테이블과 엔티티에 source 속성 추가
  • GPT를 이용한 추천 여행지 받아오기 구현
  • 검색된 여행지 DB에 저장 구현
  • 최종적으로 프론트엔드에 반환 구현

lazyyq added 4 commits May 26, 2025 19:58
- 컨트롤러는 테스트용, 비활성화해놓음
- 여행지 출처 (공공데이터 or 카카오 여행지 검색)
Spring AI 1.0.0-M6 & gpt-3.5-turbo 사용
플랜 정보의 인원 수, 시작 및 종료 날짜, 테마를 기반으로 `RecommendService`를 이용하여 여행지 추천.
추천받은 여행지에 대한 정보를 카카오맵 API를 통해 받아온 뒤, 여행지 DB에 없을 경우 저장.
이후 프론트엔드에 반환.
@lazyyq lazyyq requested review from Copilot and jgm0327 May 26, 2025 11:08
@lazyyq lazyyq self-assigned this May 26, 2025
@lazyyq lazyyq added the enhancement New feature or request label May 26, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new recommendation feature by integrating OpenAI chat and Kakao Place Search services to generate travel recommendations and retrieve attraction information.

  • Added tests for RecommendationService.
  • Integrated OpenAI and Kakao Place Search configuration and API calls.
  • Enhanced PlanService and PlanController with new endpoints for recommendations and place searches.

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/test/java/com/ssafy/trabuddy/domain/recommendation/service/RecommendationServiceTest.java Added a basic test for the recommendation service without assertions
src/main/resources/application.yml Added AI configuration for OpenAI chat
src/main/java/com/ssafy/trabuddy/domain/recommendation/service/RecommendationService.java Introduced recommendation feature using ChatClient and Prompt templates
src/main/java/com/ssafy/trabuddy/domain/plan/service/PlanService.java Extended service to retrieve attractions based on recommendations
src/main/java/com/ssafy/trabuddy/domain/plan/controller/PlanController.java New endpoints for recommendation and place search
src/main/java/com/ssafy/trabuddy/domain/kakaoPlaceSearch/* Added service, controller, DTOs, and model for Kakao Place Search functionality
src/main/java/com/ssafy/trabuddy/domain/attraction/* Modified attraction repository, entity, mapper, and response to support source information
src/main/java/com/ssafy/trabuddy/common/config/AiConfig.java Added configuration to build a ChatClient bean
Comments suppressed due to low confidence (1)

src/test/java/com/ssafy/trabuddy/domain/recommendation/service/RecommendationServiceTest.java:18

  • The test case only logs the recommendation output without asserting any expected behavior. Consider adding assertions to validate the recommendation results.
void recommendTest() throws Exception {

@lazyyq lazyyq changed the title Feat/#23 AI를 이용한 여행지 추천 기능 구현 May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI를 이용한 여행지 추천 구현

2 participants