The invention discloses a knowledge indexing and retrieval method for an
AUTOSAR hierarchical architecture, and the method comprises the steps: taking a hierarchical structure of an
AUTOSAR CP knowledge
system as a
trunk, carrying out the vectorization of an input document, constructing an entity-relation hierarchical tree, obtaining a
knowledge graph indexing structure, carrying out the query matching through the similarity during retrieval, and carrying out the retrieval. Sorting retrieval output entities and relationships, constructing a context, and outputting a structured answer; comprising the following steps: step 1, indexing: intelligently partitioning
external database content input by a user and performing vectorization storage, operating general entity extraction and / or
AUTOSAR special extraction and combining results, constructing a
tree structure, performing
hierarchical clustering to form a
knowledge graph, and generating a
community report; and 2, retrieval: receiving user query, finding related entities through vector similarity search, aggregating contexts in combination with tree and graph dual structures, and starting universal cue words and / or AUTOSAR special cue words to generate structured answers. The invention further discloses a
system for implementing the method, and the
system has wide application value.