Toggle Menu
Prev Up Next

# `langchain_community.embeddings.premai`.create_prem_retry_decorator

langchain_community.embeddings.premai.create_prem_retry_decorator(embedder: PremAIEmbeddings, *, max_retries: int = 1) → Callable[[Any], Any]

  Create a retry decorator for PremAIEmbeddings.

  Parameters

    - embedder (PremAIEmbeddings) – The PremAIEmbeddings instance

    - max_retries (int) – The maximum number of retries

  Returns

    The retry decorator

  Return type

    Callable[[Any], Any]