Comments (6)
Thanks for report. Take a look at #376 for fix.
from trulens.
Tested this with trulens-eval 0.10.0, it doesn't break anymore but it prints a couple warnings:
A new object of type <class 'langchain.chains.llm_math.base.LLMMathChain'> at 0x7ff89668ef00 is calling an instrumented method <function Chain.__call__ at 0x7ff8a74ab5e0>. The path of this call may be incorrect.
Guessing path of new object is *.app based on other object (0x7ff8965c0300) using this function.
A new object of type <class 'langchain.chains.llm.LLMChain'> at 0x7ff8974d86c0 is calling an instrumented method <function Chain.__call__ at 0x7ff8a74ab5e0>. The path of this call may be incorrect.
Guessing path of new object is *.app based on other object (0x7ff8965c0300) using this function.
Should that be Ok?
from trulens.
Hi, this is happening because our walk over the agent is not finding all of the relevant components that need instrumentation but at the same time it has walked over and instrumented other components that have the same class/methods that the undiscovered components use. Because of this, we cannot be sure where in the app structure these components are located when we see them invoking methods. If you do not care what their location is listed as in the dashboard or otherwise, this may be ok for you. If you do care about the paths, this is not ok. I am investigating the enumeration of agent components to address this.
from trulens.
Investigating further I see this may all be because the components are hidden behind a method (the func
attribute of Tool
) which we do not inspect when instrumenting components. Will think about how to address this but there is no current plan to fix the path of components that appear only inside closures like this.
from trulens.
I am adding more agent components to instrument that helps a little with this issue but is not perfect (#406). Things like Tool._run
now show up in the dashboard with their correct path (see first screenshot), but the LLM call involved in the tool run that is performed by Tool.func
has the wrong path (see second screenshot).
from trulens.
logging message issue is fixed. Expanded topic is ok as is
from trulens.
Related Issues (20)
- trulens doesn't work with llama 0.7.5 HOT 2
- Can it work with a Local LLM?
- Testing Local LLMs? HOT 2
- Support for Langchain's acall method HOT 7
- Support for Llama_Index's query_engine aquery method and chat_engine chat/achat methods HOT 2
- Installation fails due to fastavro HOT 2
- [Bug] Selector `GetItems` crashes with `AttributeError` HOT 3
- AzureOpenAI fails: missing deployment_id HOT 1
- [FR] Allow passing `dict` as input to feedback function
- Feedback function on Groundedness did not work with AzureOpenAI HOT 1
- Add multiple tags using a list or multiple columns called tag1, tag2 to TruChain HOT 1
- Changing the input of `agreement_measure` returns nan HOT 3
- [Bug] Dashboard breaks with `llama-index>0.7.23` HOT 2
- [Bug] Missing Package and Unicode Encode Error HOT 4
- OpenAI Chat LLM with ChatPromptTemplate raises error with TrueChain HOT 5
- Using it with out the Sqllite db HOT 3
- "Display full app json" always shows data for first row on the Dashboard HOT 1
- Multiple tags for a record? HOT 1
- Allow get query parameters? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trulens.