This invention discloses a method and
system for extracting
domain knowledge graphs based on the
collaboration of large and small models. First, central entities are extracted and filtered. Then, the text is segmented to generate associated summaries, forming enhanced semantic blocks, which are then vectorized to construct a
knowledge base. Next, a
large model and
a domain segmenter are used in parallel to extract candidate entities, which are then filtered by type discrimination and confidence to generate entities with contextual descriptions. Then, based on entity pairs, the supporting text is retrieved, and
usability, relation type, illusion, strength, and
direction detection are performed sequentially. If successful, relation triples are generated. Finally, a star graph and similarity support material are constructed for the entities. Through two-stage semantic retrieval and
large model judgment, the fusion of entities with the same name is achieved, and the association relationships are updated. This invention can automatically complete the process of constructing a high-quality
knowledge graph from text under the condition of a single-
machine, relatively parameter-based model.