{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning",
      "Microsoft.Extensions.Http": "Information"
    },
    "ApplicationInsights": {
      "LogLevel": {
        "Default": "Information",
        "Microsoft.AspNetCore": "Warning"
      }
    }
  },
  "AllowedHosts": "*",
  "ApplicationInsights": {
    "ConnectionString": "<APPINSIGHTS_CONNECTION_STRING>"
  },
  "AzureStorage": {
    "ConnectionString": "",
    "ContainerName": "akcloud",
    "ConnectionFileName": "connections.json",
    "CacheEnabled": true,
    "CacheTtl": "00:30:00",
    "CacheRefreshInterval": "00:15:00"
  },
  "AzureAISearch": {
    "Endpoint": "https://<your-search-name>.search.windows.net",
    "ApiKey": "<AZURE_AI_SEARCH_API_KEY>",
    "DocumentIndexName": "akadaiassets",
    "KnowledgeBucketIndexName": "akadaiknowledgebuckets",
    "PromptIndexName": "akadaiprompts",
    "PeopleIndexName": "akadusers",
    "ApiVersion": "2023-11-01",
    "DefaultTopResults": 10,
    "MaxTopResults": 50,
    "DocumentIndexSemanticConfigName": "aiassets-semantic-config-01",
    "PeopleIndexSemanticConfigName": "user-semantic-config-01"
  },
  "Cache": {
    "Enabled": true,
    "Provider": "Redis", // Options: "InMemory" or "Redis"
    "DefaultTtl": "00:15:00",
    "MaxCacheEntries": 1000,
    "CleanupInterval": "00:05:00",
    "Redis": {
      "ConnectionString": "<REDIS_CONNECTION_STRING>",
      "InstanceName": "AkuminaAI:",
      "ConnectTimeout": 15000,
      "SyncTimeout": 15000,
      "AbortOnConnectFail": false,
      "AllowAdmin": false,
      "UseSsl": true
    }
  },
  "TenantCache": {
    "Enabled": true,
    "CacheTtl": "01:00:00",
    "MaxCacheEntries": 1000,
    "CleanupInterval": "00:05:00",
    "CacheAllActiveTenantsResult": true
  },
  "CosmosDb": {
    "ConnectionString": "<COSMOS_CONNECTION_STRING>",
    "DatabaseName": "akcontainers",
    "SessionsContainerName": "chatsessions",
    "MessagesContainerName": "chatmessages",
    "ReportsContainerName": "chatusage",
    "TenantsContainerName": "settings",
    "SettingsEntityType": "AI-",
    "MaxThroughput": 1000,
    "DefaultMessageTtl": 31536000,
    "DefaultSessionTtl": 31536000,
    "DefaultReportTtl": 7776000,
    "CreateIfNotExists": true,
    "PreferredRegion": "Central US",
    "EnableDiagnostics": false,
    "QueryTimeoutSeconds": 60,
    "RequestTimeoutSeconds": 120
  },
  "HttpClient": {
    "DefaultTimeoutSeconds": 180,
    "LongRunningTimeoutSeconds": 300
  }
}
