Chapter 16: Additional Features

In the past chapters, we have discussed almost all the major modules and use cases one can solve using LangChain. This last section touches upon a few other functionalities that LangChain provides but in brief. So let’s quickly start the last chapter.

16.1 Fallbacks

Fallbacks can be considered as the ‘except’ case for a ‘try’ situation when using LangChain. So if, by any chance, the code breaks, Fallbacks helps the app to use an alternate logic and avoid failure. Issues like rate limiting or downtime can arise when using language models through APIs. It's crucial to safeguard against these problems, especially when transitioning LangChain applications into production. Fallback strategies are essential not only ...

Get LangChain in your Pocket now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.