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.
6
+
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
7
6
8
???? add more to above about generating material, etc
7
9
@@ -11,59 +13,48 @@ The core feature and main value that ClassroomLM provides is the application's f
11
13
12
14
[video walktrhough of everything]
13
15
16
+
2038 x 3200 at 37%
17
+
14
18
## Features
15
19
16
20
### **Classroom-Style Structure**
17
21
18
22
Teachers can create classrooms, upload documents (PDFs, slides, handwritten notes), and invite students.
19
23
20
-
Diagram of docs to classes (maybe add it sidebyside to main classroom page screenshot?)
24
+

21
25
22
26
### **Classroom-Specific AI Assistants**
23
27
24
28
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.
#### **Advantages over current user-facing AI assistant systems with use case examples**
27
33
28
-
**More accurate, specific, and grounded**: The assistant can now operate in niche and specific or even specially created context just for classrooms.
34
+
????**More accurate, specific, and grounded**: The assistant can now operate in niche, specific, and even specially created context just for classrooms.
29
35
> **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. \
30
36
> Comparing it to existing systems, they gave vague, non-specific, and non-accurate answers relevant to other assembly variants.
31
37
32
38
**Logistical and practical benefits**: Created knowledge bases are shared across the entire classroom.
33
39
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.
40
+
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.
41
+
42
+
> Implementing this core mechanism now provides a foundation for all the features that could benefit from having shared knowledge bases for subgroups.
37
43
38
-
**Diverse abilities and potential contexts**: Your imagination is the only limit on what is possible with your RAG-enabled LLM assistant
44
+
**Diverse abilities and potential contexts**: Your imagination is the only limit on what is possible with your RAG-enabled LLM assistant ???
39
45
40
46
> We use the existing power of LLMs and bring out their full potential for educators and students.
41
47
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
48
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
49
44
-
45
-
46
-
<!-- Building conversation context | Continues and LLM triggered with /ask | LLM responds
Group chat support with other students the AI can participate with full chat context.
62
53
63
54
- Students can create multiple chatrooms per classroom and choose who to invite within each chatroom.
64
55
- Within the chatroom, students can pull the LLM into the conversation in the manner of a group chat with the **`/ask [message]`** command.
65
56
- The assistant in this case retains all the benefits described above for the personal chat, as it is also RAG enabled.
66
-
57
+
???? can we move this out of quote
67
58
> 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.
-**Styling**: Tailwind CSS with shadcn/ui components
91
-
-**Testing**: Vitest with React Testing Library
92
-
-**Database**: Supabase
93
-
-**Deployment**: Docker and Kubernetes support
70
+
**ClassroomLM builds on top of the [RAGFlow](https://github.com/infiniflow/ragflow) engine.** This is an open-source RAG (Retrieval-Augmented Generation) engine with the benefits of being polished, actively-maintained, and mature. \
71
+
This is especially true in terms of handling bugs and having a comprehensive and [well-documented HTTPS API](https://ragflow.io/docs/v0.19.0/http_api_reference) for the ClassroomLM application to utilize.
72
+
As seen above in the diagram, the RAGFlow instance (note that this is self-hosted) is responsible for storing the documents within the knowledge base and handling the RAG functionality with the LLMs. **The application links the corresponding siloed datasets within RAGFlow to the correct classroom during all assistant functionality.**
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.
@@ -139,6 +117,7 @@ Next, get the *`CONNECTION_STRING`*. You can either use the dashboard and press
139
117
140
118
If you don't already have it, [get the Postgres CLI.](https://www.postgresql.org/download/)
141
119
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.
@@ -150,15 +129,16 @@ Even if you self-hosted, you can access the Supabase dashboard (exposed at port
150
129
151
130
#### Add allowed domains to database
152
131
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:
132
+
Either by connecting to the database through the `psql` CLI or through the Supabase dashboard (recommended), add any allowable domains to the `Allowed_Domains` table.\
133
+
When a user signs in with Google, it will only work if their Google account's address is found in table. E.g. for `[email protected]`, `domain.com` must be an entry in `Allowed_Domains`.
134
+
135
+
Add a domain (or multiple) in the following manner to `Allowed_Domains`:
155
136
156
137
| id | domain |
157
138
| ----- | ------- |
158
139
| 1 | nyu.edu |
159
140
160
-
**Note**: in the section below, you'll see that you need to add the allowed domains to the `.env` file as well.
161
-
141
+
**Note**: In the section below, you'll see that you need to add the allowed domains to the `.env` file as well.
162
142
163
143
### 3. Add config info
164
144
@@ -171,7 +151,7 @@ Explanation of each variable:
171
151
| NEXT_PUBLIC_SUPABASE_URL | Use either the given URL from the hosted version or a custom URL from your self-hosted solution |
172
152
| NEXT_PUBLIC_SUPABASE_ANON_KEY | Should be available somewhere in Supabase's settings |
173
153
| NEXT_PUBLIC_SITE_URL | The root URL for the site, to be used for callbacks after authentication |
174
-
| NEXT_PUBLIC_ALLOWED_EMAIL_DOMAINS | When users login with Google, these are the only email domains allowed to sign up. **Note that this is also needs to be configured within Supabase**|
154
+
| NEXT_PUBLIC_ALLOWED_EMAIL_DOMAINS | When users login with Google, these are the only email domains allowed to sign up. **Note that this is also needs to be configured in a table within Supabase**|
175
155
| NEXT_PUBLIC_ORGANIZATION_NAME | The name of the organization |
176
156
| SUPABASE_SERVICE_ROLE_KEY | Should be available somewhere in Supabase's settings |
177
157
| RAGFLOW_API_KEY | Go back section 2 to make this key |
0 commit comments