The 24-time Grand Slam champion lost 6-4, 7-5, 7-6 (7/3) to the world number one to miss out on a final against Carlos Alcaraz.
“This could have been the last match ever I played here, so I don’t know,” said the 38-year-old Djokovic.
“I don’t know really what tomorrow brings in a way at this point in my career. You know, I’m going to keep on keeping on.”
He will next bid for a record-breaking 25th major title at Wimbledon, which gets under way on June 30.
“Obviously Wimbledon is next, which is my childhood favourite tournament,” Djokovic, now the world number six, added.
“I’m going to do everything possible to get myself ready. I guess my best chances maybe are Wimbledon, to win another Slam, or faster hard court, maybe Australia or something like that.” (AFP)