_retry() — langchain Function Reference
Architecture documentation for the _retry() function in embeddings.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b63650a7_8bd1_901e_6719_77952ae677e4["_retry()"] 8ffbd15a_923a_c258_fc8b_25df9b4cba69["MistralAIEmbeddings"] b63650a7_8bd1_901e_6719_77952ae677e4 -->|defined in| 8ffbd15a_923a_c258_fc8b_25df9b4cba69 style b63650a7_8bd1_901e_6719_77952ae677e4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/mistralai/langchain_mistralai/embeddings.py lines 223–233
def _retry(self, func: Callable) -> Callable:
if self.max_retries is None or self.wait_time is None:
return func
return retry(
retry=retry_if_exception_type(
(httpx.TimeoutException, httpx.HTTPStatusError)
),
wait=wait_fixed(self.wait_time),
stop=stop_after_attempt(self.max_retries),
)(func)
Domain
Subdomains
Source
Frequently Asked Questions
What does _retry() do?
_retry() is a function in the langchain codebase, defined in libs/partners/mistralai/langchain_mistralai/embeddings.py.
Where is _retry() defined?
_retry() is defined in libs/partners/mistralai/langchain_mistralai/embeddings.py at line 223.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free