keefereuther commited on
Commit
04bc56b
·
1 Parent(s): dbc3249

Update README with user manual information and align structure

Browse files

- Add comprehensive setup instructions from user manual
- Include pricing information for all models
- Add Part 1-5 structure for better organization
- Include terms CSV creation guide
- Add customization section details
- Add best practices section
- Include full citation format
- Reference user manual PDF (stored separately due to Hugging Face binary file restrictions)

Files changed (1) hide show
  1. README.md +131 -28
README.md CHANGED
@@ -18,17 +18,27 @@ Schema Study is a free, no-code, open-source web application that turns a spread
18
  **Key Pedagogical Approach:** Schema Study uses a Socratic questioning method that (1) withholds direct solutions while providing brief, targeted feedback, (2) poses exactly one scenario-grounded follow-up question per turn, and (3) presses for mechanistic reasoning, justification, and connections between concepts. The tool provides formative practice through question-led dialogue; independent performance is evaluated in secure assessments outside the app.
19
 
20
  ## Features
 
21
  - **No-Code Setup:** Upload course terms via a single CSV spreadsheet - no programming required
22
  - **Password Protection:** Secure access for your class or group
23
  - **Customizable Terms:** Use your own CSV file of terms and definitions
24
  - **Evidence-Based Pedagogy:** Implements Socratic questioning and formative feedback strategies
25
- - **Prompt Templates:** Engage with the material using creative, research-based prompts including midterm review
26
  - **AI-Enhanced Feedback:** Get instant, formative feedback and guidance using GPT-5.2 (default), GPT-5.1, or GPT-4.1
27
  - **Web Search Support:** Optional web search functionality for current information and citations (configurable in `config.py`)
28
  - **Real-Time Streaming:** Live token-by-token response streaming with visual typing indicator
29
  - **Professional, Accessible UI:** Clean, modern design with a color palette for clarity and focus
30
  - **Open-Source & Free:** Fully open-source under GNU GPL-3 License, no paywalls or proprietary services required
31
 
 
 
 
 
 
 
 
 
 
32
  ## How to Use (Students)
33
  1. **Access the App:** Go to your Hugging Face Space URL. Enter the password provided by your instructor.
34
  2. **Select a Term:** Use the dropdown to pick a course term.
@@ -37,39 +47,80 @@ Schema Study is a free, no-code, open-source web application that turns a spread
37
 
38
  ## How to Use (Instructors)
39
 
40
- ### Best Practices for Integration
41
 
42
- Based on classroom testing and iterative refinement, here are recommended best practices for integrating Schema Study:
43
 
44
- - **Clear Structured Messaging:** Provide students with clear instructions on how to use Schema Study and its role in your course
45
- - **AI Literacy Training:** Include brief training on AI literacy and appropriate use of AI tools in educational settings
46
- - **Curricular Alignment:** Ensure your terms and context align with your learning objectives - update content regularly as you progress through the course
47
- - **Scaffolded Active Learning:** Embed Schema Study within structured assignments rather than as an optional tool
48
- - **Formative vs. Summative:** Use Schema Study for formative practice and feedback; evaluate independent performance in secure assessments outside the app
49
 
50
- ### Setup
51
- 1. **Clone or Fork the Space:**
52
- ```bash
53
- git clone https://huggingface.co/spaces/<your-username>/<your-space-name>
54
- cd <your-space-name>
55
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  2. **Edit Configuration:**
58
- - Update `config.py` for your course (title, instructions, prompt templates, etc).
59
  - Configure AI model settings:
60
  - `ai_model`: Choose "gpt-5.2" (default), "gpt-5.1", or "gpt-4.1"
61
  - `reasoning_effort`: For GPT-5.2 and GPT-5.1, set to "none" (fastest), "minimal", "low", or "medium"
62
  - `enable_web_search`: Set to `True` or `False` (default: True)
63
- - Place your terms CSV (e.g., `terms.csv`) in the root directory. Format: first column = term, second column = context/definition.
64
 
65
  3. **Set Secrets:**
66
- - Create `.streamlit/secrets.toml` file locally or use Hugging Face Space secrets:
67
- ```toml
68
- username = "your_username"
69
- password = "your_password"
70
- OPENAI_API_KEY = "your_openai_api_key"
71
- ```
72
- - For Hugging Face Spaces, go to **Settings > Repository secrets** and add the same keys.
73
 
74
  4. **Push Changes:**
75
  ```bash
@@ -78,7 +129,27 @@ Based on classroom testing and iterative refinement, here are recommended best p
78
  git push
79
  ```
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  ### Model Selection Guide
 
82
  - **GPT-5.2** (default): Latest reasoning model, fastest with reasoning="none", supports web search
83
  - **GPT-5.1**: Reasoning model with reasoning="none" default for faster responses, supports web search
84
  - **GPT-4.1**: Use if you need temperature control or prefer non-reasoning model, excellent web search support
@@ -86,16 +157,28 @@ Based on classroom testing and iterative refinement, here are recommended best p
86
  ## Configuration
87
 
88
  ### AI Model Settings (`config.py`)
 
89
  - **Default Model:** GPT-5.2 with reasoning="none" for faster responses
90
  - **Alternative Models:** GPT-5.1 (reasoning model) or GPT-4.1 (non-reasoning model with temperature control)
91
  - **Web Search:** Configurable via `enable_web_search` (default: True)
92
  - **Reasoning Effort:** Configurable for GPT-5.2 and GPT-5.1 (options: "none", "minimal", "low", "medium")
93
  - **Temperature:** Configurable for GPT-4.1 (0.0-2.0)
94
 
 
 
 
 
 
 
 
 
 
 
95
  ### Other Settings
96
- - All settings are in `config.py` (title, instructions, prompt templates, resources, AI model parameters, etc).
97
- - Theming is managed via `.streamlit/config.toml` and custom CSS in `app.py`.
98
- - Dependencies are listed in `requirements.txt`.
 
99
 
100
  ## Technical Details
101
 
@@ -106,6 +189,7 @@ Based on classroom testing and iterative refinement, here are recommended best p
106
  - **Inactivity Guard:** Streaming stops after 60s of no server deltas
107
 
108
  ### File Structure
 
109
  - `app.py` — Main Streamlit app with Responses API integration
110
  - `config.py` — All app settings and customization (model selection, web search, prompt templates, system prompt)
111
  - `.streamlit/secrets.toml` — Authentication credentials and API key (not tracked in git)
@@ -113,17 +197,34 @@ Based on classroom testing and iterative refinement, here are recommended best p
113
  - `terms.csv` — Your course terms and definitions (CSV format: term, context)
114
  - `example_syllabus.pdf` — Example resource file (replace with your own syllabus)
115
  - `LICENSE` — GNU GPL-3 License file
 
116
 
117
  ## License
118
  This project is licensed under the GNU GPL-3 License. See the [LICENSE](LICENSE) file for details.
119
 
 
 
 
 
 
 
 
 
 
 
120
  ## Research & Citation
121
 
122
- This app, its corresponding CourseSource manuscript, and all documentation was authored, edited, and tested by Keefe Reuther, Dr. Liam O Mueller, Grace Constantian, Albert Nguyen, and the members of the Reuther Lab.
 
 
123
 
124
  **Research Evidence:** During Winter 2025, Schema Study was integrated into an introductory biology course with 225 students. Pre- and post-surveys indicated strong student satisfaction, with 72% of students reporting they would reuse Schema Study in future biology courses. Each additional day per week students used Schema Study more than doubled the likelihood they would recommend it. Schema Study enhanced students' AI self-efficacy and their belief that AI is relevant to their education and careers.
125
 
126
- If you use this app in your research or teaching, please cite the associated CourseSource manuscript and acknowledge the developers.
 
 
 
 
127
 
128
  ## Acknowledgments
129
 
@@ -131,4 +232,6 @@ Developed by Keefe Reuther, Assistant Teaching Professor in the UC San Diego Sch
131
 
132
  This work was supported by University of California, San Diego intramural grants TG114333 and RG113974.
133
 
 
 
134
  For questions about creating your own version of this application for use in your classroom, please email kdreuther@ucsd.edu.
 
18
  **Key Pedagogical Approach:** Schema Study uses a Socratic questioning method that (1) withholds direct solutions while providing brief, targeted feedback, (2) poses exactly one scenario-grounded follow-up question per turn, and (3) presses for mechanistic reasoning, justification, and connections between concepts. The tool provides formative practice through question-led dialogue; independent performance is evaluated in secure assessments outside the app.
19
 
20
  ## Features
21
+
22
  - **No-Code Setup:** Upload course terms via a single CSV spreadsheet - no programming required
23
  - **Password Protection:** Secure access for your class or group
24
  - **Customizable Terms:** Use your own CSV file of terms and definitions
25
  - **Evidence-Based Pedagogy:** Implements Socratic questioning and formative feedback strategies
26
+ - **Prompt Templates:** Five customizable conversation starters (Misconception Check, Two Truths & a Lie, Connect Terms, Schema Map, Create Study Plan)
27
  - **AI-Enhanced Feedback:** Get instant, formative feedback and guidance using GPT-5.2 (default), GPT-5.1, or GPT-4.1
28
  - **Web Search Support:** Optional web search functionality for current information and citations (configurable in `config.py`)
29
  - **Real-Time Streaming:** Live token-by-token response streaming with visual typing indicator
30
  - **Professional, Accessible UI:** Clean, modern design with a color palette for clarity and focus
31
  - **Open-Source & Free:** Fully open-source under GNU GPL-3 License, no paywalls or proprietary services required
32
 
33
+ ## Evaluation Versions
34
+
35
+ Before creating your own copy, explore the evaluation versions:
36
+
37
+ - **Version 1** (Winter 2025): [https://huggingface.co/spaces/keefereuther/Schema_Study_v1](https://huggingface.co/spaces/keefereuther/Schema_Study_v1)
38
+ - **Version 2** (Current Preview): [https://huggingface.co/spaces/keefereuther/Schema_Study_Preview](https://huggingface.co/spaces/keefereuther/Schema_Study_Preview)
39
+
40
+ **Note:** These are evaluation versions for testing. You'll need your OpenAI API key to interact with the chatbot on these evaluation versions. The production version can be found at [https://huggingface.co/spaces/keefereuther/Schema_Study](https://huggingface.co/spaces/keefereuther/Schema_Study).
41
+
42
  ## How to Use (Students)
43
  1. **Access the App:** Go to your Hugging Face Space URL. Enter the password provided by your instructor.
44
  2. **Select a Term:** Use the dropdown to pick a course term.
 
47
 
48
  ## How to Use (Instructors)
49
 
50
+ ### Prerequisites
51
 
52
+ Before starting, you'll need:
53
 
54
+ - A web browser (Chrome, Firefox, or Safari)
55
+ - An email address
56
+ - A credit card to purchase $5-10 of credits for OpenAI API usage
57
+ - Your course syllabus or a list of course learning objectives
58
+ - About 1-2 hours to create your customized copy of Schema Study
59
 
60
+ ### Part 1: Setting Up Accounts
61
+
62
+ #### 1. Create a Hugging Face Account
63
+
64
+ Your chatbot will run inside a Hugging Face Space. Sign-up is browser-based and takes approximately 2 minutes.
65
+
66
+ 1. Go to [huggingface.co](https://huggingface.co) → Sign Up
67
+ 2. Verify your email before continuing
68
+
69
+ #### 2. Open an OpenAI Platform Account
70
+
71
+ **NOTE: This is different from a ChatGPT account.** An API (Application Programming Interface) is a way for your application to talk to OpenAI's systems. An API Key is like a special password that gives you permission to use OpenAI's services and keeps track of how much you're using.
72
+
73
+ **Pricing Information:**
74
+ - **GPT-4.1:** ~$2 per million input tokens, ~$8 per million output tokens
75
+ - **GPT-5.1:** ~$1.25 per million input tokens, ~$10 per million output tokens
76
+ - **GPT-5.2:** ~$1.75 per million input tokens, ~$14 per million output tokens
77
+
78
+ *Note: One million tokens ≈ 750,000 words. Prices may vary by deployment tier.*
79
+
80
+ 1. Visit [platform.openai.com](https://platform.openai.com)
81
+ 2. Follow the [walkthrough video](https://www.youtube.com/watch?v=QiJ6cWm9Dx4) to generate an API key
82
+ 3. Preload $5-10 in API credits
83
+ 4. **Important:** Copy and save your API key in a secure place. You will need it later.
84
+
85
+ ### Part 2: Creating Your Terms CSV File
86
+
87
+ 1. **Download the template:** Use the `terms.csv` file as a starting point
88
+ 2. **Refine your TERM entries:**
89
+ - Do not alter column headers (TERM and CONTEXT)
90
+ - Edit the TERM column to contain terms and phrases relevant to your course learning objectives
91
+ - Terms can include concepts, case studies, people, course policies, mathematical/computing functions, or anything else you want students to learn deeply
92
+ - Add as many rows as you like
93
+ 3. **Tip:** Feed your syllabus to a generative AI chatbot (ChatGPT, Gemini, Claude) to generate a first draft of terms, then curate manually
94
+
95
+ **CSV Format:**
96
+ - First column: TERM (the term or concept name)
97
+ - Second column: CONTEXT (definition, explanation, or course-specific context)
98
+
99
+ ### Part 3: Setting Up Your Hugging Face Space
100
+
101
+ 1. **Fork or Duplicate the Space:**
102
+ - Go to [https://huggingface.co/spaces/keefereuther/Schema_Study](https://huggingface.co/spaces/keefereuther/Schema_Study)
103
+ - Click "Duplicate this Space" to create your own copy
104
+ - Or clone via git:
105
+ ```bash
106
+ git clone https://huggingface.co/spaces/<your-username>/<your-space-name>
107
+ cd <your-space-name>
108
+ ```
109
 
110
  2. **Edit Configuration:**
111
+ - Update `config.py` for your course (title, instructions, prompt templates, etc.)
112
  - Configure AI model settings:
113
  - `ai_model`: Choose "gpt-5.2" (default), "gpt-5.1", or "gpt-4.1"
114
  - `reasoning_effort`: For GPT-5.2 and GPT-5.1, set to "none" (fastest), "minimal", "low", or "medium"
115
  - `enable_web_search`: Set to `True` or `False` (default: True)
116
+ - Place your terms CSV (e.g., `terms.csv`) in the root directory
117
 
118
  3. **Set Secrets:**
119
+ - In your Hugging Face Space, go to **Settings > Repository secrets**
120
+ - Add the following secrets:
121
+ - `username`: Your desired username for app access
122
+ - `password`: Your desired password for app access
123
+ - `OPENAI_API_KEY`: Your OpenAI API key
 
 
124
 
125
  4. **Push Changes:**
126
  ```bash
 
129
  git push
130
  ```
131
 
132
+ ### Part 4: Customizing Schema Study
133
+
134
+ All customization is done through `config.py`. Key sections include:
135
+
136
+ - **A. Basic App Settings:** App title, terms CSV file, warning messages
137
+ - **B. AI Model Settings:** Model selection, reasoning effort, temperature, web search
138
+ - **C. Student Instructions:** Instructions displayed in the expander
139
+ - **D. Prompt Template Buttons:** Five customizable conversation starters
140
+ - **E. Attribution & License:** Sidebar footer information
141
+ - **F. Resources List:** Sidebar links and downloadable files
142
+ - **G. AI System Prompt:** Advanced customization of the tutor's behavior
143
+
144
+ See the user manual (S2_user_manual_v3.pdf) for detailed configuration instructions.
145
+
146
+ ### Part 5: Sharing and Embedding
147
+
148
+ 1. **Share via Direct Link:** Copy your Space URL and share with students along with the username & password
149
+ 2. **Embed in LMS:** In the Space header, select "Embed this Space" and copy the `<iframe>` snippet. Post or embed inside your LMS (e.g., Canvas) along with the username & password. Students can authenticate seamlessly within your course platform.
150
+
151
  ### Model Selection Guide
152
+
153
  - **GPT-5.2** (default): Latest reasoning model, fastest with reasoning="none", supports web search
154
  - **GPT-5.1**: Reasoning model with reasoning="none" default for faster responses, supports web search
155
  - **GPT-4.1**: Use if you need temperature control or prefer non-reasoning model, excellent web search support
 
157
  ## Configuration
158
 
159
  ### AI Model Settings (`config.py`)
160
+
161
  - **Default Model:** GPT-5.2 with reasoning="none" for faster responses
162
  - **Alternative Models:** GPT-5.1 (reasoning model) or GPT-4.1 (non-reasoning model with temperature control)
163
  - **Web Search:** Configurable via `enable_web_search` (default: True)
164
  - **Reasoning Effort:** Configurable for GPT-5.2 and GPT-5.1 (options: "none", "minimal", "low", "medium")
165
  - **Temperature:** Configurable for GPT-4.1 (0.0-2.0)
166
 
167
+ ### Pacing and Question Control
168
+
169
+ Schema Study enforces structured pacing to prevent cognitive overload. The system prompt enforces **one focused question plus one short, realistic application example per turn** to reduce confusion from multiple simultaneous follow-ups.
170
+
171
+ **Universal Design for Learning (UDL) Adjustments:**
172
+ - **For additional scaffolding:** Modify `term_prompt` to allow brief clarifying questions
173
+ - **For advanced students:** Add instructions to keep responses focused and move efficiently toward connections
174
+
175
+ The five prompt templates provide structured entry points for students who need additional support initiating conversations.
176
+
177
  ### Other Settings
178
+
179
+ - All settings are in `config.py` (title, instructions, prompt templates, resources, AI model parameters, etc.)
180
+ - Theming is managed via `.streamlit/config.toml` and custom CSS in `app.py`
181
+ - Dependencies are listed in `requirements.txt`
182
 
183
  ## Technical Details
184
 
 
189
  - **Inactivity Guard:** Streaming stops after 60s of no server deltas
190
 
191
  ### File Structure
192
+
193
  - `app.py` — Main Streamlit app with Responses API integration
194
  - `config.py` — All app settings and customization (model selection, web search, prompt templates, system prompt)
195
  - `.streamlit/secrets.toml` — Authentication credentials and API key (not tracked in git)
 
197
  - `terms.csv` — Your course terms and definitions (CSV format: term, context)
198
  - `example_syllabus.pdf` — Example resource file (replace with your own syllabus)
199
  - `LICENSE` — GNU GPL-3 License file
200
+ - `S2_user_manual_v3.pdf` — Comprehensive user manual with detailed setup and configuration instructions
201
 
202
  ## License
203
  This project is licensed under the GNU GPL-3 License. See the [LICENSE](LICENSE) file for details.
204
 
205
+ ## Best Practices for Integration
206
+
207
+ Based on classroom testing and iterative refinement, here are recommended best practices:
208
+
209
+ - **Clear Structured Messaging:** Provide students with clear instructions on how to use Schema Study and its role in your course
210
+ - **AI Literacy Training:** Include brief training on AI literacy and appropriate use of AI tools in educational settings
211
+ - **Curricular Alignment:** Ensure your terms and context align with your learning objectives - update content regularly as you progress through the course
212
+ - **Scaffolded Active Learning:** Embed Schema Study within structured assignments rather than as an optional tool
213
+ - **Formative vs. Summative:** Use Schema Study for formative practice and feedback; evaluate independent performance in secure assessments outside the app
214
+
215
  ## Research & Citation
216
 
217
+ This app, its corresponding manuscript, and all documentation was authored, edited, and tested by Keefe Reuther, [Liam O Mueller](https://biology.ucsd.edu/research/faculty/lomueller), Grace Constantian, Albert Nguyen, and the members of the Reuther Lab.
218
+
219
+ Schema Study was developed to address critical challenges in undergraduate biology education: providing immediate, personalized formative feedback to increasingly large, diverse classes. The app uses evidence-based teaching practices and Socratic questioning to deepen understanding, correct misconceptions, and encourage students to find connections among course concepts.
220
 
221
  **Research Evidence:** During Winter 2025, Schema Study was integrated into an introductory biology course with 225 students. Pre- and post-surveys indicated strong student satisfaction, with 72% of students reporting they would reuse Schema Study in future biology courses. Each additional day per week students used Schema Study more than doubled the likelihood they would recommend it. Schema Study enhanced students' AI self-efficacy and their belief that AI is relevant to their education and careers.
222
 
223
+ If you use this app in your research or teaching, please cite the associated manuscript:
224
+
225
+ **Reuther, K., Mueller, L. O., Constantian, G., & Nguyen, A. (2025). Schema Study: A Large Language Model (LLM) Application for Asynchronous Student Learning and Inquiry. *CourseSource Teaching Tools and Strategies*.**
226
+
227
+ The production version of this app can be found at [https://huggingface.co/spaces/keefereuther/Schema_Study](https://huggingface.co/spaces/keefereuther/Schema_Study).
228
 
229
  ## Acknowledgments
230
 
 
232
 
233
  This work was supported by University of California, San Diego intramural grants TG114333 and RG113974.
234
 
235
+ ## Support
236
+
237
  For questions about creating your own version of this application for use in your classroom, please email kdreuther@ucsd.edu.