CoT Before Searching the Codebase

Implement a similar retrieval technique that is used for perplexity pro search where you have an LLM break down the question into multiple parts, generate and execute search queries for each part, then send all of this context to the final LLM to generate a response to the user.