Skip to content

Commit

Permalink
Merge pull request #1156 from weaviate/20240703-further-nit-picking-s…
Browse files Browse the repository at this point in the history
…weat-smile

Propose further wording change
  • Loading branch information
dirkkul committed Jul 4, 2024
2 parents 9f1f3af + cbe0fda commit 2541408
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions weaviate/collections/classes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,13 @@ def custom(
module_name: str,
module_config: Dict[str, Any],
) -> _GenerativeConfigCreate:
"""Create a `_GenerativeCustom` object for use when generating using a custom module.
"""Create a `_GenerativeCustom` object for use when generating using a custom specification.
Arguments:
`module_name`
The name of the custom module to use, REQUIRED.
The name of the module to use, REQUIRED.
`module_config`
The configuration to use for the custom module. Defaults to `None`, which uses the server-defined default.
The configuration to use for the module. Defaults to `None`, which uses the server-defined default.
"""
return _GenerativeCustom(generative=_EnumLikeStr(module_name), module_config=module_config)

Expand Down Expand Up @@ -871,13 +871,13 @@ def transformers() -> _RerankerConfigCreate:

@staticmethod
def custom(module_name: str, module_config: Dict[str, Any]) -> _RerankerConfigCreate:
"""Create a `_RerankerCustomConfig` object for use when reranking using a custom module.
"""Create a `_RerankerCustomConfig` object for use when reranking using a custom specification.
Arguments:
`module_name`
The name of the custom module to use, REQUIRED.
The name of the module to use, REQUIRED.
`module_config`
The configuration to use for the custom module. Defaults to `None`, which uses the server-defined default.
The configuration to use for the module. Defaults to `None`, which uses the server-defined default.
"""
return _RerankerCustomConfig(
reranker=_EnumLikeStr(module_name), module_config=module_config
Expand Down
6 changes: 3 additions & 3 deletions weaviate/collections/classes/config_vectorizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,13 @@ def text2vec_contextionary(vectorize_collection_name: bool = True) -> _Vectorize
def custom(
module_name: str, module_config: Optional[Dict[str, Any]] = None
) -> _VectorizerConfigCreate:
"""Create a `_VectorizerCustomConfig` object for use when vectorizing using a custom module.
"""Create a `_VectorizerCustomConfig` object for use when vectorizing using a custom specification.
Arguments:
`module_name`
The name of the custom module to use, REQUIRED.
The name of the module to use, REQUIRED.
`module_config`
The configuration to use for the custom module. Defaults to `None`, which uses the server-defined default.
The configuration to use for the module. Defaults to `None`, which uses the server-defined default.
"""
return _VectorizerCustomConfig(
vectorizer=_EnumLikeStr(module_name), module_config=module_config
Expand Down

0 comments on commit 2541408

Please sign in to comment.