The Annual Information Statement (AIS) is a detailed document that outlines the total tax payments, TDS, TCS, and income sources across different categories for taxpayers' convenience. The data in the AIS comes from the SFT, TDS return and other filings made by banks, post office, property registrar and other institutions.
In the past, there have been cases where the AIS showed incorrect information due to mistakes in reporting by these entities or for other factors. So keep in mind that AIS is a secondary source of information, the primary sources are always the bank statement, stock broker's P&L statements, post office passbooks and others.