You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
I was surprised to see when I want to use a minimal portion of
semantic-router
, for instance justopenai
withHybridRouteLayer
. Why do I still need to install packages likecohere
andmistralai
. This adds a lot of bloatware to our production applications and there is no way I can remove them if I want to usesemantic-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
The text was updated successfully, but these errors were encountered: