This invention discloses a method, apparatus, device, and medium for generating auxiliary information for code answer questions. The method includes: acquiring code description information and a user question provided by a first user, wherein the code description information includes a code question and a corresponding code answer; the user question includes a question raised by a second user related to the code description information; acquiring
annotation information of the code answer; performing
intent recognition on the user question to obtain a
user intent; and determining the corresponding response content for the user question based on the
user intent, the code description information, and the
annotation information. Embodiments of this invention can provide accurate response content for questions raised in response to answers to code questions.