Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhv committed Dec 6, 2023
1 parent a722b6c commit 6e1b970
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

[![Azure Static Web Apps CI/CD](https://github.com/tkhv/gpt-lms/actions/workflows/azure-static-web-apps-icy-plant-0291c0a0f.yml/badge.svg?branch=prod)](https://github.com/tkhv/gpt-lms/actions/workflows/azure-static-web-apps-icy-plant-0291c0a0f.yml)

Microsoft AI Classroom Hackathon 2023 Submission
This is a Microsoft AI Classroom Hackathon 2023 Submission - See [Installation](##Installation).

GPT-LMS is a learning management system that leverages the Azure OpenAI Service for seamless LLM features. Every created course comes with it's own GPT Teaching Assistant, or a GPTa. Students can redirect questions to GPTa over a human TA, reducing reliance on human TAs for menial tasks. Human TAs can also rely on the GPTa to generate and publish quizzes from a source with simple prompts.

By generating and storing vector embeddings for all course content, we will be able to perform a similarity search with the user's query to provide our model with relevant documents from the course. This will result in context-aware answers as the model can source answers from material unique to the course as taught by the instructors. By engineering prompts using LangChain, we can also allow GPTa to output answers following a specific format, allowing GPTa to interact with the LMS' quiz creation endpoints.

This is a [Next.js](https://nextjs.org/) 14.0.3 project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). It uses the Pages router to maintain compatability with Azure Static Web Apps as of November 2023.

## Installation

#### Note that we require node v18.17.1 as a dependency, to maintain compatability with Azure Functions.

Add the following to your .env:

```
Expand All @@ -27,13 +33,18 @@ NEXTAUTH_SECRET="" # Randomly generated string with `openssl rand -base64 32`
NEXTAUTH_URL="http://localhost:3000"
GITHUB_ID=""
GITHUB_SECRET=""
OPENAI_API_KEY=""
PINECONE_API_KEY=""
PINECONE_ENVIRONMENT=""
PINECONE_INDEX=""
```

Then install and run the development server:
Install and run the development server:

```bash
npm install
npm run dev
```

The page opens on [http://localhost:3000](http://localhost:3000).
The webapp opens on [http://localhost:3000](http://localhost:3000).

0 comments on commit 6e1b970

Please sign in to comment.