mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 23:26:34 +00:00
community[patch]: fixed aleph alpha default emedding request (#21826)
- **Description:** In the aleph alpha client the paramater `normalize` is *not* optional. Setting this to `None` gives an error. - **Dependencies:** None Co-authored-by: Jens Lücke <jens.luecke@tngtech.com> Co-authored-by: Jens <jens.luecke@hu-berlin.de> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
parent
6a59f76f2b
commit
b0b302ec6b
@ -37,7 +37,7 @@ class AlephAlphaAsymmetricSemanticEmbedding(BaseModel, Embeddings):
|
||||
compress_to_size: Optional[int] = None
|
||||
"""Should the returned embeddings come back as an original 5120-dim vector,
|
||||
or should it be compressed to 128-dim."""
|
||||
normalize: Optional[bool] = None
|
||||
normalize: bool = False
|
||||
"""Should returned embeddings be normalized"""
|
||||
contextual_control_threshold: Optional[int] = None
|
||||
"""Attention control parameters only apply to those tokens that have
|
||||
|
Loading…
Reference in New Issue
Block a user