Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Tools
  3. LLM Tool RAG v 18.0
  4. Sales Conditions FAQ

LLM Tool RAG

by Apexive Solutions LLC https://github.com/apexive/odoo-llm
Odoo
v 18.0 Third Party 74
Download for v 18.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies Show
• LLM Assistant
• LLM Knowledge
• LLM Tool
• Easy AI Chat
• LLM Integration Base
• Web JSON Editor
• LLM Vector Store Base
Lines of code 13523
Technical Name llm_tool_knowledge
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm
Versions 16.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies Show
• LLM Assistant
• LLM Knowledge
• LLM Tool
• Easy AI Chat
• LLM Integration Base
• Web JSON Editor
• LLM Vector Store Base
Lines of code 13523
Technical Name llm_tool_knowledge
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm
Versions 16.0 18.0
  • Description
  • Documentation
RAG Tools for AI Assistants

Give Your AI Assistants
Instant Access to Knowledge

Connect Odoo AI assistants and external MCP clients to your knowledge base. Enable semantic search, source citations, and accurate answers using your actual company data.

Semantic Search
Instant Results
Accurate Answers

What Problem Does This Solve?

Without RAG tools, your AI assistants only know what they were trained on. With this module, they can search your documents and provide accurate, sourced answers.

Without RAG Tools

  • AI makes up answers when it doesn't know
  • No access to your specific company data
  • Can't cite sources for verification
  • Outdated information from training data

With RAG Tools

  • AI searches your knowledge base first
  • Answers based on your actual documents
  • Provides source citations for every answer
  • Always current with your latest content

Two Ways to Use

One tool, two powerful integration points for AI knowledge access

Odoo AI Assistants

llm_assistant module

Enable your internal Odoo chatbots to search company knowledge. Perfect for customer support, HR help, sales assistance, and employee self-service.

How it works:

  1. Create or edit an assistant
  2. Enable "knowledge_retriever" tool
  3. Assistant automatically searches knowledge when needed
  4. Answers include source citations

Example: Support chatbot searches FAQ collection → "Based on our Returns Policy..." (Source: Policy v2.3)

External MCP Clients

llm_mcp_server module

Expose your knowledge base to external AI tools via Model Context Protocol. Use with Claude Desktop, Continue.dev, Cursor, and other MCP-compatible apps.

How it works:

  1. Install llm_mcp_server module
  2. Configure MCP client (Claude, etc.) with Odoo URL
  3. Tool automatically appears in client
  4. External AI can search your knowledge securely

Example: Claude Desktop queries product docs → Returns specs with sources from your knowledge base

One Tool, Multiple Integrations

The knowledge_retriever tool is registered once and works everywhere. Enable it for Odoo assistants for internal use, or expose it via MCP for external AI tools. Your choice, or use both!


How It Works

Simple 3-step process from question to accurate answer

1

User Asks Question

"What's our refund policy for damaged items?"

2

AI Searches Knowledge

Tool finds relevant sections from your policy documents using semantic search

3

AI Answers with Sources

Response cites exact policy section with source document name


Powerful Features

Everything you need to make AI assistants knowledge-aware

Semantic Search

Finds relevant information by meaning, not just keywords. Understands context and intent.

Configurable Retrieval

Control how many documents to search, similarity threshold, and result ranking.

Source Citations

Every answer includes the source document name and similarity score for verification.

Multi-Collection Support

Search across different knowledge bases: policies, manuals, FAQs, technical docs.

Smart Result Filtering

Automatically groups results by document and ranks by relevance for best answers first.

Function Calling Ready

Works with OpenAI, Anthropic, and other LLMs that support function/tool calling.


Real-World Use Cases

See how teams use knowledge tools to supercharge their AI assistants

Customer Support Bot

Answer customer questions using product manuals, FAQs, and policy documents

"What's the warranty period for Model X?"

AI: "Model X has a 2-year warranty. (Source: Product Manual p.12, 95% match)"

HR Policy Assistant

Help employees find answers about vacation policies, benefits, and procedures

"How do I request parental leave?"

AI: "Submit Form HR-203 to your manager 30 days in advance. (Source: HR Handbook, 92% match)"

Technical Documentation Helper

Enable developers to quickly find API documentation, code examples, and best practices

"How do I authenticate API requests?"

AI: "Use Bearer token in Authorization header. (Source: API Docs v2.1, 97% match)"

Sales Knowledge Base

Give sales reps instant access to product specs, pricing, and competitive analysis

"What's our edge over Competitor Y?"

AI: "3x faster processing and 40% cost savings. (Source: Competitive Analysis Q4, 89% match)"


Quick Setup

Get started in 3 simple steps

1

Install Dependencies

Make sure you have these modules installed first:

  • llm_knowledge - RAG knowledge base
  • llm_tool - Tool framework
  • llm_assistant - AI assistants
2

Install This Module

Search for "LLM Tool Knowledge" in Apps and click Install

3

Add Tool to Assistant

Go to your LLM Assistant and add the "Knowledge Retriever" tool. That's it!


Works With These Modules

Part of the Odoo LLM ecosystem

LLM Knowledge

RAG knowledge base with document processing and vector search (required)

LLM Tool

Tool framework for extending AI capabilities (required)

LLM Assistant

Create specialized AI assistants with tools (required)

LLM Tool Knowledge

Give your AI assistants instant access to knowledge

Developed by Apexive Solutions LLC

Licensed under LGPL-3 • © 2025 All rights reserved.

github.com/apexive/odoo-llm
hello@apexive.com

LLM Tool Knowledge

Give your AI assistants instant access to your knowledge base with semantic search and source citation capabilities.

This module provides RAG (Retrieval-Augmented Generation) tools that enable AI assistants to search documents, cite sources, and answer questions using your actual company data instead of just their training.

Overview

LLM Tool Knowledge extends the Odoo LLM ecosystem with a powerful knowledge_retriever tool that performs semantic search across your knowledge collections. This tool can be used in two ways:

  1. With Odoo AI Assistants (llm_assistant module) - Enable your internal Odoo chatbots to search company knowledge
  2. With External MCP Clients (llm_mcp_server module) - Expose your knowledge base to external AI tools like Claude Desktop, Continue.dev, and other MCP-compatible applications

Features

Knowledge Retriever Tool

  • Semantic Search: Find relevant documents using natural language queries
  • Source Citations: AI responses include references to source documents
  • Hybrid Search: Combine semantic and keyword search for better accuracy
  • Collection-Aware: Search specific collections or across all knowledge
  • Configurable Relevance: Set minimum similarity thresholds

Dual Integration

Odoo AI Assistants (llm_assistant)

When enabled on an assistant, the AI can automatically search your knowledge base:

User: "What's our refund policy?"
AI: Uses knowledge_retriever tool → searches policy documents → cites sources

External MCP Clients (llm_mcp_server)

Expose the knowledge_retriever tool via Model Context Protocol:

Claude Desktop → MCP Server (Odoo) → knowledge_retriever → returns relevant docs

External AI tools can search your Odoo knowledge base securely.

Installation

  1. Install dependencies:

    • llm_knowledge module (required)
    • llm_tool module (required)
    • llm_assistant module (required)
    • llm_mcp_server module (optional - for external MCP clients)
  2. Install this module:

    # Via Odoo Apps interface
    Apps → Search "LLM Tool Knowledge" → Install
    
  3. The tool is automatically registered and ready to use.

Configuration

For Odoo AI Assistants

  1. Go to LLM → Assistants → Assistants
  2. Open or create an assistant
  3. Navigate to the Tools tab
  4. Enable the "knowledge_retriever" tool
  5. The assistant can now search knowledge collections

For External MCP Clients

  1. Install and configure llm_mcp_server module
  2. The knowledge_retriever tool is automatically exposed via MCP
  3. Configure your MCP client (Claude Desktop, etc.) to connect to Odoo
  4. External AI can now search your knowledge base

Usage Examples

Example 1: Odoo Assistant with Knowledge Access

Setup:

  • Create knowledge collection with company policies
  • Enable knowledge_retriever tool on support assistant

Result:

User: "What's the warranty period for laptops?"
Assistant: [Searches policies collection]
"Based on our Electronics Warranty Policy, laptops have a 2-year warranty covering
hardware defects. (Source: Electronics Warranty Policy, updated Jan 2024)"

Example 2: Claude Desktop Accessing Odoo Knowledge

Setup:

  • Configure llm_mcp_server with your Odoo instance
  • Add server to Claude Desktop MCP settings
  • Index product documentation in Odoo knowledge

Result:

Claude Desktop → uses knowledge_retriever tool → searches Odoo docs
Returns: Relevant product specs with source citations from your knowledge base

Example 3: Continue.dev with Company Codebase

Setup:

  • Index code documentation in Odoo knowledge collection
  • Expose via MCP server
  • Configure Continue.dev to use Odoo MCP server

Result:

Developer asks Continue.dev about internal APIs → searches indexed docs → provides accurate answers from your actual documentation.

How It Works

Tool Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Search query to find relevant knowledge"
    },
    "collection_id": {
      "type": "string",
      "description": "ID of knowledge collection to search (optional)"
    },
    "top_k": {
      "type": "integer",
      "description": "Number of results to return (default: 5)"
    },
    "min_similarity": {
      "type": "number",
      "description": "Minimum similarity score 0-1 (default: 0.7)"
    }
  },
  "required": ["query"]
}

Tool Execution Flow

  1. Receive query: AI assistant or external tool calls knowledge_retriever
  2. Vector search: Query is embedded and searched against knowledge chunks
  3. Filter results: Apply similarity threshold and top_k limit
  4. Return sources: Chunks with metadata, similarity scores, and source references
  5. AI uses context: Assistant incorporates results into response with citations

Technical Details

Tool Registration

Defined in data/llm_tool_data.xml:

<record id="llm_tool_knowledge_retriever" model="llm.tool">
    <field name="name">knowledge_retriever</field>
    <field name="description">Retrieves relevant knowledge from document database
    using semantic search...</field>
    <field name="implementation">knowledge_retriever</field>
    <field name="active" eval="True" />
</record>

Implementation

Located in models/llm_tool_knowledge_retriever.py:

class LLMToolKnowledgeRetriever(models.Model):
    _inherit = "llm.tool"

    @api.model
    def _get_available_implementations(self):
        implementations = super()._get_available_implementations()
        return implementations + [("knowledge_retriever", "Knowledge Retriever")]

Search Process

  1. Embed query using collection's embedding model
  2. Perform vector similarity search in vector store (pgvector/Qdrant/Chroma)
  3. Filter by min_similarity threshold
  4. Return top_k most relevant chunks
  5. Include source document metadata

Use Cases

Internal Odoo Assistants

  • Customer Support: Search FAQ, policies, product docs
  • HR Assistant: Search employee handbook, HR policies
  • Sales Assistant: Search product specs, pricing, competitor analysis
  • IT Helpdesk: Search technical documentation, troubleshooting guides

External MCP Integration

  • Developer Tools: Continue.dev, Cursor accessing code documentation
  • Claude Desktop: Personal assistant with access to company knowledge
  • Custom AI Apps: Build external apps that query Odoo knowledge
  • Multi-Tool Workflows: Chain knowledge search with other MCP tools

Security

Access Control

  • Tool: Requires llm.group_llm_user to execute
  • Collections: Respects Odoo record rules and access rights
  • MCP Server: Separate authentication for external access

Data Privacy

  • Knowledge searches respect user permissions
  • External MCP access requires explicit configuration
  • No knowledge is shared unless explicitly indexed in collections

Best Practices

  1. Organize Collections: Create topic-specific collections for better search accuracy
  2. Update Regularly: Keep knowledge collections current with latest information
  3. Set Thresholds: Adjust min_similarity based on precision/recall needs
  4. Limit Scope: Use collection_id parameter to search specific domains
  5. Monitor Usage: Track which queries are most common to improve indexing

Troubleshooting

Tool not appearing

  1. Verify module is installed and active
  2. Check llm_knowledge module is installed
  3. Refresh assistants or MCP client

Search returns no results

  1. Check collection has processed resources (state=ready)
  2. Verify embeddings are generated
  3. Lower min_similarity threshold
  4. Check vector store is configured correctly

MCP connection fails

  1. Verify llm_mcp_server is installed and configured
  2. Check MCP client configuration matches Odoo URL
  3. Review authentication credentials
  4. Check Odoo is accessible from MCP client network

Requirements

  • Odoo: 18.0+
  • Python: 3.11+
  • Dependencies:
    • llm_knowledge module (semantic search, vector storage)
    • llm_tool module (tool framework)
    • llm_assistant module (AI assistants)
    • llm_mcp_server module (optional - for external MCP clients)

License

LGPL-3

Author

Apexive Solutions LLC

  • Website: https://github.com/apexive/odoo-llm
  • Email: info@apexive.com

Contributing

Issues and pull requests welcome at https://github.com/apexive/odoo-llm

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with