diff --git a/weaviate/collections/classes/config.py b/weaviate/collections/classes/config.py index 3a3b52868..ad53b6d54 100644 --- a/weaviate/collections/classes/config.py +++ b/weaviate/collections/classes/config.py @@ -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) @@ -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 diff --git a/weaviate/collections/classes/config_vectorizers.py b/weaviate/collections/classes/config_vectorizers.py index 9d33f7356..23667226f 100644 --- a/weaviate/collections/classes/config_vectorizers.py +++ b/weaviate/collections/classes/config_vectorizers.py @@ -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