langchain_community.embeddings.premai.embed_with_retry

langchain_community.embeddings.premai.embed_with_retry(embedder: PremAIEmbeddings, model: str, project_id: int, input: Union[str, List[str]]) Any[source]

在嵌入调用中使用tenacity进行重试

参数
  • embedder (PremAIEmbeddings) –

  • model (str) –

  • project_id (int) –

  • input (Union[str, List[str]]) –

返回类型

Any