mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-14 08:56:27 +00:00
ibm: docstrings (#23149)
Added missed docstrings. Format docstrings to the consistent format (used in the API Reference)
This commit is contained in:
parent
86ee4f0daa
commit
109a70fc64
@ -15,6 +15,8 @@ from langchain_core.utils import convert_to_secret_str, get_from_dict_or_env
|
|||||||
|
|
||||||
|
|
||||||
class WatsonxEmbeddings(BaseModel, LangChainEmbeddings):
|
class WatsonxEmbeddings(BaseModel, LangChainEmbeddings):
|
||||||
|
"""IBM WatsonX.ai embedding models."""
|
||||||
|
|
||||||
model_id: str = ""
|
model_id: str = ""
|
||||||
"""Type of model to use."""
|
"""Type of model to use."""
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class WatsonxLLM(BaseLLM):
|
class WatsonxLLM(BaseLLM):
|
||||||
"""
|
"""
|
||||||
IBM watsonx.ai large language models.
|
IBM WatsonX.ai large language models.
|
||||||
|
|
||||||
To use, you should have ``langchain_ibm`` python package installed,
|
To use, you should have ``langchain_ibm`` python package installed,
|
||||||
and the environment variable ``WATSONX_APIKEY`` set with your API key, or pass
|
and the environment variable ``WATSONX_APIKEY`` set with your API key, or pass
|
||||||
|
Loading…
Reference in New Issue
Block a user