dodeeric / langchain-ai-assistant-with-hybrid-rag

This is a LLM chatbot coded with LangChain. The web interface is coded with Streamlit. It implements a hybrid RAG (keyword and semantic search) and chat memory.
https://bmae-ragai-webapp.azurewebsites.net
GNU General Public License v3.0
8 stars 1 forks source link

install in an azure web app #61

Closed dodeeric closed 2 weeks ago

dodeeric commented 2 weeks ago

Deploy to App Service

Every development team has unique requirements that can make implementing an efficient deployment pipeline difficult on any cloud service. App Service supports both automated and manual deployment.

Automated deployment:

Automated deployment, or continuous deployment, is a process used to push out new features and bug fixes in a fast and repetitive pattern with minimal effect on end users.

Azure supports automated deployment directly from several sources. The following options are available:

Azure DevOps Services: You can push your code to Azure DevOps Services, build your code in the cloud, run the tests, generate a release from the code, and finally, push your code to an Azure Web App. GitHub: Azure supports automated deployment directly from GitHub. When you connect your GitHub repository to Azure for automated deployment, any changes you push to your production branch on GitHub are automatically deployed for you. Bitbucket: With its similarities to GitHub, you can configure an automated deployment with Bitbucket.

dodeeric commented 2 weeks ago

eric [ ~/htmlapp/html-docs-hello-world ]$ az webapp up -g "ai-assistant-rg" -n "hello-world-html" --html Webapp 'hello-world-html' already exists. The command will deploy contents to the existing app. Unable to retrieve details of the existing app 'hello-world-html'. Please check that the app is a part of the current subscription if updating an existing app. If creating a new app, app names must be globally unique. Please try a more unique name or leave unspecified to receive a randomly generated name. eric [ ~/htmlapp/html-docs-hello-world ]$ az webapp up -g "ai-assistant-rg" -n "hello-world-html-edo" --html The webapp 'hello-world-html-edo' doesn't exist Creating AppServicePlan 'eric.dodemont_asp_6634' or Updating if already exists Readonly attribute name will be ignored in class <class 'azure.mgmt.web.v2023_01_01.models._models_py3.AppServicePlan'> Resource provider 'Microsoft.Web' used by this operation is not registered. We are registering for you. Registration succeeded. Creating webapp 'hello-world-html-edo' ... Configuring default logging for the app, if not already enabled Creating zip with contents of dir /home/eric/htmlapp/html-docs-hello-world ... Getting scm site credentials for zip deployment Starting zip deployment. This operation can take a while to complete ... Deployment endpoint responded with status code 202 Polling the status of async deployment. Start Time: 2024-06-10 13:57:52.859533+00:00 UTC You can launch the app at http://hello-world-html-edo.azurewebsites.net Setting 'az webapp up' default arguments for current directory. Manage defaults with 'az configure --scope local' --resource-group/-g default: ai-assistant-rg --sku default: F1 --plan/-p default: eric.dodemont_asp_6634 --location/-l default: eastus --name/-n default: hello-world-html-edo { "URL": "http://hello-world-html-edo.azurewebsites.net", "appserviceplan": "eric.dodemont_asp_6634", "location": "eastus", "name": "hello-world-html-edo", "os": "Windows", "resourcegroup": "ai-assistant-rg", "runtime_version": "-", "runtime_version_detected": "-", "sku": "FREE", "src_path": "//home//eric//htmlapp//html-docs-hello-world" } eric [ ~/htmlapp/html-docs-hello-world ]$

dodeeric commented 2 weeks ago

Demo: https://bmae-ragai.azurewebsites.net/

Github repo: https://github.com/dodeeric/ragai

https://learn.microsoft.com/en-us/answers/questions/1470782/how-to-deploy-a-streamlit-application-on-azure-app