rachmataditiya
MCP Serverrachmataditiyapublic

llm odoo

提供将大语言模型(如OpenAI、Anthropic等)无缝集成到Odoo的框架,支持聊天、嵌入和知识库功能。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

提供将大语言模型(如OpenAI、Anthropic等)无缝集成到Odoo的框架,支持聊天、嵌入和知识库功能。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Odoo LLM Integration

!Banner

This repository provides a comprehensive framework for integrating Large Language Models (LLMs) into Odoo. It allows seamless interaction with various AI providers including OpenAI, Anthropic, Ollama, and Replicate, enabling chat completions, text embeddings, and more within your Odoo environment.

🚀 Features

  • Multiple LLM Provider Support: Connect to OpenAI, Anthropic, Ollama, Mistral, Replicate, and LiteLLM proxy.
  • Unified API: Consistent interface for all LLM operations regardless of the provider.
  • Chat UI: Modern, responsive interface with real-time message streaming.
  • Thread Management: Organize and manage AI conversations effectively.
  • Model Management: Configure and utilize different models for various tasks.
  • Knowledge Base (RAG): Store, index, and retrieve documents for Retrieval-Augmented Generation.
  • Vector Store Integrations: Supports ChromaDB, pgvector, and Qdrant for efficient similarity searches.
  • Tool Use Framework: Allows LLMs to use tools to interact with Odoo data and perform actions.
  • AI Assistants: Build and manage specialized AI assistants with custom instructions and tools.
  • Prompt Management: Create, manage, and reuse prompts for consistent interactions.
  • Security: Role-based access control and secure API key management.

📦 Modules

ModuleDescription
llmBase module with core functionality and provider framework
llm_anthropicAnthropic (Claude) provider integration
llm_assistantAssistant management for specialized AI agents with custom tools
llm_chromaChromaDB vector store integration
llm_document_pageIntegration with document pages (e.g., knowledge articles)
llm_knowledgeCore knowledge base functionality (embedding, storage, retrieval)
llm_knowledge_automationAutomation rules related to knowledge base processing
llm_knowledge_llamaLlamaIndex integration for knowledge base functionality (tentative)
llm_knowledge_mistralMistral-specific features for knowledge base (tentative)
llm_litellmLiteLLM proxy for centralized model management
llm_mail_message_subtypesLLM integration for mail message subtypes (e.g., summarization)
llm_mcpModel Context Protocol Support
llm_mistralMistral AI provider integration
llm_ollamaOllama provider for local model deployment
llm_openaiOpenAI (GPT) provider integration
llm_pgvectorpgvector (PostgreSQL) vector store integration
llm_promptManagement and templating of prompts
llm_qdrantQdrant vector store integration
llm_replicateReplicate.com provider integration
llm_resourceManagement of LLM-related resources (e.g., models, configurations)
llm_storeAbstraction layer for vector stores
llm_threadChat threads and conversation management
llm_toolFramework for LLM tools (allowing LLMs to interact with Odoo)
llm_tool_knowledgeTool for LLMs to query the knowledge base

🛠️ Installation

You can install these modules by cloning the repository and making them available in your Odoo addons path:

  1. Clone this repository to your preferred location:

    git clone https://github.com/apexive/odoo-llm
    
  2. Make the modules available to Odoo by either:

    • Cloning directly into your Odoo addons directory, or
    • Copying the module subdirectories to your Odoo extra-addons directory:
      cp -r /path/to/odoo-llm/* /path/to/your/odoo/extra-addons/
      
  3. Install required dependencies:

    pip install -r requirements.txt
    
  4. Restart your Odoo server to detect the new modules

  5. Install the modules through the Odoo Apps menu

🚀 Quick Start Guide

Thanks to Odoo's dependency management, you only need to install the end modules to get started quickly:

  1. Basic Chat with AI Assistants:

    • Install llm_openai (or another provider like llm_anthropic or llm_mistral)
    • Install llm_assistant for specialized AI assistants

    This will automatically install all required dependencies including llm, llm_thread, llm_prompt, and llm_tool.

  2. Knowledge Base (RAG) Setup:

    • Install one of the vector store integrations:
      • llm_pgvector (requires PostgreSQL with pgvector extension)
      • llm_chroma (requires Chroma DB)
      • llm_qdrant (requires Qdrant vector database)

    This will automatically install all required dependencies including llm_knowledge, llm_store, and llm_resource.

With just these two steps, you'll have a complete LLM integration with chat capabilities, assistants, and knowledge retrieval.

⚙️ Configuration

After installation:

  1. Navigate to LLM → Configuration → Providers
  2. Create a new provider with your API credentials
  3. Set up models for the provider (can be done automatically using "Fetch Models")
  4. Grant appropriate access rights to users

🔄 LLM Tools: Building AI-Driven ERP

We're seeing tremendous potential by integrating reasoning/assistant models like ChatGPT, Claude, and others into Odoo. These models can query the Odoo database via functions and interact with server actions for data manipulation.

Why This Matters

This approach has the potential to revolutionize how users interact with Odoo:

  • AI-driven automation of repetitive tasks
  • Smart querying & decision-making inside Odoo
  • A flexible ecosystem for custom AI assistants

Help Wanted - Let's Build This Together!

We are committed to keeping this project truly open source and building an open AI layer for Odoo ERP that benefits everyone. We're looking for contributions in these areas:

  • Unit tests & CI/CD
  • Security & access control improvements
  • Multi-model support enhancement
  • Localization & translations
  • Documentation and examples

🤝 Contributing

We welcome contributions! Here's how you can help:

  1. Issues: Report bugs or suggest features through the Issues tab
  2. Discussions: Join conversations about development priorities and approaches
  3. Pull Requests: Submit code contributions for fixes or new features

Guidelines

  • Follow the existing code style and structure
  • Write clean, well-documented code
  • Include tests for new functionality
  • Update documentation as necessary

🔮 Roadmap

  • Enhanced RAG (Retrieval Augmented Generation) capabilities (Foundation built, further enhancements planned)
  • Function calling support for model-driven actions (Framework exists via llm_tool, expansion planned)
  • Multi-modal content handling (images, audio)
  • Advanced prompt templates and management (Basic management via llm_prompt, advanced features planned)
  • Integration with other Odoo modules (CRM, HR, etc.)
  • Improving assistant frameworks for complex task automation (Foundation via llm_assistant, improvements planned)

📜 License

This project is licensed under LGPL-3 - see the LICENSE file for details.

🌐 About

Developed by Apexive - We're passionate about bringing advanced AI capabilities to the Odoo ecosystem.

For questions, support, or collaboration opportunities, please open an issue or discussion in this repository.

Quick Start

1

Clone the repository

git clone https://github.com/rachmataditiya/llm-odoo
2

Install dependencies

cd llm-odoo
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerrachmataditiya
Repollm-odoo
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation