An edtech platform using prompt engineering. ? What is this? Large language models (LLMs) are emerging as a transformative technology, enabling developers to build applications that they previously could not. However, using these LLMs in isolation is often insufficient for creating a truly powerful app - the real power comes when you can combine them with other sources of computation or knowledge.
This is a Flask-based web application that integrates with the Hugging Face API to generate multiple-choice questions based on user input and provide both correct and incorrect answers. The project uses Flask for the web framework and LangChain to handle the GPT-3 model from Hugging Face.
To run this project locally, follow these steps:
Clone the repository:
git clone https://github.com/yourusername/Flask-GPT-Application.git
Navigate to the project directory:
cd Flask-GPT-Application
Install the required dependencies:
pip install -r requirements.txt
Set up the .env
file with your Hugging Face API key:
HUGGINGFACE_API_KEY=your_api_key_here
Run the Flask app:
python app.py
Visit http://127.0.0.1:5000
in your web browser.
/
: Home page/login
: Login page/signup
: Signup page/youtube
: YouTube page/features
: Features page/resources
: Resources page/gpt
: Generates multiple-choice questions based on the user's search term./gpt3
: Another endpoint to generate unique multiple-choice questions based on a different prompt./gpt
:search: "Science"
{
"question": "Q: Generate random unique hard Multiple choice questions with answers on Science topic?",
"answers": [
{"text": "Answer A", "correct": true},
{"text": "Answer B", "correct": false},
{"text": "Answer C", "correct": false},
{"text": "Answer D", "correct": false}
]
}
flan-t5-xxl
).git checkout -b feature-name
).git commit -am 'Add new feature'
).git push origin feature-name
).This project is licensed under the MIT License - see the LICENSE file for details.