create_prem_retry_decorator#
- langchain_community.embeddings.premai.create_prem_retry_decorator(embedder: PremAIEmbeddings, *, max_retries: int = 1) Callable[[Any], Any] [源代码]#
为PremAIEmbeddings创建一个重试装饰器。
- Parameters:
embedder (PremAIEmbeddings) – PremAIEmbeddings 实例
max_retries (int) – 最大重试次数
- Returns:
重试装饰器
- Return type:
Callable[[Any], Any]