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

Conversational Feedback #12590

Merged
merged 10 commits into from
Oct 31, 2023
Merged

Conversational Feedback #12590

merged 10 commits into from
Oct 31, 2023

Conversation

hinthornw
Copy link
Collaborator

@hinthornw hinthornw commented Oct 30, 2023

Context in the README.

Show how score chat responses based on a followup from the user and then log that as feedback in LangSmith

@vercel
Copy link

vercel bot commented Oct 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2023 3:23pm

@dosubot dosubot bot added the 🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features label Oct 30, 2023
@hinthornw hinthornw marked this pull request as draft October 30, 2023 21:26
@hinthornw hinthornw force-pushed the wfh/conversational_feedback branch from 081dfd2 to 43d36f7 Compare October 30, 2023 21:46
@hinthornw hinthornw marked this pull request as ready for review October 30, 2023 21:47
@hinthornw hinthornw force-pushed the wfh/conversational_feedback branch from 43d36f7 to a664da2 Compare October 30, 2023 21:48
@@ -0,0 +1,86 @@
# Chat Feedback Template

This template captures implicit feedback from human behavior in a simple chat bot. It instructs an LLM to reference a user's responses within a conversation to evaluate the chat bot's previous replies.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

1/ IIUC, this is performing chat evaluations w/o explicit user-feedback, which is very useful. We might create a top-level shortened summary that just states this clearly. It's the first eval template, so very cool to have.

2/ We might explicitly mention that your chat app should be implemented (or called) in chain.py and call out specifically where as a placeholder. AFAICT, any chat runnable can simply append:

    .with_config(
        run_name="ChatBot",
        callbacks=[
            EvaluatorCallbackHandler(
                evaluators=[
                    ResponseEffectivenessEvaluator(evaluate_response_effectiveness)
                ]
            )
        ],

3/ Where to go fetch the evals in LangSmith? May be nice to show screenshot.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool cool. For (1), are you saying on top of the README that's here? (is it too roundabout)?

For (2) - yes albeit it needs a 'last_run_id' to be passed around so that the feedback can be assigned to the previous response trace. If we didn't care about the exact credit assignment, or if we had a better way of tracking conversations, this would be easier/better

For (3) def. I'll do that.

@hinthornw hinthornw force-pushed the wfh/conversational_feedback branch from 6810b64 to 6b1d43d Compare October 31, 2023 15:22
@hinthornw hinthornw force-pushed the wfh/conversational_feedback branch from 6b1d43d to 04f3134 Compare October 31, 2023 15:23
@hinthornw hinthornw merged commit 88f0f1e into master Oct 31, 2023
7 checks passed
@hinthornw hinthornw deleted the wfh/conversational_feedback branch October 31, 2023 15:34
xieqihui pushed a commit to xieqihui/langchain that referenced this pull request Nov 21, 2023
Context in the README.

Show how score chat responses based on a followup from the user and then
log that as feedback in LangSmith
hoanq1811 pushed a commit to hoanq1811/langchain that referenced this pull request Feb 2, 2024
Context in the README.

Show how score chat responses based on a followup from the user and then
log that as feedback in LangSmith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants