Update HuggingFaceEmbeddings.py with default encode_kwargs and model_kwargs
This commit is contained in:
parent
d4b0706580
commit
7dcbe3a525
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ class HuggingFaceEmbeddingsComponent(CustomComponent):
|
|||
def build(
|
||||
self,
|
||||
cache_folder: Optional[str] = None,
|
||||
encode_kwargs: Optional[Dict] = None,
|
||||
model_kwargs: Optional[Dict] = None,
|
||||
encode_kwargs: Optional[Dict] = {},
|
||||
model_kwargs: Optional[Dict] = {},
|
||||
model_name: str = "sentence-transformers/all-mpnet-base-v2",
|
||||
multi_process: bool = False,
|
||||
) -> HuggingFaceEmbeddings:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue