Fix/#38#44
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the chat schema and service logic, including the removal of the source_url field, renaming dormitory to dormitory_name, and adding support for smoking-related queries in the query rewriter. The review identified several improvements: removing the unused user_id field in ChatRequest, renaming response_time to response_time_ms for clarity, adding a trailing comma to the smoking_triggers list for consistency, and fixing a formatting inconsistency in the prompt rules.
| question: str | ||
| dormitory: Optional[str] = None | ||
| dormitory_name: Optional[str] = None | ||
| user_id: Optional[int] = Field(default=None, ge=1) |
Contributor
| answer: str | ||
| answer_status: str | ||
| source_url: str | ||
| response_time: int |
Contributor
| answer=answer, | ||
| answer_status=answer_status.value, | ||
| source_url=source_url, | ||
| response_time=response_time_ms, |
Contributor
| "담배펴", | ||
| "흡연구역", | ||
| "흡연장", | ||
| "흡연가능" |
Contributor
| 13.사용자가 전자레인지, 음식 데우기, 데워먹기, 휴게실 전자레인지 위치를 물으면 휴게실, 공용시설, 전자레인지, 음식 데우기, 정수기, 싱크대 키워드를 포함해라. | ||
| 14.사용자가 방에서 라면을 먹어도 되는지, 라면을 끓여 먹어도 되는지, 조리, 취사, 라면포트, 전기포트, 전열기구 사용 가능 여부를 물으면 반입금지 물품, 취사행위, 전열기구, 라면포트, 전기포트, 조리 금지, 화재위험 키워드를 포함해라. | ||
|
|
||
| 15. 사용자가 담배, 흡연, 담배 피울 곳, 담배 필 수 있는 곳, 흡연 가능한 장소를 물으면 흡연구역, 흡연장, 지정 흡연구역, 흡연 가능 장소, 금연구역 키워드를 포함해라. |
Contributor
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
유형