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.
- 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.
Before running the application, ensure you have Python installed on your system. If not, download and install it from Python's official website.
- Clone the repository to your local machine:
git clone https://github.com/yourusername/DS-Problem-Generator-Langchain.git
- Navigate to the cloned directory:
cd DS-Problem-Generator-Langchain
- Install the required libraries:
pip install langchain openai streamlit python-dotenv
- Before running the application, you need to set up an OpenAI API key. Follow the instructions here to obtain your key.
- Store your API key in a
.env
file within the application directory:OPENAI_API_KEY="your-api-key"
- Launch the application:
streamlit run main.py
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.
Contributions to this Data Structures problems generator are welcome!