1. Input: PDF of study material
⬇️ 2. Process documents
⬇️ 3. Generate questions based on study material and exam guidelines
⬇️ 4. Answer the questions based on the study material
You could combine step 3 & 4, but separating them = better results👇
2/9 Let's dive into the code:
First, load and process data for question generation.
I'm using the new gpt-3.5-turbo-16k model for a larger context window.
Result: Less calls to the model and higher context-awareness
3/9 Process the data for question answering.
We'll be storing the data in a vector database for easy retrieval and search possibilities later.
Standard gpt-3.5-turbo model for lower cost.
Lower chunk size = lower token usage when retrieving.
4/9 The part where you can get creative. Prompting.
Prompting is key to getting great results. Play around with this and get as creative as you want.
You could let it generate multiple-choice questions, in any language you'd like, include your exam criteria and much more.
5/9 Generating the actual questions.
Initialize the large language model. You can use the one you like most.
Use the refine summarization chain to move through all the documents and generate questions based on the content provided.
6/9 Create the vector database and initialize the retrieval Q&A chain.
Work with the embeddings of your choice. Set up your preferred vector database and initialize the Retrieval chain with the database as the retriever.
We're now all set for answering the questions.
7/9 Run the answering chain and print the results.
Tada... You've just created personalized practice questions for your exam!
As I said, prompting determines the quality of your results. Play around with this.
Learn what Artificial Intelligence (AI) is by understanding its applications and key concepts including machine learning, deep learning and neural networks.
Windows has just released Dev Home - a centralized control center for developers!👨💻👩💻
With Dev Home, you can monitor your projects, set up your dev environment, connect to your developer accounts and tools, and create a Dev Drive for storage all in one place!🤯
Use customizable widgets on the dashboard to monitor workflows, track your dev projects, coding tasks, GitHub issues, pull requests, available SSH connections, and system performance!📈📊
Connect your GitHub account to Dev Home and begin creating customized GitHub widgets for your dashboard! Learn more about the Dev Home GitHub extension and how to set up Windows notifications.👨💻👩💻
Dev Home extensions power the functionality of Dev Home's customizable widgets.