-
Notifications
You must be signed in to change notification settings - Fork 197
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
Fix caps to expected caps for LangChain provider (and to match docs) #1456
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -36,8 +36,8 @@ any { | |||
`from trulens_eval import Huggingface as $alias` => `from trulens.providers.huggingface.provider import Huggingface as $alias`, | |||
`from trulens_eval import HuggingfaceLocal` => `from trulens.providers.huggingface.provider import HuggingfaceLocal`, | |||
`from trulens_eval import HuggingfaceLocal as $alias` => `from trulens.providers.huggingface.provider import HuggingfaceLocal as $alias`, | |||
`from trulens_eval import Langchain` => `from trulens.providers.langchain.provider import Langchain`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change these? I thought this is referencing the old trulens_eval API?
@@ -9,4 +9,4 @@ | |||
|
|||
deprecation_utils.packages_dep_warn() | |||
|
|||
from trulens.providers.langchain.provider import Langchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may need to alias for compatability
from trulens.... import LangChain as Langchain
@@ -1,6 +1,6 @@ | |||
trulens_eval: | |||
__class__: builtins.module | |||
__version__: 0.33.0 | |||
__version__: 1.0.0.a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are expected to stay static. We need to update src/trulens_eval to match the <1.0 spec though. See note above about aliasing the import
@@ -9,7 +9,7 @@ trulens_eval: | |||
FeedbackMode: enum.EnumType | |||
Huggingface: pydantic._internal._model_construction.ModelMetaclass | |||
HuggingfaceLocal: pydantic._internal._model_construction.ModelMetaclass | |||
Langchain: pydantic._internal._model_construction.ModelMetaclass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will need to revert these as well
@@ -37,7 +37,7 @@ def setUp(self): | |||
"Provider", | |||
"AzureOpenAI", | |||
"OpenAI", | |||
"Langchain", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
@@ -44,7 +44,7 @@ | |||
with imports_utils.OptionalImports( | |||
messages=optional_utils.REQUIREMENT_PROVIDER_LANGCHAIN | |||
): | |||
from trulens.providers.langchain.provider import Langchain | |||
from trulens.providers.langchain.provider import LangChain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also alias these
Description
Fix caps to expected caps for LangChain provider (and to match docs). Identified in #1454
Other details good to know for developers
Please include any other details of this change useful for TruLens developers.
Type of change
not work as expected)