Chat2Learn Proposed Architecture
Chat2Learn Proposed AI Layer - Mixture of Experts
API
Incoming Message
Retrieve chatlog
Router
Inappropriate response LLM
Image Generation Prompt LLM
Question LLM
General App Question LLM
Image Gen AI
Response
{Chatty}
LLM Expert Descriptions
Inappropriate Response LLM
LLM sends an appropriate reply to an inappropriate questions based on whether out of context, explicit or an attempt to prompt hack
Image Generation Prompt LLM
Takes user response and best translates it into a prompt optimized for a Chat2Learn specific image generation (i.e. images are child friendly and style is more consistent)
Questions LLM
LLM takes question and user response and creates an appropriate follow-up based on Chat2Learn response criteria
General App Question LLM
LLM which has an understanding of entire application and is able to respond to user questions
Inappropriate Response LLM
LLM sends an appropriate reply to an inappropriate questions based on whether out of context, explicit or an attempt to prompt hack
Training: Advanced Prompting
LLM’s can easily identify ‘explicit’ questions Prompting for ‘scope’ of responses
What can Chatty respond to as it relates to learning and creativity with children
What are return responses when asked something out of scope
Image Generation Prompt LLM
Takes user response and best translates it into a prompt optimized for a Chat2Learn specific image generation (i.e. images are child friendly and style is more consistent)
Training: Advanced Prompting
Prompting for Image Consistency Kid friendly
Type of image Size Backgrounds Colors
Questions LLM
LLM takes question and user response and creates an appropriate follow-up based on Chat2Learn response criteria
Training: Fine-tuning and Advanced Prompting
Fine-tuning: Provide the LLM with a dataset of examples that are tagged and provide more information
Makes sure questions follow specific formatting and apply Model usage depends on when we start development
Before May -- Gemini 1.5 because this allows fine-tuning After May -- (potentially) GPT-4
General App Question LLM
LLM which has an understanding of entire application and is able to respond to user questions
Training: Advanced Prompting + Knowledge uploads
Prompting on how to respond to questions Length, language to use, etc
Knowledge is uploading a series of background informations Chat2Learn Mission
How it works Q&A
Terms and Conditions Etc.
Users
c.scopes: array i.scope: str
Sessions
a.messages: object i.role: str
ii.message: str iii.type: str
iv.imageUrl: str v.audioFile: str
Children
a.sessionId: str
Analytics
ER Model
Chat2Learn Proposed API Layer
Flask
Firestore/Firebase
Cloud Run
Docker
Existing API Schema
Blueprint Module
BigQuery
PyTest
Public API
React/Native Next JS
Figma
Firestore and Firebase will be the main database of the application
Research Engineering that allows researchers to access preprocessed, anonymized data from Chat2Learn
Deployment as container for front end and backend. Add in Prometheus and Cloud monitoring for monitoring layer.
Front deployed as React Native server side rendered. Faster and simpler than client side React.
Staging. Prod, Test Branches, etc.
Chat2Learn Proposed Program Layer
Chat2Learn API
Mobile App
SMS
Chat2Learn Application Layer