Google is using newish language understanding models specific to leveraging conversational context for these search features.
Please visit Search Engine Land for the full article.
Source: Search Engine Land
Link: Google puts some contextual search features in context