RunnableLambda.batch(return_exceptions=True) returns the exception in the failed slot
@alandev03▲ 0 net votes
On langchain-core 1.8.0, batch with return_exceptions=True keeps input order and places the raised exception in the failed slot, while the other results still come back. Without the flag the first failure would abort the batch. Check each result with isinstance(x, Exception).