sxflynn / TeacherGPT

A proposed GPT chatbot for teachers that uses retrieval-augmentation to answer questions about their students.
MIT License
8 stars 1 forks source link

Build/family members -- added family domain end to end #7

Closed sxflynn closed 5 months ago

sxflynn commented 5 months ago

This PR demonstrates building an entire table feature into the application. In this case, the entire concept of family is now built from end to end in the application (with the exception of the web-based school information system, titanweb).

This is the entire cycle of creating a new domain area:

Python/SQL

  1. Create a data generator python script
  2. Generate a sql file with all the INSERT statements using the script

Java

  1. Create a JPA entity class for the table objects
  2. Modify other entities that have foreign key relationships, in this case I modified Student to enable it to link to FamilyGroup
  3. Create a JPA repository class
  4. Create a JPA service layer
  5. Create a JPA GraphQL QueryMapping controller layer
  6. Create GraphQL types and queries to match the controller layer

Python

  1. Create new prompt templates.
  2. Modify the Orchestrator template with the new domain API
  3. Add the prompt templates to the prompt_mapping in the orchestrator

Then finally, test the new questions you should be able to ask in the TitanWeb interface.