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:
Sign into the Azure Portal.
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.
Search for and select Azure OpenAI services or Azure AI services.
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:
Download Ollama. Visit the official website at https://ollama.com and download the version suitable for your operating system.
Install and start Ollama. Follow the installation instructions for your operating system to start the Ollama service.
Download the language model. Open a terminal or command prompt and run the following command to download Llama 3.1:
ollama pull llama3.1This downloads the Llama 3.1 model, which is used to generate responses to user prompts.
Download the embedding model. Run the following command to download the
mxbai-embed-largeembedding model:ollama pull mxbai-embed-largeThis 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.
Verify the installed models. Run the following command to confirm that both models are available:
ollama listTest the language model. Run the following command to verify that Llama 3.1 generates responses:
ollama run llama3.1Enter a prompt and confirm that the model responds.
Configure the Ollama endpoint. Ollama provides a local API endpoint at:
http://localhost:11434The endpoint allows applications to communicate with the installed models. Local requests do not require an API key by default.
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
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
localhostwith the appropriate server hostname or IP address and ensure that the endpoint is accessible to the application.