The invention provides a large
language model-oriented document interaction
processing method, device and equipment, and the method comprises the steps: generating a plurality of target sub-tasks according to a target task input by a user; for each target sub-task, determining a plurality of sub-queries corresponding to the target sub-task; determining a sub-
knowledge space corresponding to the target sub-task according to a
hybrid index pre-constructed by the document and a plurality of sub-queries corresponding to the target sub-task; and inputting the plurality of sub-knowledge spaces corresponding to the plurality of target sub-tasks into the large
language model to generate response results corresponding to the target tasks. According to the method provided by the embodiment of the invention, a large-scale and fuzzy target task is converted into a small-scale and clear target sub-task through task splitting, so that the difficulty of subsequent retrieval and reasoning can be effectively reduced, and the problem that a reasoning chain is easy to break when a complex task is directly processed is solved. Besides, the
hybrid index is constructed based on the dense
semantic vector index and the sparse keyword index of the document, so that the problem of low
recall rate or poor precision of the traditional single index can be effectively avoided, the
retrieval result is ensured to be comprehensive and accurate, the contradiction between the retrieval precision and efficiency is solved, and the retrieval efficiency is improved. The
system can keep global
perception and local accuracy when
processing long documents and heterogeneous documents, and the limitation that only local
semantics are concerned in traditional dense retrieval is overcome.