-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
feat: Enhance HuggingFace Embeddings Inference component #3758
Conversation
Enhance HuggingFaceInferenceAPIEmbeddings component - Update display name and description for clarity - Add API URL validation method - Implement local URL detection and dummy API key for local deployments - Improve error handling for API key and URL requirements - Update documentation link
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some suggestions! Good work, and amazing job on the PR description.
src/backend/base/langflow/components/embeddings/HuggingFaceInferenceAPIEmbeddings.py
Outdated
Show resolved
Hide resolved
src/backend/base/langflow/components/embeddings/HuggingFaceInferenceAPIEmbeddings.py
Outdated
Show resolved
Hide resolved
src/backend/base/langflow/components/embeddings/HuggingFaceInferenceAPIEmbeddings.py
Outdated
Show resolved
Hide resolved
src/backend/base/langflow/components/embeddings/HuggingFaceInferenceAPIEmbeddings.py
Outdated
Show resolved
Hide resolved
src/backend/base/langflow/components/embeddings/HuggingFaceInferenceAPIEmbeddings.py
Show resolved
Hide resolved
src/backend/base/langflow/components/embeddings/HuggingFaceInferenceAPIEmbeddings.py
Outdated
Show resolved
Hide resolved
src/backend/base/langflow/components/embeddings/HuggingFaceInferenceAPIEmbeddings.py
Outdated
Show resolved
Hide resolved
- Update base class from LCModelComponent to LCEmbeddingsModel - Rename 'api_url' to 'inference_endpoint' for clarity - Improve error messages and validation for inference endpoint - Update documentation link - Enhance comments and code formatting
@jordanrfrazier can you help me out why certain CI Checks are failing ? |
…#3758) # Enhance HuggingFaceInferenceAPIEmbeddings component ## Initial enhancements - Update display name and description for clarity - Add API URL validation method - Implement local URL detection and dummy API key for local deployments - Improve error handling for API key and URL requirements - Update documentation link ## API key info update - Updated the info in API key input ## Refactor and improvements - Update base class from LCModelComponent to LCEmbeddingsModel - Rename 'api_url' to 'inference_endpoint' for clarity - Improve error messages and validation for inference endpoint - Update documentation link - Enhance comments and code formatting
…#3758) # Enhance HuggingFaceInferenceAPIEmbeddings component ## Initial enhancements - Update display name and description for clarity - Add API URL validation method - Implement local URL detection and dummy API key for local deployments - Improve error handling for API key and URL requirements - Update documentation link ## API key info update - Updated the info in API key input ## Refactor and improvements - Update base class from LCModelComponent to LCEmbeddingsModel - Rename 'api_url' to 'inference_endpoint' for clarity - Improve error messages and validation for inference endpoint - Update documentation link - Enhance comments and code formatting
Description
This PR enhances the HuggingFaceInferenceAPIEmbeddings component to improve its functionality, error handling, and support for local/remote inference deployments.
Key Changes
Benefits
Testing
Screen.Recording.2024-09-10.at.9.31.47.PM.mov