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

Dev #75

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

Dev #75

wants to merge 12 commits into from

Conversation

madison-evans
Copy link

No description provided.

- Modified MFModel to support both OpenAI and Hugging Face embeddings.
- Introduced  parameter to toggle between embedding sources.
- Refactored embedding handling logic for better clarity and flexibility.
- Updated initialization to allow specifying custom embedding model names.
… dimensions and optional Hugging Face embeddings

- Added parameters 'use_openai_embeddings', 'embedding_model_name', and 'text_dim' to MatrixFactorizationRouter.
- Modified initialization to dynamically set 'text_dim' based on the selected embedding model.
- Adjusted the router to handle both OpenAI and Hugging Face embeddings seamlessly.
- Ensured compatibility with different embedding models by determining 'text_dim' at runtime.
- Updated documentation and comments for clarity.

This enhancement allows users to choose between OpenAI and Hugging Face embeddings in the MatrixFactorizationRouter, providing greater flexibility and eliminating the hard-coded dependency on OpenAI's embedding dimension.
…proved flexibility in handling Hugging Face authentication. Ensures that the Hugging Face token is properly utilized when initializing routers, supporting local embeddings without external API dependencies.
@madison-evans
Copy link
Author

added public get_routed_model method

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

Successfully merging this pull request may close these issues.

1 participant