Skip to content

codeakki/McqGeneratorOpenAi

Repository files navigation

AUTOMATED MCQ GENERATOR USING LANGCHAIN AND OPENAI-API

The "Automated MCQ Generator Using LangChain and OpenAI API" project aims to create a system that automatically generates multiple-choice questions (MCQs) using the LangChain library in conjunction with the OpenAI API. This system leverages advanced natural language processing techniques to analyze and understand textual content, then formulates relevant and accurate MCQs to aid in educational assessments and training programs. The automation of this process saves time and effort for educators and trainers, ensuring a high-quality and consistent question generation process.

How to run?

STEPS:

Clone the repository

Project repo: https://github.com/codeakki/McqGeneratorOpenAi.git

STEP 01- Create a conda environment after opening the repository

conda create -n venv python=3.9 -y
conda activate venv

STEP 02- install the requirements

pip install -r requirements.txt

Create a .env file in the root directory and add your Pinecone credentials as follows:

OPENAI_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Finally run the following command
python app.py

Now,

open up localhost:

Sample

OpenAI Logo

Exapmple2

Techstack Used:

  • Python
  • OpenApi
  • langchain
  • Streamlit
  • PyPDF2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published