ibm: docstrings (#23149)

Added missed docstrings. Format docstrings to the consistent format
(used in the API Reference)
This commit is contained in:
Leonid Ganeline 2024-06-18 20:00:27 -07:00 committed by GitHub
parent 86ee4f0daa
commit 109a70fc64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -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."""

View File

@ -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