Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-jreini
Copy link
Contributor

@sfc-gh-jreini sfc-gh-jreini commented Sep 12, 2024

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • New Tests
  • This change includes re-generated golden test results
  • This change requires a documentation update

@sfc-gh-jreini sfc-gh-jreini marked this pull request as ready for review September 12, 2024 17:08
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 12, 2024
@sfc-gh-jreini sfc-gh-jreini requested a review from a team September 12, 2024 17:08
@dosubot dosubot bot removed the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 17, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Sep 17, 2024
@@ -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`,
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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",
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also alias these

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants