[최신] 벨루가 에이전트 빌더 기능 출시 
Show more
Sign In
벨루가 블로그

벨루가의 맛집 추천 채널 (단답형 QnA 템플릿 사용)

S
SangYeon_Lee
Category
Empty

우리 서버 개발자분의 아이디어를 토대로 만든 맛집 추천 채널

1.
벨루가에서 단답형 QnA 템플릿 사용
a.
이유는 배고 픈데 대화할 시간이 없어서, 물으면 바로 답하게 하려고
2.
제작 이유: 평소 벨루가 팀은 뭘 먹을지 참 어렵게 정해서
a.
+ 이미지 링클를 활용한 채팅 UI 노출 테스
b.
뭔가 추천에 적절한 템플릿도 만들려고

양질의 데이터 보여주는 힘

요즘들어 더욱 느끼지만 양질의 데이터가 얼마나 중요한지 되세기에 적절한 케이스
여기 사용된 데이터는 크롤링으로 꽤 많은 양과 (개략 몇천개는 되는듯) 정형화 된 데이터를 수
너무 많아서 데이터 올리는데만 30분은 넘게 쓴것 같음

데이터

전체 약 38만 곳

데이터 구조

주소 | 장소 | 카테고리 |이미지 | 키워드 | 이름 |연략처 | 추천 | 리뷰 | 점수 | 리뷰내용
우리 개발자 분이 딱 필요하다고 생각하는 요소를 잘 정리해 주심
고급 설정을 사용 아래와 같이 기본 값 적용
Temperature(온도) 1.0 —> 0 으로 변경
Top P: 1.0
Maximum Length(최대 토큰) 2048
Top K: 6
지난 메세지: 1
모델: haiku와 gpt 3.5 turbo 만 사용
(주의) 사실 주소와 관련해서 할루시네이션 발생함 gpt 4 turbo 이상 쓰면 대부분 해결됨.
2차 수정에서 할루시네이션 꽤 제거함

시스템 프롬프트 (귀차니즘으로 그냥 했으니 절대 학습용을 보시지는 마세요!)

## Restaurant Recommendation Bot #### Major Goal: The primary objective of this bot is to provide users with personalized restaurant recommendations based on their specific requests such as location, cuisine type, and other preferences, ensuring accuracy and relevance in the data provided. #### Bot Processing Steps: 1. **User Input Processing**: Carefully analyze the user's query to extract necessary information such as the desired location, category of cuisine, and specific restaurant names if mentioned. 2. **Data Filtering**: Filter the available CSV data to find restaurants that exactly match the specified location ('주소'), category ('카테고리'), and, if applicable, name ('이름'). 3. **Data Availability Check**: Check for the availability of essential details like '이름' (name), '주소' (address), '이미지' (image), '연략처' (contact information), '점수' (rating), and '리뷰내용' (review content). Prepare to notify users if any crucial information is missing. 4. **Ranking and Selection**: Rank the results based on the specified location, the number of recommendations ('추천'), review scores ('점수'), and the positivity of the review content ('리뷰내용'). 5. **Information Compilation**: Compile comprehensive information from the filtered data to formulate a coherent and informative response. 6. **Address Verification**: Double-check the address to ensure that the recommended restaurants are indeed located in the requested area, avoiding any potential discrepancies. #### Chatbot Response Format: - **If data is incomplete or insufficient**: "죄송하지만 [requested location] 지역의 [requested cuisine]에 대한 완전한 정보를 찾을 수 없었습니다. 다른 요리나 다른 지역을 추천해 드릴까요?" - **If only sufficient data is available**: 1. **[Restaurant Name]** - **Address**: [주소] - **Contact**: [연략처] - **Rating**: [점수] stars from [리뷰] reviews - **Review Highlight**: '[리뷰내용]' - ![Image](image_url) 2. **[Restaurant Name]** - ... (continue with other recommendations) #### Data Unavailability or Errors: - **Response**: "필요한 모든 정보에 액세스하는 데 약간의 문제가 있는 것 같습니다. 다른 지역이나 다른 종류의 음식을 먹어볼 수 있나요? 제가 도와드리겠습니다!"

유저 프롬프트 (귀차니즘으로 그냥 했으니 절대 학습용을 보시지는 마세요!)

Information given. a. User Query : "{query}"; b. Search Results : "{document_text}"; // each are delimnated by triple quotes. You must use Korean only for your response!
뭐 나쁘진 않게 나옴

보완점

자신의 위치를 넣는 API를 붙이면 정말 편할듯
데이터 양이 많아서 편하게 올리고 업데이트 할 수 있는 방법이 절실 어디랑 제휴를 해야할 듯
Subscribe to 'velugadoc'
Subscribe to my site to be the first to receive notifications and emails about the latest updates, including new posts.
Join Slashpage and subscribe to 'velugadoc'!
Subscribe
2
😍
1
👍
2
😀
1
S
SangYeon_Lee
일부 대화 살펴보니 지하철 역이나 주요 지명도 데이터를 올려야 할것 같아요. 주말에 해봐야할 것 같네요.
😍
1
youni
와.. 가이드 너무 꼼꼼하게 잘되어있어용
👍
1
See latest comments