Skip to main content

Introduction

Ollama allows you to run large language models locally on your own hardware. By integrating Ollama with Aikeedo, you can provide AI capabilities without relying on cloud services, ensuring data privacy and reducing costs.
Currently, Ollama integration is available only for the Chat tool in Aikeedo.

About Ollama

Ollama is an open-source project that simplifies running and managing large language models locally. It offers:
  • Easy installation and setup
  • Support for various open-source models
  • Local execution for enhanced privacy
  • Custom model configuration
  • REST API for integration
For more information, visit the official Ollama website.

Setting Up Ollama

Step 1: Install Ollama

For Apple Silicon (M1/M2) Macs, Metal GPU acceleration is supported automatically.
For detailed installation instructions and troubleshooting, refer to the Ollama Installation Guide.

Step 2: Configure Your Model

  1. Start the Ollama service
  2. Pull your desired model. For example:
View all available models at Ollama Model Library.

Step 3: Configure Server Address

By default, Ollama runs on:
For remote access, you’ll need to:
  1. Configure your firewall to allow access to port 11434
  2. Set up proper security measures as Ollama doesn’t include authentication by default
When exposing Ollama to remote access, ensure you implement appropriate security measures to protect your server.

Integrating with Aikeedo

Step 1: Set the server address

  1. Log in to your Aikeedo admin panel
  2. Navigate to Settings → Ollama
  3. Enter your Ollama Server address (e.g., http://localhost:11434)
  4. Click Save changes
The server address must include the scheme (http/https), host, and port number. Aikeedo calls the address you set here.

Step 2: Add your models

Ollama models are added on the Models page. Click Manage models on the Ollama settings page, or go to Settings → Models.
  1. Click Add model and choose Ollama as the provider.
  2. Choose the Model type: Text for chat models, or Embedding.
  3. Enter the API model id exactly as Ollama names it, such as llama3.3:70b.
  4. Enter the Name users see and the Developer, such as Meta for Llama models.
  5. Set its capabilities, such as Vision and Tool calling, and its context window.
  6. Save, then switch the model on.
Catalog Ollama models can also be added with More → Import models. Models you run on your own hardware cost you nothing per request, so you can leave their price empty to offer them for free, or charge fixed credits.

Model Configuration

You can customize model behavior using Modelfiles. Example:
Learn more about model configuration in the Ollama Documentation.

Hardware Requirements

Minimum requirements vary by model:
  • 7B models: 8GB RAM
  • 13B models: 16GB RAM
  • 33B+ models: 32GB+ RAM
GPU acceleration is supported for:
  • NVIDIA GPUs with CUDA
  • AMD GPUs with ROCm
  • Apple Silicon (Metal)

Best Practices

  1. Model Selection:
    • Start with smaller models (7B) and test performance
    • Consider your hardware capabilities
    • Choose models based on your specific use case
  2. Performance:
    • Enable GPU acceleration when available
    • Monitor system resources
    • Adjust model parameters for optimal performance
  3. Security:
    • Implement proper firewall rules
    • Use reverse proxy for additional security
    • Regular system updates

Troubleshooting

Common issues and solutions:
  1. Connection Issues:
    • Verify Ollama service is running
    • Check server address format
    • Confirm firewall settings
  2. Model Loading Failures:
    • Ensure sufficient system resources
    • Verify model is properly pulled
    • Check model compatibility
  3. Performance Issues:
    • Monitor system resources
    • Consider using a smaller model
    • Adjust model parameters

Additional Resources

Keep Ollama and your models updated for the best performance and security.