Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] QA Pair Generation using OpenAI's API Integration #25

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Aditya062003
Copy link
Contributor

Feature: QA Pair Generation using OpenAI API Integration

Description:

Resolves Issue #24
Introduce a new feature that enables users to generate question-answer (QA) pairs using their API keys for OpenAI's model. Users can specify the type of QA pairs they want (short answer, MCQ, true/false) and provide the content for generation. The software utilizes OpenAI's gpt-turbo-3.5 model to generate QA pairs, which can be viewed or saved for future reference.
Users can access their API keys from here

Implementation Details:

  • Integrated functionality to generate QA pairs using OpenAI's API.
  • Provided options for users to select the type of QA pairs (short answer, MCQ, true/false).

Changes Made:

  • Added feature for QA pair generation using OpenAI API integration.
  • Implemented options for selecting different types of QA pairs.
  • Enabled viewing and saving of generated QA pairs.

Steps to Reproduce:

  1. Input API key for OpenAI's model.
  2. Select the type of QA pairs desired (short answer, MCQ, true/false).
  3. Provide the content for generating QA pairs.
  4. View or save the generated QA pairs for further use.

Expected Behavior:

  • Users should be able to generate QA pairs using their API keys.
  • The software should accurately generate QA pairs based on the provided content and selected type.
  • Generated QA pairs should be viewable and savable for future reference.

Additional Notes:

  • Users are required to obtain an API key from OpenAI for authentication.
  • Continuous monitoring and updates may be necessary to ensure compatibility with changes in ChatGPT's API.

Testing:

  • Comprehensive testing was conducted to ensure the accuracy and reliability of QA pair generation.
  • Test cases covered various scenarios, including different types of QA pairs and content inputs.

Images of Generated QA Pairs:

image
Screenshot from 2024-03-22 00-19-35
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant