Closed CronusCipher closed 2 days ago
maybe someone can enlighten me what a feedback-key
means ?
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 :
error.js:88 Uncaught (in promise) Error: Failed to create feedback. Received status [401]: . Server response: {"detail":"Invalid token"}
at raiseForStatus (error.js:88:11)
at async Client.createFeedback (client.js:1923:9)
maybe someone can enlighten me what a feedback-key means ?
Hard to describe without being circular.
key
is 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
To OP - you're never actually creating a client
:
client = Client
Should be
client = Client()
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_id
by running traces in the longchain. but whenever I want to assign thisrun_id
tocreate_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
`