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:
For Claude Connector:
For Gemini Connector:
For Azure OpenAI Connector:
PostgreSQL Extension Setup¶
Install and enable pgvector extension:
Note: Replace 17 with your PostgreSQL version. Check version with:
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.sockorhttp://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_PATHkeeps the downloaded model across reboots.
2. Check the service.
3. Point Odoo at it. Add this line to the Odoo config file of each instance, then restart Odoo:
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¶
- Log into your Odoo system as an administrator
- Go to Apps โ Update Apps List
- Click Update to refresh the module list
Install Core Module¶
- Go to Apps โ Search for "AI"
- Find "AI Integration Base"
- 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¶
- Go to Settings โ Technical โ AI โ Configurations
- Click Create
-
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):
- Go to OpenAI Platform
- Create an account or sign in
- Go to API Keys section
- Create a new API key
- Copy the key and save it securely
For Claude (Anthropic):
- Go to Anthropic Console
- Create an account or sign in
- Go to API Keys section
- Create a new API key
- Copy the key and save it securely
For Gemini (Google):
- Go to Google AI Studio
- Create an account or sign in
- Go to API Keys section
- Create a new API key
- Copy the key and save it securely
๐งช Testing & Next Steps¶
Verify Installation¶
- Go to Settings โ Technical โ AI
-
You should see these menu items:
- Configurations
- Data Sources
- Contexts
- Assistants
- Prompt Templates
- Threads
Next Steps¶
After successful installation:
- Set up data sources: Data Sources Guide
- Configure contexts: Contexts Guide
- Create your first AI assistant: AI Assistants Guide
- Test with Discuss: Quick Start Guide
Need help? Contact support or check the documentation for your specific issue.