Skip to content

nodeshift/parasol-insurance-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parasol Insurance - Node.js App

A Node.js + React AI app for managing fictitious insurance claims.

App

Pre-requisites

Configuration

You can change the coordinates (host/port and other stuff) for the LLM and backend by creating a .env in the root of this repo and adding the following:

OPEN_AI_AP_KEY = 'EMPTY'
AI_MODEL_TEMPERATURE = 0.9
AI_MODEL_NAME = 'mistral'
AI_BASE_URL = 'http://localhost:8000/v1'
PORT = 8005

Running

First, get your inference server up and running. For example, with InstructLab, the default after running ilab serve is that the server is listening on localhost:8000. This is the default for this app as well.

The frontend and backend are in separate repositories and should be structured as follows:

.
├── parasol-insurance
└── parasol-insurance-nodejs

Clone the WebUI

First clone the webui from here:

git clone https://github.com/rh-rad-ai-roadshow/parasol-insurance.git

Build the WebUI

In the Node.js Application Repo(this repo) run the buildui npm script

npm run buildui

Run the Node.js Application

Then run the node.js app:

npm install
node server.mjs

App will open on http://0.0.0.0:8005.

Open the app, click on a claim, click on the chat app, and start asking questions. The context of the claim is sent to the LLM along with your Query, and the response is shown in the chat (it may take time depending on your machine's performance).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published