You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ClassroomLM provides each of the many classrooms within an organization a specialized LLM assistant that is specific and accurate to the subject matter and resources of that particular classroom.
4
+
ClassroomLM provides each of the many classrooms within an organization a specialized LLM assistant that is specific and accurate to the subject matter and resources of that particular classroom.
5
5
6
-
> ???? Makes sense for classrooms in primary education or universities, and even for other adjacent organizations like clubs and student associations that want easy access to giving an AI assistant to their members specific to their documents.
6
+
???? add more to above about generating material, etc
7
7
8
8
The core feature and main value that ClassroomLM provides is the application's framework of having siloed knowledge bases per classroom to conduct Retrieval Augmented Generation (RAG) on, with the additional features like collaborative chat layered on top of this.
9
9
10
+
> ???? Makes sense for classrooms in primary education or universities, and even for other adjacent organizations like clubs and student associations that want easy access to giving an AI assistant to their members specific to their documents.
11
+
10
12
[video walktrhough of everything]
11
13
12
14
## Features
@@ -19,31 +21,40 @@ Diagram of docs to classes (maybe add it sidebyside to main classroom page scree
19
21
20
22
### **Classroom-Specific AI Assistants**
21
23
22
-
Each classroom has access to an LLM assistant that is enabled by RAG, allowing it to be more specific and accurate, while also being better and smarter at retrieving information from the class' resources.
24
+
Each classroom has access to an LLM assistant that is RAG-enabled, allowing it to be more specific and accurate, while also being more grounded and smarter at retrieving information from the class' resources unlocking greater potential for engaging learning, peer interaction, and more.
23
25
24
26
#### **Advantages over current user-facing AI assistant systems with use case examples**
25
27
26
-
-**More accurateand specific**: can operate in specific or even specially created context just for classrooms.
27
-
> **Use case example**: An NYU Professor has a variation of assembly created specifically for the classroom, called e20. Putting the e20 manual into the shared classroom dataset gave all students within this classroom access to an assistant that is now specialized, knowledgeable, and with full context of this niche, not-seen-before language personally created by a professor. \
28
+
**More accurate, specific, and grounded**: The assistant can now operate in niche and specific or even specially created context just for classrooms.
29
+
> **Use case example**: An NYU Professor has a variation of assembly created specifically for the classroom, called E20. Putting the E20 manual into the shared classroom dataset gave all students within this classroom access to an assistant that is now specialized, knowledgeable, and with full context of this niche, not-seen-before language personally created by a professor. \
28
30
> Comparing it to existing systems, they gave vague, non-specific, and non-accurate answers relevant to other assembly variants.
29
-
-**Logistical and practical benefits**: knowledge bases shared across entire classroom
30
-
- Rather than an entire classroom's worth of students across all of their individual classes having to upload their documents individually, keep it up to date with new resources, and separate it from other classes, having a shared (but siloed) knowledge base for an entire classroom reduces the overhead, friction, and allows for superior use of resources.
31
-
-\*\*Diverse ability and
32
31
33
-
- Humanities, etc.
32
+
**Logistical and practical benefits**: Created knowledge bases are shared across the entire classroom.
33
+
34
+
> Rather than an entire classroom's worth of students across all of their individual classes having to upload their documents individually, keep it up to date with new resources, and separate it from other classes, having a shared (but siloed) knowledge base for an entire classroom reduces the overhead, friction, and allows for superior use of resources.\
35
+
\
36
+
Implementing this core mechanism now provides a foundation for all the features that could benefit from having shared knowledge bases for subgroups.
37
+
38
+
**Diverse abilities and potential contexts**: Your imagination is the only limit on what is possible with your RAG-enabled LLM assistant
39
+
40
+
> We use the existing power of LLMs and bring out their full potential for educators and students.
41
+
The assistant can be used to generate exam questions, review material, interrogate the classroom documents, have a discussion about the content, judge and correct your understanding, etc. with many other abilities tested, and many more possible. And again, all of these will be more accurate and specific because of the grounding that comes from the classroom's resource dataset.\
42
+
In terms of contexts, ClassroomLM was tested to be useful for subjects ranging from physics, different math topics, computer science, and also the humanities. For something like philosophy or other classes with many readings, ClassroomLM can shine because it's able to synthesize across the many readings, and without each student having to reupload all documents.
43
+
44
+
34
45
35
46
<!-- Building conversation context | Continues and LLM triggered with /ask | LLM responds
@@ -55,7 +66,12 @@ Group chat support with other students the AI can participate with full chat con
55
66
56
67
> To be clear, this isn’t the common implementation of a "group chat with an assistant" very often found in company Slacks, etc. where the LLM is just responding to the message that triggered it. In that case, it's only more useful than just doing asking the LLM personally since the answer is visible to everyone. Instead here, when triggered with the `/ask` command the LLM will have knowledge of all the previous conversation and respond accordingly, as if it’s just part of the conversation.

73
+
??? add commentts to this
74
+
59
75
60
76
## Technical Overview
61
77
@@ -76,6 +92,13 @@ Then on the side we have dev stack
76
92
-**Database**: Supabase
77
93
-**Deployment**: Docker and Kubernetes support
78
94
95
+
### Repository contents
96
+
97
+
-`app`: Under the NextJS app router paradigm, everything within this directory matches the structure of the actual routes for the application.
98
+
-`shared/components`: Components used multiple times within the app directory, including those from [ShadCN](https://ui.shadcn.com/)
99
+
-`shared/lib`: Shared code for Supabase, an abstraction layer for RagFlow, and a React ContextProvider to give user and classroom information to pages
100
+
-`shared/utils/supabase`: Used for the creation of different types of clients, typing Supabase calls, and handling middleware. Most code here is sourced from [Supabase's Server-Side Auth for NextJS reference](https://supabase.com/docs/guides/auth/server-side/nextjs?queryGroups=router&router=app).
101
+
79
102
## Usage
80
103
81
104
For both development and deployment, the **instructions below need to be followed** to ensure you have a RagFlow and Supabase instance running. The only difference is that development could mean you can just have local versions of those two things.
@@ -100,19 +123,45 @@ Otherwise, you can choose to use Supabase's hosted service, which also [has a fr
100
123
101
124
If you're only developing locally, you can take a look at [this section on the Supabase docs.](https://supabase.com/docs/guides/local-development/cli/getting-started?queryGroups=platform&platform=npm#running-supabase-locally)
First, [install the Supabase CLI](https://supabase.com/docs/guides/local-development/cli/getting-started). If you already have the `npm` dependencies installed from the development setup, then you should already have it.
106
137
107
-
Run the commanmd !!!!! to provision it
108
-
109
-
### 3. Clone repository and config info
138
+
Next, get the *`CONNECTION_STRING`*. You can either use the dashboard and press **Connect** on the top left. Or see the `Accessing Postgres`[section of the self-hosted Supabase docs.](https://supabase.com/docs/guides/self-hosting/docker#accessing-postgres)
110
139
140
+
If you don't already have it, [get the Postgres CLI.](https://www.postgresql.org/download/)
141
+
And finally, run the following command to automatically set up the tables, functions, trigger, realtime functionality, etc. Replace `[CONNECTION_STRING]` with what you determined above.
Follow the [instructions on the Supabase docs to set up Google OAuth](https://supabase.com/docs/guides/auth/social-login/auth-google?queryGroups=platform&platform=web#configuration) since it's required to add users.\
149
+
Even if you self-hosted, you can access the Supabase dashboard (exposed at port 8000 by default).
150
+
151
+
#### Add allowed domains to database
152
+
153
+
Either by connecting to the database through the `psql` CLI or through the Supabase dashboard (recommended), add.\
154
+
Add a domain (or multiple) in the following manner:
155
+
156
+
| id | domain |
157
+
| ----- | ------- |
158
+
| 1 | nyu.edu |
159
+
160
+
**Note**: in the section below, you'll see that you need to add the allowed domains to the `.env` file as well.
161
+
162
+
163
+
### 3. Add config info
164
+
116
165
Create a `.env` file in the root of the repository based on [`.env.example`](https://github.com/TechAtNYU/dev-team-spring-25/blob/main/.env.example).
117
166
118
167
Explanation of each variable:
@@ -130,6 +179,8 @@ Explanation of each variable:
130
179
131
180
### Deployment
132
181
182
+
This section is for deploying ClassroomLM, scroll down below to see the setup for [Development](#development). Currently, only Kubernetes is supported as a deployment option.
183
+
133
184
#### Add configuration info to kubernetes files
134
185
135
186
Put that same information from `.env` into the `k8s/config.yaml` and `k8s/secret.yaml` (the info is split among those two files.)\
@@ -140,7 +191,7 @@ Note: the same info is duplicated because NextJS requires the environment variab
140
191
Next, we build the image with the following command, with your registry information filled in (or omitted). What's important is that it matches the deployment file later.
0 commit comments