GordonBeeming / SSW.Rules.GPT

SSW RulesGPT - a bot using Blazor WASM & an ASP.NET Core backend, powered by the amazing OpenAI API

Home Page:https://rulesgpt.ssw.com.au

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note
This readme was generated by SSW Rules GPT

SSW Rules GPT πŸ€–

πŸ“ Project Description

Our project is a GPT Bot that uses OpenAI embeddings to search for matching SSW Rules, and then feeding the top 10 results back into the ChatGPT API, written in C# and Blazor.

πŸ’» Installation

Follow these simple steps to install and set up our SSW Rules GPT project:

  1. Clone the repository
  2. Add the following to your secrets.json file in src/WebAPI:
{
  "OpenAiApiKey": "{{ OPENAI API KEY }}",
  "ConnectionStrings": {
    "DefaultConnection": "{{ DATABASE CONNECTION STRING }}"
  }
}

Note
You can find the key and connection string in Keeper

  1. Run the WebAPI (https) project
  2. Run the WebUI project, and a browser window will open to https://localhost:5002

Warning
The RulesGPT frontend has been changed from port 5001 to 5002, if you are running Identity Server locally you must be running RulesGPT on port 5002.
Double check WebUI/launchsettings.json before running the project.

  1. Ask SSW Rules GPT a question!

πŸ’» Installation - Set Multiple Startup Projects

Instead of manually launching the WebUI and WebAPI projects, you can set multiple startup projects in Visual Studio and Rider.
Read this rule to learn how.

πŸš€ Deployment

When code merged into main it will be automatically deployed to staging. You should test your changes in staging before manually running the production workflow.

Staging Frontend URL: https://ashy-meadow-0a2bad900.3.azurestaticapps.net
Staging API URL: https://ssw-rulesgpt-api-stage.azurewebsites.net

πŸ‘₯ Project Contributors

About

SSW RulesGPT - a bot using Blazor WASM & an ASP.NET Core backend, powered by the amazing OpenAI API

https://rulesgpt.ssw.com.au


Languages

Language:C# 73.3%Language:HTML 25.4%Language:CSS 1.3%