docs: community docstring updates (#21040)

Added missed docstrings. Updated docstrings to consistent format.
This commit is contained in:
Leonid Ganeline
2024-04-29 14:40:23 -07:00
committed by GitHub
parent 90f19028e5
commit 85094cbb3a
29 changed files with 84 additions and 35 deletions

View File

@@ -72,6 +72,15 @@ def create_prem_retry_decorator(
*,
max_retries: int = 1,
) -> Callable[[Any], Any]:
"""Create a retry decorator for PremAIEmbeddings.
Args:
embedder (PremAIEmbeddings): The PremAIEmbeddings instance
max_retries (int): The maximum number of retries
Returns:
Callable[[Any], Any]: The retry decorator
"""
import premai.models
errors = [