Skip to content

Installation Guide

๐ŸŽฏ Prerequisites

Before installing AI Complete Suite, make sure you have the following:

Odoo System Requirements

  • Odoo Version: 17.0, 18.0, 19.0
  • Database: PostgreSQL 13 or higher
  • Access: Admin access to Odoo system

System Requirements

  • CPU: 4 cores or higher
  • RAM: Minimum 8GB, recommended 16GB
  • Storage: 2GB for modules and data
  • Operating System: Linux (Ubuntu/Debian recommended)

๐Ÿ”ง Environment Setup

Choose your installation environment:

Self-Hosted Environment

Python Dependencies

Install required Python packages using pip:

Core Dependencies (Required for all modules):

pip install mistune>=3.0.0 \
    markdownify>=0.11.0 \
    pyyaml>=6.0 \
    "pydantic>=2.0.0,<2.11.0" \
    docstring_parser>=0.15 \
    fastembed>=0.5.0,<=0.5.1

AI Provider Dependencies (Install based on your needs):

For ChatGPT Connector:

pip install "openai>=2.33.0,<3"

For Claude Connector:

pip install "anthropic>=0.80.0,<1"

For Gemini Connector:

pip install google-genai>=1.68.0,<2.9.0

For Azure OpenAI Connector:

pip install "openai>=2.33.0,<3"

PostgreSQL Extension Setup

Install and enable pgvector extension:

# Install pgvector extension
sudo apt update
sudo apt install postgresql-17-pgvector

Note: Replace 17 with your PostgreSQL version. Check version with:

psql --version

Enable the extension:

-- Connect to your Odoo database
\c your_odoo_database_name

-- Enable the vector extension
CREATE EXTENSION IF NOT EXISTS vector;

Module Upload

Copy AI modules to your Odoo addons directory:

# Copy modules to addons directory
cp -r /path/to/ai_modules/* /path/to/odoo/addons/

# Restart Odoo service
sudo systemctl restart odoo
Shared Embedding Service (Optional, self-hosted only)

By default every Odoo worker loads its own copy of the embedding model. To save memory when running many workers or instances, run one shared service and point Odoo at it.

1. Run the service as a systemd unit. It needs only fastembed, so use the same Python that runs Odoo. Create /etc/systemd/system/ai-embed.service (adjust User, Group and paths):

[Unit]
Description=AI embedding service
After=network.target

[Service]
User=odoo
Group=odoo
RuntimeDirectory=ai-embed
CacheDirectory=ai-embed
Environment=FASTEMBED_CACHE_PATH=/var/cache/ai-embed
ExecStart=/path/to/venv/bin/python /path/to/ai/ai_base_gt/scripts/embed_server.py \
  --listen unix:///run/ai-embed/embed.sock --workers 2 --threads 2
Restart=always

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now ai-embed
journalctl -u ai-embed -f   # wait for "Listening on ..."

Options:

  • --listen: unix:///path/to.sock or http://host:port.
  • --workers N: embed N requests at the same time. Each worker loads its own copy of the model, so RAM grows with N.
  • --threads N: threads per worker. It only speeds up a single embed.
  • FASTEMBED_CACHE_PATH keeps the downloaded model across reboots.

2. Check the service.

curl --unix-socket /run/ai-embed/embed.sock http://localhost/health

3. Point Odoo at it. Add this line to the Odoo config file of each instance, then restart Odoo:

ai_embed_uri = unix:///run/ai-embed/embed.sock

If ai_embed_uri is not set, each worker loads the model itself as before. The socket must be readable and writable by the Odoo user: if instances run as different users, put them in one group and set Group= of the service to it.

Odoo.sh Environment

PostgreSQL Extension Check

Odoo.sh typically comes with pgvector pre-installed on their databases, so you usually don't need to install it anymore. However, let's verify it's working properly:

# Connect to your Odoo.sh database
psql

# Check if pgvector extension exists
CREATE EXTENSION IF NOT EXISTS vector;

Expected Results:

  • โœ… "CREATE EXTENSION" - Extension installed successfully
  • โŒ "ERROR: extension 'vector' does not exist" - Contact Odoo.sh support

Note: If pgvector is not available, contact Odoo.sh support as you cannot install PostgreSQL extensions yourself.

Python Dependencies

Create requirements.txt in your repository root:

# Navigate to your Git repository root
cd /path/to/your/odoo-sh-repository

# Append Python dependencies to requirements.txt
echo "mistune>=3.0.0" >> requirements.txt
echo "markdownify>=0.11.0" >> requirements.txt
echo "pyyaml>=6.0" >> requirements.txt
echo "pydantic>=2.0.0,<2.11.0" >> requirements.txt
echo "docstring_parser>=0.15" >> requirements.txt
echo "fastembed>=0.5.0,<=0.5.1" >> requirements.txt
# For ChatGPT Connector
echo "openai>=2.33.0,<3" >> requirements.txt
# For Claude Connector
echo "anthropic>=0.80.0,<1" >> requirements.txt
# For Gemini Connector
echo "google-genai>=1.68.0,<2.9.0" >> requirements.txt

Note: Odoo.sh automatically installs dependencies from requirements.txt on each deployment.

Module Upload

Copy the AI modules source code into your Git repository, commit then push to your Odoo.sh branch.

โš™๏ธ Module Installation

Update Module List

  1. Log into your Odoo system as an administrator
  2. Go to Apps โ†’ Update Apps List
  3. Click Update to refresh the module list

Install Core Module

  1. Go to Apps โ†’ Search for "AI"
  2. Find "AI Integration Base"
  3. Click Install

Install Additional Modules (Optional)

Depending on your needs, install these modules:

For Discuss Integration:

  • Search for "AI Assistant for Discuss"
  • Click Install

For Livechat Integration:

  • Search for "AI Chatbot for Livechat"
  • Click Install

For AI Providers:

  • ChatGPT: Search for "AI ChatGPT Connector"
  • Claude: Search for "AI Claude Connector"
  • Gemini: Search for "AI Gemini Connector"

๐Ÿ”‘ Configuration

Create AI Configuration

  1. Go to Settings โ†’ Technical โ†’ AI โ†’ Configurations
  2. Click Create
  3. Fill in the details:

    • Name: "My AI Configuration"
    • Type: Choose your AI provider (ChatGPT, Claude, or Gemini)
    • API Key: Enter your API key from the provider
    • Model: Leave default or specify your preferred model
    • Temperature: 0.7 (recommended for balanced responses)
    • Max Tokens: 2048 (or as needed)

Get API Keys

For ChatGPT (OpenAI):

  1. Go to OpenAI Platform
  2. Create an account or sign in
  3. Go to API Keys section
  4. Create a new API key
  5. Copy the key and save it securely

For Claude (Anthropic):

  1. Go to Anthropic Console
  2. Create an account or sign in
  3. Go to API Keys section
  4. Create a new API key
  5. Copy the key and save it securely

For Gemini (Google):

  1. Go to Google AI Studio
  2. Create an account or sign in
  3. Go to API Keys section
  4. Create a new API key
  5. Copy the key and save it securely

๐Ÿงช Testing & Next Steps

Verify Installation

  1. Go to Settings โ†’ Technical โ†’ AI
  2. You should see these menu items:

    • Configurations
    • Data Sources
    • Contexts
    • Assistants
    • Prompt Templates
    • Threads

Next Steps

After successful installation:

  1. Set up data sources: Data Sources Guide
  2. Configure contexts: Contexts Guide
  3. Create your first AI assistant: AI Assistants Guide
  4. Test with Discuss: Quick Start Guide

Need help? Contact support or check the documentation for your specific issue.