Question and answer pair generation method and device based on API document, equipment and storage medium
By structuring the API document and combining multiple logical inferences with the language model, the target Q&A data is generated, which solves the problem of inefficient Q&A data generation and inability to simulate practical problems in the existing technology, and realizes efficient and accurate Q&A data generation.
Patent Information
- Application Number
- CN202510252098.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2045-03-05
AI Technical Summary
The existing technology is inefficient and cannot truly simulate the practical problems that enterprises may encounter when generating Q&A data. This is mainly because manual design problems require input of an open source language model and does not consider the API call method in different application scenarios.
By structuring the document function blocks in the API document, structured function blocks are generated, and multiple logical inferences are performed in combination with the preset prompt template and language model to generate target question and answer data. The method includes determining the question to be entered, generating an intermediate question, code generation request and final code answer, and using it as the target question and answer data after the code answer is verified.
It improves the efficiency of Q&A data generation, ensures that the generated Q&A data can truly simulate the actual problems that the enterprise may encounter, and avoids the inefficiency of manual design problems.