This paper presents a graph neural network-based pipeline for reconstructing charged particle trajectories used in the LHCb experiment at CERN. High precision in particle physics requires massive data processing, and real-time data filtering (triggering) is crucial for achieving this. This study presents a method for efficiently deploying machine learning models, specifically graph neural networks, in a high-frequency 40 MHz data processing environment to maximize throughput and minimize energy consumption. The pipeline is implemented on GPU and FPGA architectures, and its performance and power consumption are compared and analyzed against existing algorithms.