The invention discloses a question and answer method based on
medical institution internal
knowledge base retrieval enhancement generation,
electronic equipment and a storage medium. The method comprises the following steps: S100, constructing a
medical institution internal
knowledge base; s110, collecting an original document, preprocessing the original document, dividing the original document into text blocks, and storing the text blocks into a
database; s120, establishing vectorization and indexing based on abstracts for the text blocks; s200, based on the questions of the user, performing retrieval to generate answers; s210,
rewriting and expanding the original query to obtain an expanded query; s220, performing multi-path mixed retrieval, namely performing preliminary retrieval on the original query and the extended query to obtain N candidate text blocks; s230, rearrangement and careful selection are carried out, and M most relevant text blocks are selected by adopting a rearrangement model; and S240, answer generation and
source tracing: integrating the original query, the M text blocks and the instruction large
language model to generate a section of
natural language question and answer to obtain an answer result. Accurate, efficient and traceable
natural language question and answer service is provided for
medical care and management personnel, and
standardization, accuracy and efficiency of medical work are improved.