# Installation of InoWiz Prediction Builder

To install InoWiz Prediction Builder follow the below steps:

### **Download the InoWiz Prediction Builder (Azure Managed Application)**

* Once you click on Install it will navigate you to the InoWiz Prediction Builder page, click Get it now to begin the deployment process.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FOj2WOFd01797h2qhRsfj%2Fimg1.png?alt=media&#x26;token=45cc2051-ad7f-4770-ab18-e1f94747358c" alt=""><figcaption></figcaption></figure></div>

* A confirmation prompt appears — click Get it now again to confirm.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FgeTx2nZVSeeZy3HnUq8I%2Fimg2.png?alt=media&#x26;token=44135bd3-73c0-4ade-998e-4aa931bdfb31" alt=""><figcaption></figcaption></figure></div>

### **Select Subscription and Create**

* Select your active Azure subscription from the subscription dropdown. (You must have an active subscription to proceed.)
* Click Create to continue to the deployment configuration UI.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FbCCiF7gWc5naTkKyUtUe%2Fimg3.png?alt=media&#x26;token=ed236e33-bece-4863-910f-35f38e030d5f" alt=""><figcaption></figcaption></figure></div>

### **Basics Tab — Resource Group & Names**

* Create a new Resource Group OR select an existing Resource Group.&#x20;
* Important: If you select an existing resource group, it must be empty. If it contains resources, create a new resource group instead.
* Enter the Container App name and Managed Application name.

{% hint style="info" %}
**Note:** The Container App name will appear in the URL of the created container app — choose it carefully.
{% endhint %}

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FKlVt0iVBIgGjcygQ4nMd%2Fimg4.png?alt=media&#x26;token=ab3449ec-7f20-4279-9d3f-b90f9c37419f" alt=""><figcaption></figcaption></figure></div>

### **OpenAI Service Configuration Tab**

Move to the Open AI service configuration tab. You will be prompted to choose an option (Yes / No).

**If you select Yes:**

* Assuming you already have existing Azure Open AI service with the deployed model\
  (note the model should be of type chat completion)
* After successful deployment of the InoWiz Prediction Builder, open the container apps.
* Go to the settings  > service connector, click on create in the basics tab > and keep the container the default selected one.
* Service type select OpenAI service keeps the connection name as is don’t make any changes there
* In the OpenAI dropdown, all your existing Azure OpenAI services will be listed. If you have an existing service, it will appear in that drop-down, so select it from there.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fyx0k6COeSEE20jGfo8Zh%2Fimg5.png?alt=media&#x26;token=3ff4233c-77f4-4615-90e4-63b3796ce44f" alt=""><figcaption></figcaption></figure></div>

After that, select the client type as python and then click next.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F42LbfkK5PVEibNAyEM15%2Fimg6.png?alt=media&#x26;token=5ce46f97-c82a-4c4f-ad2f-a821d947e250" alt=""><figcaption></figcaption></figure></div>

Keep default settings for the Authentication & Networking tab.

Navigate to the  **Review + Create tab**, check all the filled details and settings, and click on the create button. This will deploy the existing Azure OpenAI service to the container app.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F1F8xDipp2zBRbYv6ctff%2Fimg9.png?alt=media&#x26;token=53d7679a-afef-418a-b0ba-8069b4e8edab" alt=""><figcaption></figcaption></figure></div>

After successful deployment, the Azure OpenAI service is now shown in the container apps **Settings > Service Connector.**

&#x20;Now, with the help of this connection, the container app can connect to the Azure OpenAI service.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F1jF37oXhkdBhCfP9bhov%2Fimg10.png?alt=media&#x26;token=0f901d92-645f-45d5-9662-9910d767d912" alt=""><figcaption></figcaption></figure></div>

**If you select No:**

* The InoWiz Prediction Builder will create an Azure AI service for you and deploy the model into that service automatically.
* From the dropdown, select the model you want to deploy and select/set the token for that model.
* Set the token value based on your requirements and the tokens available in your Azure subscription. (Ensure you have sufficient tokens/quota for the chosen model.)
* Click Next to proceed.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FdTGhc2R2mDMYZb2oIrSG%2Fimg11.png?alt=media&#x26;token=97c454e5-dd10-469c-852a-3de80802b69c" alt=""><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FaxAj97y9pv5apcLcu3FU%2Fimg12.png?alt=media&#x26;token=0a05168b-39b9-4b0f-95b3-15a255e9485d" alt=""><figcaption></figcaption></figure></div>

### **Finalize Deployment**

* Review all configuration selections (subscription, resource group, container app name, OpenAI configuration, model and token, environment, owner).
* Complete the deployment (click **Create / Deploy** as applicable in the Azure UI).

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FFXJAtgOzMDkid2tqU9FB%2Fimg14.png?alt=media&#x26;token=1ad13888-4531-42fa-95bc-66dd98981e6c" alt=""><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fe4lPW7naMD45FxMi5ooR%2Fimg15.png?alt=media&#x26;token=f1025daa-1957-4f28-addf-fec5f6dbed47" alt=""><figcaption></figcaption></figure></div>

This will going to create a managed application in the selected Azure subscription. After successful deployment user must open the managed application.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FdsS2mMAgoN2VCCMaQQwd%2Fimg16.png?alt=media&#x26;token=2c45bc5a-c42e-421e-9289-7c307eaa4103" alt=""><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FzHu96gLmpovTq9PaN9Nj%2Fimg17.png?alt=media&#x26;token=f584e42b-ff93-4102-aff4-77ca2c72ff56" alt=""><figcaption></figcaption></figure></div>

[Click here](https://docs.inogic.com/predict4dynamics/configuration/configure-inowiz-prediction-builder) to configure the InoWiz Prediction builder.

{% hint style="success" %}
For any queries, reach out to us at <crm@inogic.com>
{% endhint %}
