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

Input to RunnableBranch is not the feedback #6

Open
rezan21 opened this issue Aug 13, 2024 · 1 comment
Open

Input to RunnableBranch is not the feedback #6

rezan21 opened this issue Aug 13, 2024 · 1 comment

Comments

@rezan21
Copy link

rezan21 commented Aug 13, 2024

the input to the branches is not actually the initial feedback, but the output of previous chain, which would be the classification. hence, the chain is not behaving as expected

@muhammad-salik-salam
Copy link

muhammad-salik-salam commented Sep 7, 2024

I changed the classification_template as below:
classification_template= ChatPromptTemplate.from_messages([ ("system", "You are helpful assistant that classify sentiments of the feedback"), ("human", "Classify the sentiment of this feedback as positive, negative, neutral or escalte.\ No explanation. Only answer from given keywords in lower case. Feedback: {feedback}.\ Include the original feedback in your answer after the classification.") ])

This keeps the original feedback in response.

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