mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 06:23:20 +00:00
community[patch]: docstrings (#16810)
- added missed docstrings - formated docstrings to the consistent form
This commit is contained in:
@@ -13,7 +13,7 @@ def _chunk(texts: List[str], size: int) -> Iterator[List[str]]:
|
||||
|
||||
|
||||
class MlflowEmbeddings(Embeddings, BaseModel):
|
||||
"""Wrapper around embeddings LLMs in MLflow.
|
||||
"""Embedding LLMs in MLflow.
|
||||
|
||||
To use, you should have the `mlflow[genai]` python package installed.
|
||||
For more information, see https://mlflow.org/docs/latest/llms/deployments/server.html.
|
||||
@@ -85,5 +85,7 @@ class MlflowEmbeddings(Embeddings, BaseModel):
|
||||
|
||||
|
||||
class MlflowCohereEmbeddings(MlflowEmbeddings):
|
||||
"""Cohere embedding LLMs in MLflow."""
|
||||
|
||||
query_params: Dict[str, str] = {"input_type": "search_query"}
|
||||
documents_params: Dict[str, str] = {"input_type": "search_document"}
|
||||
|
Reference in New Issue
Block a user