The victims were taken to San Francisco General Hospital, San Francisco fire Capt. Tony Dumont said.
The medical status of the man is unknown, but the woman's injuries are not life threatening, Lt. Troy Dangerfield said in a news release.
San Francisco police are searching for two suspects, including one who police describe as a black man, Dangerfield said in a statement.
No other information is available at this time.