-
Notifications
You must be signed in to change notification settings - Fork 0
AI를 이용한 여행지 추천 기능 구현 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- 컨트롤러는 테스트용, 비활성화해놓음
- 여행지 출처 (공공데이터 or 카카오 여행지 검색)
Spring AI 1.0.0-M6 & gpt-3.5-turbo 사용
플랜 정보의 인원 수, 시작 및 종료 날짜, 테마를 기반으로 `RecommendService`를 이용하여 여행지 추천. 추천받은 여행지에 대한 정보를 카카오맵 API를 통해 받아온 뒤, 여행지 DB에 없을 경우 저장. 이후 프론트엔드에 반환.
There was a problem hiding this 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 {
Issue Number
Summary
Description
어떤 변경 사항이 있나요?