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

Component/generate embeddings #520

Merged
merged 15 commits into from
Oct 18, 2023
Merged

Component/generate embeddings #520

merged 15 commits into from
Oct 18, 2023

Conversation

tillwenke
Copy link
Contributor

@tillwenke tillwenke commented Oct 13, 2023

Besides:

  • ignore vscode settings
  • mypy retry

Copy link
Contributor

@mrchtr mrchtr left a comment

Choose a reason for hiding this comment

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

Thanks @tillwenke. I've left a few comments.

Would you up for adding a simple test case to your component?

Based on your component code I can not see why your pipeline is failing. I think we have to look on your whole pipeline to see what is going wrong.

docs/components/custom_component.md Outdated Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
components/generate_embeddings/src/main.py Outdated Show resolved Hide resolved
@tillwenke
Copy link
Contributor Author

Thanks @tillwenke. I've left a few comments.

Would you up for adding a simple test case to your component?

Based on your component code I can not see why your pipeline is failing. I think we have to look on your whole pipeline to see what is going wrong.

done

self.model_provider = model_provider
self.model = model

to_env_vars(api_keys)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you extend the readme on how to use the different model providers? E.g. in how the api key environment variable should be named. I can assume that this differs from provider to provider.

msg = f"Unknown provider {model_provider}"
raise ValueError(msg)

@retry() # make sure to keep trying even when api call limit is reached
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this keep retrying infinitely? Would be nice if this can be somehow be modified to log when a connection limit is reached.

Copy link
Contributor

@PhilippeMoussalli PhilippeMoussalli left a comment

Choose a reason for hiding this comment

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

Thanks @tillwenke! There are still some open comments but I will merge this PR since we want to use this component for the chapter conference, I will make some changes to it and tag you in later PRs

@PhilippeMoussalli PhilippeMoussalli merged commit 6b20f46 into ml6team:main Oct 18, 2023
6 checks passed
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.

3 participants