-
Notifications
You must be signed in to change notification settings - Fork 782
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
Allow installation without transformers #2252
Comments
Thank you for the request! I had been exploring this a while ago but couldn't find out a way to make this work. I remember that it wasn't possible for If it would be possible now with new In practice, I would actually prefer to then replace In other words, could you explain a bit what your suggested approach is? |
Hi Maarten, Thanks so much for the reply. Ah yes, that makes sense. I guess the only way to achieve the behaviour I am after would be to remove The issue then is that the Just going back to my own use-case, I use pre-computed openai embeddings and an openai backend for optional zero-shot modelling, so I am looking for the most lightweight way of installing the |
I hadn't heard of it before, but |
Because that would require breaking changes to BERTopic and potentially impact many users, I'm still a bit hesitant to implement that in the next release. Perhaps that would change in future releases, but due to the impact it all becomes a bit more complicated. Also note that you can already install a light-weight version of BERTopic as shown in the docs here: https://maartengr.github.io/BERTopic/getting_started/tips_and_tricks/tips_and_tricks.html#lightweight-installation |
Amazing! Thanks so much and sorry I didn't come across that section before. |
Feature request
Would it be possible to include an installation option where
sentence-transformers
is not required?Something like
bertopic[no-backend]
Motivation
For my use-case I use the openai embedding models, which use the
openai
package and (as far I can tell) don't requiretransformers
orsentence-transformers
Your contribution
If approved, I can raise a PR
The text was updated successfully, but these errors were encountered: