Comments (7)
Right I was facing some issues when I tried doing pip install -e .
, so I instead removed the package, and added my cloned trulens repo to my PYTHONPATH. May have been the cause of the issue, I didn't use npm run dev
, and only changed it to False as I was facing some error when trying to view the Evaluations page on the dashboard.
I think it was pretty smooth sailing using it, and probably wouldn't have been an issue if I pip install
the package the right way.
Thanks for checking! Saw your profile, I'm from Singapore as well btw, good to meet you!
from trulens.
Merged today here, and coming in the release this week (0.8.0)!
Feel free to run from main to get this update before then as follows:
cd trulens/trulens_eval
pip install -e .
from trulens.
Hey, thanks so much for the help with building this!
Found a couple issues while testing it out.
Just as a note, I had changed the _RELEASE variable to False for the streamlit dashboard to work.
A strange finding is that, currently the async streaming only works with TruLens when placing the AsyncIteratorCallbackHandler in the LLM's constructor, but does not work when placed in the LLMChain, or directly in the request call function of the LLMChain, have tried out both ways below, which either raise an error or output nothing. I unfortunately require the use case of the callback in the request call function, when I am calling the chain, as I can potentially get interrupts with my chains, which I currently handle by passing new asynciteratorcallbackhandlers for each call.
chain = LLMChain(llm=llm, prompt=prompt, callbacks=[callback])
f_res_record = asyncio.create_task( #the usecase i would like
tc.acall_with_record(
inputs=dict(question=message),
callbacks=[callback],
)
)
Additionally, another error I've noted is when I try to integrate memory into my LLMChain, I receive the following API Error. I have created a gist where the error can be reproduced.
https://gist.github.com/anunayajoshi/bef85fa2941a8e81cc61732182daaded
The error I receive is as follows -
File "D:\Coding\trulens\trulens_eval\trulens_eval\provider_apis.py", line 263, in post
raise RuntimeError(error)
RuntimeError: You need to specify either `text` or `text_target`.
I hope I've provided sufficient information for the issues faced, let me know how I can help!
from trulens.
Hi. Thanks for the feedback. Can you take a look at #340 to check if this allows your use case of callback to acall_with_record?
from trulens.
Hi @anunayajoshi π
Thanks again for filing this issue. I wanted to check with you regarding:
Just as a note, I had changed the _RELEASE variable to False for the streamlit dashboard to work.
Just to confirm, you followed @joshreini1's suggestion above and installed trulens
, but found that you had to change _RELEASE
in init.py to false
to get the dashboard to work? Were you running npm run dev
while doing this? What version of trulens
were you on before pulling the code and testing out the changes?
Thanks in advance for your reply! In addition, this PR should bundle in the built react components in the repo from now on, so we likely won't need the npm
step in the and hopefully makes it easier to test the latest code straight from the repository.
from trulens.
That's interesting... not sure why that is happening, but will look into it nonetheless. Thanks for providing the details, and glad to hear that you had an overall great experience. :)
woohoo! πΈπ¬ great to meet you too (also your temperature taking bot project π )
from trulens.
Closing this one out for the acall fix.
from trulens.
Related Issues (20)
- [BUG] TruLens Quickstart - OperationalError: (sqlite3.OperationalError) no such table: trulens_apps HOT 6
- [FEAT] Feasibility to extend the record schema to accommodate custom fields
- Getting RecursionError: maximum recursion depth exceeded while calling a Python object while creating tru_recorder. HOT 14
- [BUG] TruChain - no values returned for Groundedness feedback function for Bedrock HOT 3
- Error: ValueError: Some selectors do not exist in the app or record. HOT 10
- Feedback functions returning FAILED HOT 8
- [FEAT] Can I use a full local LLM instead of openai? HOT 1
- [BUG] Could not locate app.retriever.get_relevant_documents.rets[:].page_content.collect() in app/record. HOT 4
- Getting issues in using Trulens with Langchain Agents like ReAct/Structured Chat HOT 6
- getting error that openai is not installed. HOT 15
- [BUG] Azure openai shows 404 error HOT 1
- Outdated documentation for Groundedness HOT 2
- [BUG] Bedrock provider always gives: "Groundedness per statement in source: 0%" HOT 5
- [BUG] Problem with custom retriever. It's triggering "Found more than one `BaseRetriever` in app". HOT 5
- [BUG] Using AzureOpenAI provider does not show token usage/price HOT 2
- [FEAT] ARES integration possible? HOT 2
- [BUG] Inconsistent results between records variable values and dashboard/leaderboard values HOT 7
- [BUG] v0.20.3 of trulens-eval AzureOpenAI object has no attribute 'generate_score' HOT 2
- Deploy Trulens with FastAPI HOT 5
- from trulens_eval.feedback import Groundedness Not working 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.