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 instructor embeddings #16

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

Conversation

intertwine
Copy link

Fixes the instructor embeddings code sample from Chapter 4 pp. 123

  • use sentence-transformers==3.3.0
  • removes InstructorEmbedding

(as published, the code snippet throws ImportError: cannot import name 'cached_download' from 'huggingface_hub')

Also fixes an indentation error in the the CrawlerDispatcher class

Updates the instructor embeddings code sample from Chapter 4 pp. 123  to use `sentence-transformers==3.3.0` and removes InstructorEmbedding (as published, the code snippet throws `ImportError: cannot import name 'cached_download' from 'huggingface_hub'`
@iusztinpaul
Copy link
Collaborator

Hello @intertwine,

Thank you for contributing!

I will accept your PR regarding the sentence-transformers error, but the CrawlerDispatcher part has no indentation error. That is by design.

If the for loops ends, it shows that log and returns the custom crawler. Please remove the CrawlerDispatcher part, and I will accept the PR.

@intertwine
Copy link
Author

intertwine commented Nov 20, 2024

Please remove the CrawlerDispatcher part, and I will accept the PR.

@iusztinpaul done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants