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

instructor - new secret management #417

Merged
merged 3 commits into from
Feb 15, 2024
Merged

instructor - new secret management #417

merged 3 commits into from
Feb 15, 2024

Conversation

anakin87
Copy link
Member

part of #365

I followed the same approach used for Sentence Transformers embedders in the Haystack repo

@anakin87 anakin87 requested a review from a team as a code owner February 14, 2024 17:13
@anakin87 anakin87 requested review from davidsbatista and removed request for a team February 14, 2024 17:13
@github-actions github-actions bot added integration:instructor-embedders type:documentation Improvements or additions to documentation labels Feb 14, 2024
davidsbatista
davidsbatista approved these changes Feb 15, 2024
@@ -62,7 +63,7 @@ def __init__(
self,
model: str = "hkunlp/instructor-base",
device: Optional[str] = None,
use_auth_token: Union[bool, str, None] = None,
token: Optional[Secret] = Secret.from_env_var("HF_API_TOKEN", strict=False), # noqa: B008
Copy link
Contributor

Choose a reason for hiding this comment

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

that's actually a better idea, to have those ignore statements inline, instead of globally defined 👍🏽

Copy link
Contributor

@davidsbatista davidsbatista left a comment

Choose a reason for hiding this comment

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

LGTM

@anakin87 anakin87 merged commit 999e5a2 into main Feb 15, 2024
5 checks passed
@anakin87 anakin87 deleted the instructor-secret branch February 15, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration:instructor-embedders type:documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants