The invention provides a question and answer method,
electronic equipment and a storage medium, and the method comprises the steps: obtaining a user question and a target attribute, the target attribute being a structured attribute of a text block needed to answer the user question, and the structured attribute comprising at least one of
metadata and a business type; determining a
target text block from the plurality of text blocks based on the user question, the target attribute, the plurality of text blocks and the structured attributes of the text blocks; and based on the user question and the
target text block, generating an answer to the user question. In the method, the
electronic equipment and the storage medium provided by the invention, due to the application of the structured attributes of the text blocks, rich reference information is provided for accurate filtering and retrieval of the text blocks based on the intention embodied by the user question in the retrieval stage of a retrieval enhancement generation technology; and furthermore, a high-quality and high-applicability
target text block is provided as a context for a retrieval enhancement generation technology in a generation stage, so that the accuracy, reliability and practicability of answers can be remarkably improved.