The invention belongs to the technical field of
software development, and particularly provides a research and development-oriented long and short-
term memory framework construction method and
system, which adopts a layered
memory architecture to construct four core modules including a short-
term memory compressor, a medium-
term memory aggregator, a long-term memory graph and a cross-layer memory
router. The
system takes multi-source input such as research and development dialogues, code snippets and project documents as a starting point, extracts research and development elements through semantic analysis and entity recognition technologies, compresses lengthy dialogues into structured short-term memory by utilizing an attention
distillation mechanism, upgrades high-frequency short-term memory into medium-term knowledge fragments based on a
time sequence attenuation
algorithm, and improves the research and development efficiency. And constructing a long-term
knowledge graph containing developer portraits, project dependence and normative standards by adopting a graph convolutional network. Context understanding accuracy, multi-round dialogue continuity and personalized
service quality of a
large model in a research and development scene are remarkably improved, and the method is suitable for mainstream research and development tool scenes such as IDE plug-ins,
code review and architecture design.