mirror of
https://github.com/langchain-ai/langsmith-docs.git
synced 2026-08-27 01:41:19 -04:00
Issue related how to trace current run and attache the feedbacks #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CronusCipher on GitHub (Aug 23, 2024).
Hi
I am working on the LLM application and It is programmed base on RAG archituctre by using LangChain features. I used Streamlit for my front end.
Now I want to use LangSmith for tracing each answer and take a feedback and score from users. I already connected my project with LangSmith dashboard with API and I can see each prompt that the user enters. But unfortunately, I could not attach the feedback to the answer. I have a feature for thumb up and thumb down by using streamlit feedback packages. And also I found the
run_idby running traces in the longchain. but whenever I want to assign thisrun_idtocreate_feedback()function, I faced to this error :TypeError: Client.create_feedback() missing 1 required positional argument: 'run_id'I checked LangSmith and Langchain documentation but I could not find anything related to this issue.
Thanks for your help in advance
`
@shershen08 commented on GitHub (Sep 3, 2024):
maybe someone can enlighten me what a
feedback-keymeans ?Docs are silent - https://docs.smith.langchain.com/old/tracing/faq/logging_feedback - it's just in the code example and no details where to get it.
I've tried the API token (LANGCHAIN_API_KEY) but with no luck :
@hinthornw commented on GitHub (Sep 11, 2024):
Hard to describe without being circular.
keyis the name associated with this feedback type /metric.So it would be "correctness" or "user_score" or "accuracy" or "my-cool-name".
Then all feedback with that key is aggregated as metrics.
it looks like you're trying to send a request without authentication there
@hinthornw commented on GitHub (Sep 11, 2024):
To OP - you're never actually creating a
client:Should be