Custom LangChain Retriever is not logged
Closed this issue · 9 comments
In my Chain,I find that only LangChain Retriever can be logged,Custom Retriever is not logged.
LangChain Retriever
Custom Retriever
class ContextExpandRetriver(BaseRetriever):
def _get_relevant_documents(
self,
query: str,
*,
run_manager: CallbackManagerForRetrieverRun,
**kwargs: Any,
) -> List[Document]:
source_documents = []
# do something to ContextExpandRetriver
return source_documents
Just replace retriever in Example blow will reproduce the problem!
https://www.trulens.org/trulens_eval/langchain_quickstart/#load-documents
Because of the bug,the lens App.select_context returns , is not log to the db, and thus can not be dealed by the Feedback
Hey @q2wxec ! Thanks for creating the issue.
I’m not quite following the issue here. Is it that the expected component is not showing in the timeline (not being logged at all), or is it just not being selected by select_context
Awesome news. Re: the dashboard error, this is fixed in main (and 0.22.1) but wasn’t in this branch yet. Just pulled it in to the branch
Awesome news. Re: the dashboard error, this is fixed in main (and 0.22.1) but wasn’t in this branch yet. Just pulled it in to the branch
thx for your effort
You’re welcome! Assuming it’s working now?
You’re welcome! Assuming it’s working now?
yes
Will close this once it's merged