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

Can we reduce and tailor number of dependencies during installation and usage to reduce bloatware? #470

Closed
andreped opened this issue Nov 29, 2024 · 1 comment

Comments

@andreped
Copy link
Contributor

andreped commented Nov 29, 2024

I was surprised to see when I want to use a minimal portion of semantic-router, for instance just openai with HybridRouteLayer. Why do I still need to install packages like cohere and mistralai. This adds a lot of bloatware to our production applications and there is no way I can remove them if I want to use semantic-router.

Why don't we restructure the project such that it can be used without depending on absolutely everything? For instance see here:
https://github.com/aurelio-labs/semantic-router/blob/main/semantic_router/encoders/__init__.py#L7

It even says that these two libraries, and several others, are supposed to be optional, but the code does not work when we try to use semantic-router when not installing these:
https://github.com/aurelio-labs/semantic-router/blob/main/pyproject.toml#L15

We do this in Vanna. See here for inspiration:
https://github.com/vanna-ai/vanna/blob/main/pyproject.toml

@andreped andreped changed the title Tailored reduced dependencies for installation Can we reduce and tailor number of dependencies during installation and usage to reduce bloatware? Nov 29, 2024
@andreped
Copy link
Contributor Author

Oh, this seems to no longer be an issue in the latest release (>=0.0.72).

Simply upgrading the package, allowed me to use a minimalistic version of the package without a lot of bloatware :]

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

No branches or pull requests

1 participant