diff --git a/.python-version b/.python-version index ad14e4bc..9a941aca 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -claimaiphonebot312 +callcenterai312 diff --git a/Makefile b/Makefile index 9ec3b741..5484dd31 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ # Container configuration -container_name := ghcr.io/clemlesne/claim-ai-phone-bot +container_name := ghcr.io/clemlesne/call-center-ai docker := docker # Versioning version_full ?= $(shell $(MAKE) --silent version-full) version_small ?= $(shell $(MAKE) --silent version) # DevTunnel configuration -tunnel_name := claim-ai-$(shell hostname | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') +tunnel_name := call-center-ai-$(shell hostname | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') tunnel_url ?= $(shell res=$$(devtunnel show $(tunnel_name) | grep -o 'http[s]*://[^"]*' | xargs) && echo $${res%/}) # App location app_location := westeurope @@ -116,14 +116,14 @@ start: --env VERSION=$(version_full) \ --mount type=bind,source="$(CURDIR)/.env",target="/app/.env" \ --mount type=bind,source="$(CURDIR)/config.yaml",target="/app/config.yaml" \ - --name claim-ai \ + --name call-center-ai \ --publish 8080:8080 \ --rm \ $(container_name):$(version_small) stop: @echo "Stopping container..." - $(docker) stop claim-ai + $(docker) stop call-center-ai deploy: @echo "🛠️ Deploying to Azure..." diff --git a/README.md b/README.md index 7ed2e7e8..1a375ecf 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Call center claim AI phone bot +# Call Center AI AI-powered call center solution with Azure and OpenAI GPT. -[![Last release date](https://img.shields.io/github/release-date/clemlesne/claim-ai-phone-bot)](https://github.com/clemlesne/claim-ai-phone-bot/releases) -[![Project license](https://img.shields.io/github/license/clemlesne/claim-ai-phone-bot)](https://github.com/clemlesne/claim-ai-phone-bot/blob/main/LICENSE) +[![Last release date](https://img.shields.io/github/release-date/clemlesne/call-center-ai)](https://github.com/clemlesne/call-center-ai/releases) +[![Project license](https://img.shields.io/github/license/clemlesne/call-center-ai)](https://github.com/clemlesne/call-center-ai/blob/main/LICENSE) ## Overview @@ -207,8 +207,8 @@ sequenceDiagram Container is available on GitHub Actions, at: -- Latest version from a branch: `ghcr.io/clemlesne/claim-ai-phone-bot:main` -- Specific tag: `ghcr.io/clemlesne/claim-ai-phone-bot:0.1.0` (recommended) +- Latest version from a branch: `ghcr.io/clemlesne/call-center-ai:main` +- Specific tag: `ghcr.io/clemlesne/call-center-ai:0.1.0` (recommended) Create a local `config.yaml` file (most of the fields are filled automatically by the deployment script): diff --git a/bicep/app.bicep b/bicep/app.bicep index 03921d72..0f6c940c 100644 --- a/bicep/app.bicep +++ b/bicep/app.bicep @@ -17,7 +17,7 @@ param searchLocation string param tags object var prefix = deployment().name -var appUrl = 'https://claim-ai.${acaEnv.properties.defaultDomain}' +var appUrl = 'https://call-center-ai.${acaEnv.properties.defaultDomain}' var gptBackupModelFullName = toLower('${gptBackupModel}-${gptBackupVersion}') var gptModelFullName = toLower('${gptModel}-${gptVersion}') var adaModelFullName = toLower('${adaModel}-${adaVersion}') @@ -160,7 +160,7 @@ resource acaEnv 'Microsoft.App/managedEnvironments@2023-05-01' = { } resource containerApp 'Microsoft.App/containerApps@2023-05-01' = { - name: 'claim-ai' + name: 'call-center-ai' location: location tags: tags identity: { @@ -178,8 +178,8 @@ resource containerApp 'Microsoft.App/containerApps@2023-05-01' = { template: { containers: [ { - image: 'ghcr.io/clemlesne/claim-ai-phone-bot:${imageVersion}' - name: 'claim-ai' + image: 'ghcr.io/clemlesne/call-center-ai:${imageVersion}' + name: 'call-center-ai' env: [ { name: 'CONFIG_JSON' @@ -491,10 +491,10 @@ resource cosmos 'Microsoft.DocumentDB/databaseAccounts@2023-11-15' = { resource database 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases@2023-11-15' = { parent: cosmos - name: 'claim-ai' + name: 'call-center-ai' properties: { resource: { - id: 'claim-ai' + id: 'call-center-ai' } } } diff --git a/bicep/main.bicep b/bicep/main.bicep index 124f63e5..918163d8 100644 --- a/bicep/main.bicep +++ b/bicep/main.bicep @@ -23,10 +23,10 @@ output communicationId string = app.outputs.communicationId output logAnalyticsWorkspaceCustomerId string = app.outputs.logAnalyticsWorkspaceCustomerId var tags = { - application: 'claim-ai' + application: 'call-center-ai' instance: instance managed_by: 'Bicep' - sources: 'https://github.com/clemlesne/claim-ai-phone-bot' + sources: 'https://github.com/clemlesne/call-center-ai' version: imageVersion } diff --git a/examples/import-training.ipynb b/examples/import-training.ipynb index fd712735..6f04d0f1 100644 --- a/examples/import-training.ipynb +++ b/examples/import-training.ipynb @@ -61,14 +61,14 @@ "import os.path\n", "import re\n", "\n", - "doc_endpoint = \"https://claim-ai.cognitiveservices.azure.com\"\n", + "doc_endpoint = \"https://call-center-ai.cognitiveservices.azure.com\"\n", "doc_credential = AzureKeyCredential(\"xxx\")\n", "doc_client = DocumentIntelligenceClient(\n", " endpoint=doc_endpoint,\n", " credential=doc_credential,\n", ")\n", "\n", - "search_endpoint = \"https://claim-ai.search.windows.net\"\n", + "search_endpoint = \"https://call-center-ai.search.windows.net\"\n", "search_credential = AzureKeyCredential(\"xxx\")\n", "search_client = SearchClient(\n", " endpoint=search_endpoint,\n", diff --git a/helpers/logging.py b/helpers/logging.py index 872f4cc8..25044e43 100644 --- a/helpers/logging.py +++ b/helpers/logging.py @@ -21,7 +21,7 @@ HTTPXClientInstrumentor().instrument() # Instrument httpx TRACER = trace.get_tracer( instrumenting_library_version=CONFIG.version, - instrumenting_module_name="com.github.clemlesne.claim-ai", + instrumenting_module_name="com.github.clemlesne.call-center-ai", ) # Create a tracer that will be used in the app diff --git a/main.py b/main.py index 62b81e0a..caf233f2 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,7 @@ _logger = build_logger(__name__) -_logger.info(f"claim-ai v{CONFIG.version}") +_logger.info(f"call-center-ai v{CONFIG.version}") # General imports @@ -79,15 +79,15 @@ _logger.info(f'Using root path "{CONFIG.api.root_path}"') api = FastAPI( contact={ - "url": "https://github.com/clemlesne/claim-ai-phone-bot", + "url": "https://github.com/clemlesne/call-center-ai", }, description="AI-powered call center solution with Azure and OpenAI GPT.", license_info={ "name": "Apache-2.0", - "url": "https://github.com/clemlesne/claim-ai-phone-bot/blob/master/LICENCE", + "url": "https://github.com/clemlesne/call-center-ai/blob/master/LICENCE", }, root_path=CONFIG.api.root_path, - title="claim-ai-phone-bot", + title="call-center-ai", version=CONFIG.version, )