-
Notifications
You must be signed in to change notification settings - Fork 161
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
Getting issues in using Trulens with Langchain Agents like ReAct/Structured Chat #1133
Comments
The error messages and issues you're encountering with Trulens and Langchain agents like ReAct/Structured Chat seem to stem from discrepancies in handling the OpenAI response, particularly regarding the expected usage data. Here's a focused approach to troubleshoot and potentially resolve these issues:
By focusing on these areas, you should be better positioned to diagnose and fix the integration issues between Trulens and Langchain agents. If these steps do not resolve the problem, providing more detailed error messages, stack traces, and code snippets could help further diagnose the issue.
|
@deepak-nigam-pepcus can you share some example code for your agent setup that we can use to reproduce? |
Hi @deepak-nigam-pepcus . I replicated a bug that looks similar. I have a temporary fix in this PR: #1138 . Note however, that cost tracking (in terms of token counts and USD total) will not work while we try to find a more permenent solution the underlying problem. |
Good response for trulens devs but not for the end user who raised the issue. |
Given the complexity of the issue and the temporary fix provided in the pull request, it's important to integrate this fix into your environment to see if it resolves the error you're encountering with Trulens and Langchain agents. Here's a step-by-step guide to help you apply the temporary solution and further diagnose the problem if needed:
By following these steps, you should be able to mitigate the issue temporarily and contribute to finding a permanent solution.
|
@deepak-nigam-pepcus |
I am facing issues in evaluating the bot results/responses through the Trulens when using langchain agents (like ReAct/Structured Chat).
Previously I was using rag-chain, which contains simple prompts to LLM and able to run the trulens with this, however on using rag-chain, the groundedness (which is an indication of hallucinations) was only 18%.
In order to decrease the hallucinations, I moved towards the ReAct approach, it reduced the hallucinations, as verified by manual observations, but it caused integration with Trulens difficult. I am getting the following error:
======================================================================================
I tried various methods, explored on the internet for any suggestions but everyone is giving examples with rag chain only. I am trying to resolve it ASAP, but just wanted to update you about the same.
The text was updated successfully, but these errors were encountered: