Large model generation method and device and computer program product
The invention discloses a large model generation method and device and a computer program product. The method comprises the following steps: acquiring a natural language target question, and determining at least one keyword in the natural language target question; determining elements of the keyword...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a large model generation method and device and a computer program product. The method comprises the following steps: acquiring a natural language target question, and determining at least one keyword in the natural language target question; determining elements of the keywords and attribute information of the elements by utilizing a preset knowledge graph, and generating an initial SQL statement according to the elements of the keywords and the attribute information of the elements; determining the similarity between a natural language sample question in a preset corpus and the natural language target question or between a sample SQL statement in the corpus and the initial SQL statement, and determining at least one group of target question and answer pairs based on the similarity; and training a preset initial large model by using the at least one group of target questions and answers as a prompt project to obtain a target large model. According to the method and the device, the techn |
---|