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

semantic_router.encoders HuggingFaceEncoder #387

Open
kmedri opened this issue Aug 15, 2024 · 0 comments
Open

semantic_router.encoders HuggingFaceEncoder #387

kmedri opened this issue Aug 15, 2024 · 0 comments

Comments

@kmedri
Copy link

kmedri commented Aug 15, 2024

When running:

from semantic_router.encoders import HuggingFaceEncoder

model = "nomic-ai/nomic-embed-text-v1.5"
encoder = HuggingFaceEncoder(name=t_model)

I need to set an additional arg "trust_remote_code=True" in order to use the Hugging Face model.
However the function only takes 1 argument.

Am I missing something or is this not possible yet? Thank you

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