Skip to content
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

멀티턴의 경우 어떻게 구현할 수 있을까요? #8

Closed
bzantium opened this issue Sep 20, 2018 · 2 comments
Closed

멀티턴의 경우 어떻게 구현할 수 있을까요? #8

bzantium opened this issue Sep 20, 2018 · 2 comments

Comments

@bzantium
Copy link

멀티턴의 경우 어떻게 구현할 수 있을까요?

@hwonyo
Copy link
Owner

hwonyo commented Sep 20, 2018

/samples/session 부분의 예제를 참고해보세요.

현재 턴의 정보를 session.attribute 에 전달하면
CEK가 다음턴에 그대로 전달해줍니다.
이 값을 이용해서 멀티턴을 해결하는 방법 말고는 아이디어가 없네요..ㅎㅎ

예:

# 첫번째 발화
>> user: 나는 노란색을 제일 좋아해.
>> bot: 그렇구나
# 두번째 발화
>> user: 내가 무슨 색이라고?
>> bot: 노란색

sample 코드와 다른 예시인데 이런식으로 멀티턴을 진행할 수 있습니다.
첫번째 발화에서 말한 색을 session attribute에 담고 있다가
두번째 발화에서 그 값을 사용하는 방법입니다.

@bzantium
Copy link
Author

감사합니다! 한 가지 더 여쭤볼게요~!

@hwonyo hwonyo closed this as completed Nov 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants