-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enhance HuggingFaceEndpointsComponent with additional parameters (
#3846) * Update HuggingFaceInferenceAPIEmbeddings.py update to use inference api from hugging face * Enhance HuggingFaceEndpointsComponent with additional parameters - Add FloatInput for top_p, typical_p, temperature, and repetition_penalty - Update create_huggingface_endpoint and build_model methods to include new parameters - Set default values and info for new inputs ToDo Need to update the Package from langchain_community.llms.huggingface_endpoint import HuggingFaceEndpoint since its depreciated. * Updated HuggingFaceModel Solving Lint Error Updated HuggingFaceModel Solving Lint Error * Update HuggingFaceModel.py Added Inference Endpoint as an input from user to support custom inference endpoints * Update HuggingFaceModel.py paper references removed
- Loading branch information
1 parent
aa25783
commit 1caba1c
Showing
2 changed files
with
113 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters