This is an implementation of Chain-of-Verification, from this paper
The implementation is take from this amazing GitHub repo and modified to use LangChain Expression Language
You should absolutely check out the above GitHub repo as it adds in external tools and more chains.
An example of the trace generated by this chain can be found here.