Skip to content

A tool for generating coding problems based on user preferences.

Notifications You must be signed in to change notification settings

wissamfawaz/DS-Problem-Generator-Langchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DS-Problem-Generator-Langchain

Overview

The DS-Problem-Generator-Langchain is an application designed to support students in their data structures studies, particularly in preparation for exams. By allowing users to select a topic within data structures and specify a difficulty level, the application dynamically generates a coding problem tailored to these preferences. This is made possible through the integration with Large Language Models (LLMs), which power the application's ability to present relevant and challenging questions.

Key Features

  • Customization: Users can choose from a variety of data structures topics and set the difficulty level (Easy, Medium, Hard) for the coding problem.
  • Powered by LLMs: Utilizes advanced language models to generate unique and pertinent coding problems.
  • User-Friendly Interface: Simple and intuitive interface for seamless user experience.

Getting Started

Prerequisites

Before running the application, ensure you have Python installed on your system. If not, download and install it from Python's official website.

Installation

  1. Clone the repository to your local machine:
    git clone https:/yourusername/DS-Problem-Generator-Langchain.git
    
  2. Navigate to the cloned directory:
    cd DS-Problem-Generator-Langchain
    
  3. Install the required libraries:
    pip install langchain openai streamlit python-dotenv
    

Running the Application

  1. Before running the application, you need to set up an OpenAI API key. Follow the instructions here to obtain your key.
  2. Store your API key in a .env file within the application directory:
    OPENAI_API_KEY="your-api-key"
    
  3. Launch the application:
    streamlit run main.py
    

Usage

Once the application is running:

  • Use the sidebar to select a data structures topic and a difficulty level.
  • The application will generate and display a coding problem based on your selections.

Contributing

Contributions to this Data Structures problems generator are welcome!

About

A tool for generating coding problems based on user preferences.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages