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

Comet updates #2889

Merged
merged 3 commits into from Apr 14, 2023
Merged

Conversation

Lothiraldan
Copy link
Contributor

Hello, I'm working with @DN6 and I made some small fixes and improvements after playing with the integration.

* Make sure all required dependencies are installed.
* Make sure that the dependencies are installed with the Python interpreter of
  the current kernel.
* Change the way to set environment variables to make it more fool-proof.
CometCallbackHandler will now creates a new Experiment every time it's created
or every time `flush_tracker` is called with `reset=True`. This behavior
should be less surprising.
@@ -34,12 +34,10 @@ def _get_experiment(
) -> Any:
comet_ml = import_comet_ml()

experiment = comet_ml.config.get_global_experiment()
Copy link
Contributor

Choose a reason for hiding this comment

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

why get rid of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current behavior is to re-use a Comet Experiment if one was created before and if not create a new one.
That behavior can be confusing for users that creates multiple instance of CometCallbackHandler and can leads to subtle bugs where the new Experiment is in the wrong workspace or project_name.
So we decided to get with a more simpler approach, one instance of CometCallbackHandler equals one instance of Comet Experiment.

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense!

@dev2049 dev2049 merged commit 7ee87eb into langchain-ai:master Apr 14, 2023
9 checks passed
samching pushed a commit to samching/langchain that referenced this pull request May 1, 2023
I'm working with @DN6 and I made some small fixes and
improvements after playing with the integration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants