Coder Social home page Coder Social logo

build5nines / aichatui Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 3.0 729 KB

AIChatUI - Azure OpenAI Chat UI Sample

License: MIT License

JavaScript 38.92% HTML 34.59% Bicep 12.11% HCL 14.39%
azure-openai azure-search openai azure-arm azure-bicep github-actions microsoft-azure nodejs terraform

aichatui's Introduction

AIChatUI - Azure OpenAI Chat UI Sample

AIChatUI is a simple chat UI with backend API for making chat completion called against Azure OpenAI Service. The API is written in Javascript using Node.js with Swagger UI support, and a static Index.html client for the front-end Chat UI.

User Interface

The frontend application is written as a static HTML page (/static/index.html) using Bootstrap and jQuery. Just a simple UI for now.

AIChatUI user interface

API Functionality

The API versions are as follows:

  • v1 - Makes chat completions against Azure OpenAI Service.
  • v2 - Makes chat completions against Azure OpenAI Service with the integration of Azure Search Service too.

The app integrates Swagger to provide a documentation UI that can be used to see the API endpoints supported, as well as the ability to test them. The Swagger UI is located at http://localhost:8080/docs when running the application.

AIChatUI Swagger UI

App Configuration

This application uses the .env file to configure the necessary environment variables. A list of what environment variables are necessary is included within the .env.EXAMPLE file.

Required Azure Infrastructure

This application assumes you have an instance of Azure OpenAI Service and Azure Search Service deployed to Microsoft Azure already.

The project includes the following Infrastructure as Code (IaC) templates that can be used to deploy the Azure resources necessary depending on which API version of this app you want to use:

  • HashiCorp Terraform
  • Azure Bicep
    • /IaC/Bicep/v1 - Deploys Azure OpenAI Service
    • /IaC/Bicep/v2 - Deploys Azure OpenAI Service, Azure Search Service, and Azure Storage Account
  • Azure ARM Template
    • /IaC/ARM/v1 - Deploys Azure OpenAI Service
    • /IaC/ARM/v2 - Deploys Azure OpenAI Service, Azure Search Service, and Azure Storage Account

This project is written by Chris Pietschmann (Microsoft MVP).

aichatui's People

Contributors

crpietschmann avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

blueoceandevops

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.