-
Notifications
You must be signed in to change notification settings - Fork 65
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
Instrumenting with LangSmith #345
Comments
Hey Eric! Interesting use case. Right now I think the best approach in our framework is more or less what you've done, i.e. create a custom We haven't worked with LangSmith so I'm not super certain of how LangChain interacts with it. If there's a good integration there, you might also consider using the |
@eric-gardyn if you can would you mind sharing the changes you made to |
sure, it's quick-and-dirty, but straight-forward, just so I could get it up and running
and I changed awaitGenerateResponse to call 'answerQuestionAwaited' with added parameter 'request?.body?.message' and
there might be an easier/better way |
Some feedback:
I am looking into LangSmith as a tool to monitor and audit the queries.
One of the steps is to retrieve the result from openAiClient.getChatCompletions, and send it to LangSmith.
In my project, I have now copied all the mongodb-server package files so I can customize/debug as needed.
So I added code into the answerQuestionAwaited method to interact with LangSmith.
Wondering if this could be done another way (so I could eventually just use the mongodb-server package "as is")?
The text was updated successfully, but these errors were encountered: