The invention discloses a multi-
modal agricultural question and answer method and
system for generating RAG based on retrieval enhancement, and the method comprises the steps: collecting and constructing
crop disease image data containing a farmland complex background and corresponding text description, and forming an agricultural image-text knowledge
database; based on the agricultural image-text knowledge
database, multi-
modal features of an input image and a query text are extracted, image-text joint similarity retrieval is carried out, and knowledge image-text candidates are obtained; inputting the knowledge image-text candidates into an image-text rearrangement module for rearrangement; taking the reordered image-text knowledge as condition input, accessing a large
language model, and generating diagnosis description and prevention and treatment suggestions for the current
crop diseases; and outputting a multi-
modal question and answer result according to the image and question input by the user. According to the method, the agricultural image-
text database is constructed, and multi-modal retrieval, rearrangement and large
language model generation technologies are combined, so that accurate and efficient
crop disease multi-modal
question answering is realized, and the reliability of diagnosis and prevention suggestions is improved.