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] [source]¶
为 PremAIEmbeddings 创建重试装饰器。
- 参数
embedder (PremAIEmbeddings) – PremAIEmbeddings 实例
max_retries (int) – 最大重试次数
- 返回
重试装饰器
- 返回类型
Callable[[Any], Any]