Running LitenAI Locally

Introduction

Contact us to get the latest docker image.
All data is local and accessible only to the user. LitenAI does not collect any data from user.

Installation Steps

Prepare Your Environment

Load the Docker Image

  • Download the Docker image from the LitenAI Store.
  • Load the image using the following command. Version is the release version number like 0.0.89
  • Verify the image load with the below command. Note down the tag number, it will be needed to start the container.

Set Environment Variables

  • Set your API key to a valid Azure, OpenAI or local API key

Bring up the docker container

  • Replace <tag> with the number from ‘docker image ls’ command above

Access the Chat Interface in your local browser, by visiting the URL below

Stop the container


Sample Chat Sessions

Access the Chat Interface in your local browser, by visiting the URL below

Click on the Lake tab. The Docker environment comes pre-loaded with two lakes: logreason and techassist.

To explore the logreason lake, select it from the Lake tab. You can then follow the sample chat session described in the blog to understand how to analyze customer sessions and identify the root causes of performance issues.

To explore the techassist lake, select it from the Lake tab. After the lake loads, you can follow the sample chat session described in the blog to understand how technicians maintain and repair medical devices.

Configuration for Self-hosted LLM

LitenAI supports the use of locally hosted LLMs. To configure this, you need to provide the URL for the LLM call and specify the LLM model being used. An example configuration is shown below.

Set Environment Variables

Run the Docker command below

Access the Chat Interface in your local browser, by visiting the URL below

Configuration for OpenAI Service

LitenAI is configured to use the Azure OpenAI service by default. However, it can also integrate with the OpenAI service.

Set Environment Variables

You will need to obtain an OpenAI API key from your OpenAI account.

Run the Docker command below

Set the serve URL and Azure API versions to empty values.

Access the Chat Interface in your local browser, by visiting the URL below