-
Notifications
You must be signed in to change notification settings - Fork 20.3k
Add Flyte Callback Handler #6139
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
Add Flyte Callback Handler #6139
Conversation
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
|
Good start! had some requests |
|
Hi @vowelparrot! Thanks for reviewing the PR. I'm currently testing this PR and it isn't complete yet. I'll make sure to incorporate your suggestions. |
Signed-off-by: Samhita Alla <[email protected]>
|
@samhita-alla is attempting to deploy a commit to the LangChain Team on Vercel. A member of the Team first needs to authorize it. |
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
zeryx
left a comment
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.
pandas and spacy are optional langchain imports, added some comments
| self.pandas = import_pandas() | ||
| spacy = import_spacy() |
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.
Minor consideration, both spacy and pandas are optional imports (as per the poet pyproject.toml.
This may fail as both pandas and spacy are not imported by flyte
https://github.com/hwchase17/langchain/blob/master/pyproject.toml#L88
https://github.com/hwchase17/langchain/blob/master/pyproject.toml#L29
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.
What are you suggesting here?
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.
@zeryx, please let me know your suggestions.
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.
It's up to you @samhita-alla but if you still want SOME logging even if users don't want to install pandas and spacy, you could log a warning and then reduce the number of facets logged
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.
@vowelparrot, the callback will now log a warning if spacy is not installed. As for pandas, it is automatically installed with flytekit, so there shouldn't be any issues in that regard.
Let me know if you have any further feedback. The PR can be merged if no further changes are required.
Signed-off-by: Samhita Alla <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Signed-off-by: Samhita Alla <[email protected]>
|
@vowelparrot, could you please review the PR again? |
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]> Co-authored-by: Samhita Alla <[email protected]>
Signed-off-by: Samhita Alla <[email protected]> Co-authored-by: Samhita Alla <[email protected]>
This PR adds a Flyte callback handler that can be triggered from within a Flyte task to track LangChain experiments.
Before submitting
Who can review?
Tag maintainers/contributors who might be interested: