@ -45,9 +45,9 @@ class HuggingFaceEmbeddings(BaseModel, Embeddings):
""" Path to store models.
Can be also set by SENTENCE_TRANSFORMERS_HOME environment variable . """
model_kwargs : Dict [ str , Any ] = Field ( default_factory = dict )
""" Key word arguments to pass to the model."""
""" Key word arguments to pass to the model."""
encode_kwargs : Dict [ str , Any ] = Field ( default_factory = dict )
""" Key word arguments to pass when calling the `encode` method of the model."""
""" Key word arguments to pass when calling the `encode` method of the model."""
multi_process : bool = False
""" Run encode() on multiple GPUs. """
@ -133,9 +133,9 @@ class HuggingFaceInstructEmbeddings(BaseModel, Embeddings):
""" Path to store models.
Can be also set by SENTENCE_TRANSFORMERS_HOME environment variable . """
model_kwargs : Dict [ str , Any ] = Field ( default_factory = dict )
""" Key word arguments to pass to the model."""
""" Key word arguments to pass to the model."""
encode_kwargs : Dict [ str , Any ] = Field ( default_factory = dict )
""" Key word arguments to pass when calling the `encode` method of the model."""
""" Key word arguments to pass when calling the `encode` method of the model."""
embed_instruction : str = DEFAULT_EMBED_INSTRUCTION
""" Instruction to use for embedding documents. """
query_instruction : str = DEFAULT_QUERY_INSTRUCTION
@ -212,9 +212,9 @@ class HuggingFaceBgeEmbeddings(BaseModel, Embeddings):
""" Path to store models.
Can be also set by SENTENCE_TRANSFORMERS_HOME environment variable . """
model_kwargs : Dict [ str , Any ] = Field ( default_factory = dict )
""" Key word arguments to pass to the model."""
""" Key word arguments to pass to the model."""
encode_kwargs : Dict [ str , Any ] = Field ( default_factory = dict )
""" Key word arguments to pass when calling the `encode` method of the model."""
""" Key word arguments to pass when calling the `encode` method of the model."""
query_instruction : str = DEFAULT_QUERY_BGE_INSTRUCTION_EN
""" Instruction to use for embedding query. """