> ## Documentation Index
> Fetch the complete documentation index at: https://docs.potpie.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Explore Your Codebase

In this tutorial, you'll learn how to use Ask in Potpie to get cited answers grounded in your actual source code, with exact file paths and line numbers for every claim.

To understand how Ask works, see the [Ask mode page](/build-flow/ask-a-question).

<Steps>
  <Step title="Ask your question">
    Type a natural language question about the codebase. **Ask** handles **flow tracing** and **dependency mapping**.

    <img src="https://mintcdn.com/potpieai/gJ4EwDE1Ctkm-zsd/images/new-chat-interface1.png?fit=max&auto=format&n=gJ4EwDE1Ctkm-zsd&q=85&s=3b87e642e79f7745126145c7c2d4c9ce" alt="Chat interface" width="1438" height="815" data-path="images/new-chat-interface1.png" />
  </Step>

  <Step title="Review the response">
    Potpie returns an answer with file paths and line references where relevant.

    <img src="https://mintcdn.com/potpieai/gJ4EwDE1Ctkm-zsd/images/ask-review1.png?fit=max&auto=format&n=gJ4EwDE1Ctkm-zsd&q=85&s=b3333a3169c977c9acab99e2338b1d57" alt="Response in progress" width="1438" height="815" data-path="images/ask-review1.png" />

    <img src="https://mintcdn.com/potpieai/gJ4EwDE1Ctkm-zsd/images/ask-review2.png?fit=max&auto=format&n=gJ4EwDE1Ctkm-zsd&q=85&s=90121f8216cef193269f3dfa3879db45" alt="Completed response with citations" width="2876" height="1632" data-path="images/ask-review2.png" />

    <Note>
      When a question involves a third-party library, it retrieves external documentation via `web search`.
    </Note>
  </Step>
</Steps>
