| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 13523 |
| Technical Name |
llm_tool_knowledge |
| License | LGPL-3 |
| Website | https://github.com/apexive/odoo-llm |
| Versions | 16.0 18.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 13523 |
| Technical Name |
llm_tool_knowledge |
| License | LGPL-3 |
| Website | https://github.com/apexive/odoo-llm |
| Versions | 16.0 18.0 |
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.
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 moduleEnable your internal Odoo chatbots to search company knowledge. Perfect for customer support, HR help, sales assistance, and employee self-service.
How it works:
- Create or edit an assistant
- Enable "knowledge_retriever" tool
- Assistant automatically searches knowledge when needed
- 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 moduleExpose 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:
- Install llm_mcp_server module
- Configure MCP client (Claude, etc.) with Odoo URL
- Tool automatically appears in client
- 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
User Asks Question
"What's our refund policy for damaged items?"
AI Searches Knowledge
Tool finds relevant sections from your policy documents using semantic search
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
Install Dependencies
Make sure you have these modules installed first:
llm_knowledge- RAG knowledge basellm_tool- Tool frameworkllm_assistant- AI assistants
Install This Module
Search for "LLM Tool Knowledge" in Apps and click Install
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 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:
- With Odoo AI Assistants (llm_assistant module) - Enable your internal Odoo chatbots to search company knowledge
- 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
Install dependencies:
- llm_knowledge module (required)
- llm_tool module (required)
- llm_assistant module (required)
- llm_mcp_server module (optional - for external MCP clients)
Install this module:
# Via Odoo Apps interface Apps → Search "LLM Tool Knowledge" → Install
The tool is automatically registered and ready to use.
Configuration
For Odoo AI Assistants
- Go to LLM → Assistants → Assistants
- Open or create an assistant
- Navigate to the Tools tab
- Enable the "knowledge_retriever" tool
- The assistant can now search knowledge collections
For External MCP Clients
- Install and configure llm_mcp_server module
- The knowledge_retriever tool is automatically exposed via MCP
- Configure your MCP client (Claude Desktop, etc.) to connect to Odoo
- 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
- Receive query: AI assistant or external tool calls knowledge_retriever
- Vector search: Query is embedded and searched against knowledge chunks
- Filter results: Apply similarity threshold and top_k limit
- Return sources: Chunks with metadata, similarity scores, and source references
- 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
- Embed query using collection's embedding model
- Perform vector similarity search in vector store (pgvector/Qdrant/Chroma)
- Filter by min_similarity threshold
- Return top_k most relevant chunks
- 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
- Organize Collections: Create topic-specific collections for better search accuracy
- Update Regularly: Keep knowledge collections current with latest information
- Set Thresholds: Adjust min_similarity based on precision/recall needs
- Limit Scope: Use collection_id parameter to search specific domains
- Monitor Usage: Track which queries are most common to improve indexing
Troubleshooting
Tool not appearing
- Verify module is installed and active
- Check llm_knowledge module is installed
- Refresh assistants or MCP client
Search returns no results
- Check collection has processed resources (state=ready)
- Verify embeddings are generated
- Lower min_similarity threshold
- Check vector store is configured correctly
MCP connection fails
- Verify llm_mcp_server is installed and configured
- Check MCP client configuration matches Odoo URL
- Review authentication credentials
- 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
Contributing
Issues and pull requests welcome at https://github.com/apexive/odoo-llm
Please log in to comment on this module