Azure AI (One Click Deploy)

With integration to OpenAI on Azure, Tikit Virtual Agent can provide generative AI responses based on documentation you upload. Generative responses use your uploaded documentation as a means to “learn” how to best provide a response. With generative responses, answers are unique and vary based on slight differences in how you prompt Tikit Virtual Agent.

Generative responses will be used when no configured Knowledge is found in your Knowledge Base. This ensure responses you’ve configured (KB or Templates) are returned first before a generative response is attempted to be returned.

OpenAI on Azure is deployed in your tenant, so your data stays with you. This article will walk you through registration, deployment, and configuration. This integration makes use of three different Azure resources - OpenAI, Azure Search Service, and Azure Blob Storage.

This article has been updated to use Deploy to Azure functionality, the original step by step article can be found here.

One Click Deploy
Using the following button, you can deploy Tikit's OpenAI integration quickly. This deployment utilizes the lowest cost options for OpenAI, Search Service, and Storage.

  • These three resources total approximately $76 per month. OpenAI tokens are not included in this estimate, more on these estimates can be found at the bottom of this article.

  • Resources can always be scaled up later if necessary

Deploy to Azure

Choose your Subscription, and a Resource Group where these resources will be created. Your Resource Group will automatically determine the Region. Then choose the Resource Location, this is where OpenAI, Azure Search, and the Storage Account will be deployed to.

Once you've provided names for these resources, click on Review + Create and then finally Create. The deployment will begin and in couple of minutes it should be done.

Once it completes, head over to the Outputs tab.

Here you'll be able to copy and paste the majority of values required into Tikit's Azure AI Settings page. The only setting that cannot be copied is the Index Name.

Creating the Index and Uploading Documentation

Click on the Overview tab for your Deployment and click "Go to Resource Group"

NOTE: If you lose your place and want to see the Outputs tab, navigate into the Resource Group and click the link next to Deployments on the Overview tab.

Next, click into your Azure OpenAI resource by clicking its Name.

Then click on Explore Azure AI Foundry portal

Next, it’s time to upload documents you want to use to train Open AI. In Chat, select “Add your data.”

3. In the “Add data” menu:
Select data source: Upload files (preview)
Subscription: Choose your Azure subscription
Select Azure Blog storage resource: Select the Resource you created in the Deployment
- If you are prompted to enable CORS, click the button to enable it
Select Azure AI Search resource: Select the Resource you created in the Deployment
Index Name: tikitopenaisearch
    – If you choose to call this something else, take note of it as it is the last value to copy into the Tikit Azure AI Settings page.

4. Upload your documentation. This can be text, html, markdown, pdfs, Word documents, or PowerPoints. Each file can be no greater than 16mb.

5. Data Management
Search Type: Keyword
- While you can choose Semantic, please be aware there are additional Azure costs associated with this. Pricing details can be found here - https://azure.microsoft.com/en-us/pricing/details/search/
Chunk Size: 1024

6. Next, select “API Key” and click Next

7. Finally confirm your configuration and select “Save and close”.

Integrate OpenAI

To configure integration with OpenAI on Azure. You’ll need to copy one last peice of information from above into the Settings page and choose if you'd like File Citations to be included in results.

1. Copy the Index Name that you used above into the Tikit Azure AI page.

  1. Choose if you wish generative answers to provide downloadable links to articles the response was based off select “Allow citation file downloads”.

Open AI on Azure is now processing your data and preparing to respond with generative answers. You can test this out within Chat Playground. Ask a question about some of the documentation you uploaded. The following image is an example wherein documentation about Tikit’s Quick Start guide was uploaded.

We can also use this example to approximate the cost given the above configuration where 1 Token is approximately 4 characters. Please note that costs will vary and the following is only an approximation. The most up to date pricing information is available on Microsoft's pricing page as seen here.

– $0.0000004 per input token ($0.0000004 x 57 = $0.0000228)
– $0.0000016 per output token ($0.0000016 x 348 = $0.0005568)

Schedule re-occurring OpenAI Training for New Documentation

If you're looking to:

  • Upload more documentation

  • Remove documentation

  • Run training on a schedule

  • Retrain OpenAI on demand

  • Automate file uploads from OneDrive or Sharepoint

Check out this related KB Article!