{"id":21296076,"url":"https://github.com/dibahk/mcq-generator-with-langchain","last_synced_at":"2026-04-13T23:02:38.750Z","repository":{"id":263812097,"uuid":"885935391","full_name":"dibahk/MCQ-Generator-with-Langchain","owner":"dibahk","description":"The MCQ Generator is a web tool that uses LangChain, GPT-3.5 Turbo, and Streamlit to create customizable multiple-choice questions from PDF or .txt files. Users can adjust the difficulty, number of questions, and subject, automating the process of generating high-quality MCQs for educational purposes.","archived":false,"fork":false,"pushed_at":"2024-11-20T11:47:48.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T17:23:45.304Z","etag":null,"topics":["gpt35turbo","langchain","llm","rag","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dibahk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-09T19:26:30.000Z","updated_at":"2024-11-20T11:47:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"d885beb3-1596-4df0-86ea-f8eb52861d28","html_url":"https://github.com/dibahk/MCQ-Generator-with-Langchain","commit_stats":null,"previous_names":["dibahk/mcq-generator-with-langchain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dibahk/MCQ-Generator-with-Langchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibahk%2FMCQ-Generator-with-Langchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibahk%2FMCQ-Generator-with-Langchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibahk%2FMCQ-Generator-with-Langchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibahk%2FMCQ-Generator-with-Langchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dibahk","download_url":"https://codeload.github.com/dibahk/MCQ-Generator-with-Langchain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibahk%2FMCQ-Generator-with-Langchain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpt35turbo","langchain","llm","rag","streamlit"],"created_at":"2024-11-21T14:19:00.061Z","updated_at":"2026-04-13T23:02:38.731Z","avatar_url":"https://github.com/dibahk.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Multiple Choice Question Generator using LangChain, GPT-3.5 Turbo, and Streamlit**\r\n\r\nA tool for generating multiple-choice questions from uploaded PDF or .txt files. Users can customize the difficulty level, number of questions, and subject area.\r\n\r\n---\r\n\r\n## **Features**\r\n- **Upload File**: Accepts PDF or .txt files as input.\r\n- **Customizable Options**: \r\n  - Choose the difficulty level (Easy, Medium, Hard).\r\n  - Set the number of questions to generate.\r\n  - Specify the subject area for the questions.\r\n- **Interactive UI**: Built with Streamlit for a seamless user experience.\r\n- **Powered by AI**: Utilizes LangChain and GPT-3.5 Turbo for question generation.\r\n\r\n---\r\n\r\n## **Installation**\r\n\r\n1. **Clone the repository:**\r\n```bash\r\ngit clone \\https://github.com/dibahk/MCQ-Generator-with-Langchain.git\r\n```\r\n2. Set environment variables:\r\n  ```bash\r\nexport OPENAI_API_KEY='your_openAI_key'\r\n``` \r\n3. Navigate to the project directory:\r\n  ```bash\r\n  cd MCQ-Generator-with-Langchain\r\n```\r\n4. Install dependencies:\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n5. Run the Streamlit application:\r\n```bash\r\nstreamlit run app.py\r\n```\r\n## **Usage**\r\n\r\n1. Launch the app using the above command.\r\n2. Upload a `.pdf` or `.txt` file via the upload button.\r\n3. Select your preferences:\r\n   - **Difficulty level** (Easy, Medium, Hard)\r\n   - **Number of questions**\r\n   - **Subject of the questions**\r\n4. View and download the generated multiple-choice questions.\r\n\r\n---\r\n\r\n## **Tech Stack**\r\n\r\n- **LangChain**: For orchestrating prompts and managing the question-generation workflow.\r\n- **GPT-3.5 Turbo**: The AI model for generating high-quality multiple-choice questions.\r\n- **Streamlit**: Provides an interactive and user-friendly web application interface.\r\n\r\n---\r\n\r\n\r\n\r\n## **Acknowledgments**\r\n\r\n- [OpenAI GPT-3.5 Turbo](https://platform.openai.com/)\r\n- [LangChain](https://langchain.com/)\r\n- [Streamlit](https://streamlit.io/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdibahk%2Fmcq-generator-with-langchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdibahk%2Fmcq-generator-with-langchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdibahk%2Fmcq-generator-with-langchain/lists"}