This paper develops and applies a standardized framework for forecasting year-on-year inflation in Colombia using large language models (LLMs). We conduct six sequential experiments in which the information set available to the models is progressively expanded by incorporating historical macroeconomic data, contextual indicators, explicit economic structure, and contemporaneous information retrieved through web search. Each configuration is executed daily and generates 24-month inflation forecasts in real time rather than retrospectively, together with qualitative explanations of the forecasts and, in the more advanced configurations, assessments of the shocks affecting inflation. This real-time design mitigates look-ahead bias and produces genuine forecast vintages. The framework is implemented as a programmatic pipeline in Python that queries the OpenAI and Google APIs, executes predefined experiment-specific prompts, and automatically processes and stores the model responses, while applying forecast validation and revision procedures in the more advanced configurations. The results show that richer information environments produce less monotonic inflation paths that remain above the 3% target over the forecast horizon and are more consistent with the contemporaneous domestic and external shocks affecting inflation. The qualitative analysis also enables the identification of key inflation drivers and the interactions among them. These richer forecast paths are broadly consistent with the pattern observed in survey-based inflation expectations. A formal evaluation of forecast accuracy will be conducted as additional real-time forecast vintages become available.
The most recent
Approach
The document adopts a sequential and cumulative experimental design composed of six configurations that make it possible to study how Colombia’s annual inflation forecasts evolve as the information set expands and the degree of economic discipline imposed on the LLMs (GPT-4o and Gemini 2.5 Pro) increases.
Steps 0 and 1 correspond to univariate inflation forecasting exercises. Steps 2 and 3 extend the analysis toward the joint and mutually consistent generation of paths for inflation, the exchange rate, the monetary policy rate, and GDP growth, progressively incorporating historical time series and contextual variables. Steps 4 and 5 add explicit macroeconomic relationships as well as validation and consistency-review procedures.
Step 5 represents the most comprehensive configuration, as it integrates contemporaneous domestic and external information gathered through web searches, identifies and quantifies shocks, evaluates their transmission mechanisms, and conditions joint forecasts on these factors. Each configuration is executed daily and produces 24-month monthly inflation forecasts, accompanied by qualitative explanations, through a Python-based workflow that queries the OpenAI and Google APIs.
Contribution
The study’s main contribution is the development of a standardized, controlled, and reproducible framework for generating real-time macroeconomic forecasts with LLMs, in contrast to much of the previous literature, which relies on retrospective or pseudo-out-of-sample exercises.
By producing date-stamped forecast runs and historical data vintages that reflect the information set available at the time of forecasting, the design helps mitigate look-ahead bias and temporal information leakage. At the same time, it enables a transparent assessment of how forecasts respond to the sequential incorporation of historical data, contextual indicators, theoretical structure, and contemporaneous information.
The paper proposes an innovative, systematic, and reproducible framework for inflation forecasting using LLMs, demonstrating that the progressive incorporation of macroeconomic information, economic structure, and contemporaneous shocks can generate projections that are more dynamic and more consistent with real-time economic conditions.
Results
The results show that the informational environment substantially influences the shape and persistence of forecasts. Steps 0–3 generate trajectories that converge relatively quickly and almost monotonically toward the 3% inflation target, whereas Steps 4 and 5 produce more persistent and non-monotonic profiles, characterized by an initial increase followed by gradual disinflation, with inflation still remaining above target at the end of the forecast horizon.
In particular, Step 5 explicitly incorporates contemporaneous domestic and external shocks and their interactions, repeatedly identifying pressures associated with international oil, food, and fertilizer prices, transportation costs, and disruptions in global supply chains, together with domestic factors such as minimum wage adjustments and indexation, inflation expectations, and strong demand conditions.
The resulting trajectories display a qualitative pattern similar to the expectations reported in the Banco de la República’s Monthly Survey of Economic Analysts’ Expectations, although they tend to remain above those expectations during part of 2026.

Edgar Caicedo-Garcíaa