PPM Administrator Help

Create Azure AI or Ollama Service

This section describes how to create an Azure AI service or an Ollama service, depending on your provider.

Azure AI Service

Use this procedure to create an Azure AI service that provides the endpoint to connect Ask Dela to your AI model provider.

To create Azure AI service:

  1. Sign into the Azure Portal.

  2. If you have access to multiple tenants, use the Directory + subscription filter on the top menu to switch to the tenant in which you want to register the application.

  3. Search for and select Azure OpenAI services or Azure AI services.

  4. Follow the instructions to create a new service. This step creates the endpoint and keys required on the AI tab on the System form.

Ollama Service

Use this procedure to install and configure an Ollama service with a language model and an embedding model for AI-powered applications.

To create and configure Ollama service:

  1. Download Ollama. Visit the official website at https://ollama.com and download the version suitable for your operating system.

  2. Install and start Ollama. Follow the installation instructions for your operating system to start the Ollama service.

  3. Download the language model. Open a terminal or command prompt and run the following command to download Llama 3.1:

    ollama pull llama3.1
    

    This downloads the Llama 3.1 model, which is used to generate responses to user prompts.

  4. Download the embedding model. Run the following command to download the mxbai-embed-large embedding model:

    ollama pull mxbai-embed-large
    

    This model converts text into numerical vector representations (embeddings), which can be used for semantic search, document retrieval, and retrieval-augmented generation (RAG). See the official Ollama model library.

  5. Verify the installed models. Run the following command to confirm that both models are available:

    ollama list
    
  6. Test the language model. Run the following command to verify that Llama 3.1 generates responses:

    ollama run llama3.1
    

    Enter a prompt and confirm that the model responds.

  7. Configure the Ollama endpoint. Ollama provides a local API endpoint at:

    http://localhost:11434
    

    The endpoint allows applications to communicate with the installed models. Local requests do not require an API key by default.

  8. Configure the AI settings in PPMA. Open the System form and navigate to the AI tab. Select Ollama as the provider and configure the following details:

    • Provider: Ollama
    • Endpoint URL: http://localhost:11434
    • Language model: llama3.1
    • Embedding model: mxbai-embed-large
    • API key: Not required for local requests by default
  9. Test the configuration. Save the settings and verify that the application can connect to Ollama, generate responses using Llama 3.1, and create embeddings using mxbai-embed-large.

Note: If Ollama is hosted on a separate server, replace localhost with the appropriate server hostname or IP address and ensure that the endpoint is accessible to the application.