Achieving method and device of callback function based on olan framework, medium and equipment
The invention discloses a callback function implementation method and device based on an ollama framework, a medium and equipment, when the callback function is called, the callback function obtains a query statement input by a user and a selected reply setting tag, and an adaptive prompt template i...
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 callback function implementation method and device based on an ollama framework, a medium and equipment, when the callback function is called, the callback function obtains a query statement input by a user and a selected reply setting tag, and an adaptive prompt template is dynamically generated based on the query statement and the reply setting tag. According to the method, a prompt processing mechanism is optimized, user experience is improved, a more accurate reply statement is generated based on the query content, the historical query content and the corresponding historical reply content reply statement through the relation of interaction contexts, the reply statement is evaluated to guarantee the quality of the reply statement, and the user experience is improved. And after the evaluation is qualified, the reply statement is packaged into a standard statement in a JSON format to be output, so that the adaptability and the interaction performance of the system are enhanced.
本申请 |
---|