| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 1188 |
| Technical Name |
llm_store |
| 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 | 1188 |
| Technical Name |
llm_store |
| License | LGPL-3 |
| Website | https://github.com/apexive/odoo-llm |
| Versions | 16.0 18.0 |
LLM Vector Store Base
Integration with various vector database providers for LLM applications.
The foundation for RAG (Retrieval Augmented Generation) in Odoo
What is a Vector Store?
Enable semantic search and AI-powered retrieval in Odoo
Vector stores enable AI applications to find semantically similar content. Instead of keyword matching, they understand meaning - finding documents that are conceptually related to your query. This module provides the base abstraction layer that allows Odoo to work with multiple vector database backends.
Core Features
Everything you need for vector-based AI operations
Vector Storage & Retrieval
Store high-dimensional vectors representing your content and retrieve them efficiently when needed.
Similarity Search
Find semantically similar content using vector similarity algorithms. Go beyond keyword matching.
Collection Management
Organize vectors into collections for logical separation and efficient management of different data types.
RAG Support
Foundation for Retrieval Augmented Generation - give AI assistants access to your business knowledge.
Choose Your Backend
This module is extended by specific vector store implementations
LLM PgVector
Use PostgreSQL with pgvector extension. No external services needed.
LLM Chroma
Connect to ChromaDB for dedicated vector database operations.
LLM Qdrant
High-performance vector search with Qdrant vector database.
Technical Details
For developers extending the vector store capabilities
Module Information
llm (base module)
Technical
LGPL-3
18.0.1.0.0
LLM Vector Store Base for Odoo
Comprehensive vector database abstraction layer providing unified interfaces for similarity search, embeddings storage, and RAG capabilities.
Module Type: 📦 Infrastructure
Installation
What to Install
This module is typically auto-installed as a dependency. You rarely need to install it directly.
For RAG/Knowledge Base features:
# Install knowledge module with a vector store
odoo-bin -d your_db -i llm_knowledge,llm_pgvector
Auto-Installed Dependencies
These are pulled in automatically:
- llm (core infrastructure)
- mail (Odoo messaging)
Choose a Vector Store Implementation
| Module | Best For | Requirements |
|---|---|---|
| llm_pgvector | Production (recommended) | PostgreSQL 14+ with pgvector | ||
| llm_qdrant | Large-scale deployments | Qdrant server | ||
| llm_chroma | Development/testing | None (embedded) | ||
Common Setups
| I want to... | Install |
|---|---|
| Add RAG to my AI assistant | llm_knowledge + llm_pgvector + llm_assistant |
| Simple document search | llm_knowledge + llm_chroma |
| High-performance vector search | llm_knowledge + llm_qdrant |
Overview
The LLM Vector Store Base module serves as the foundation for vector database operations in the Odoo LLM ecosystem. It provides a provider-agnostic interface that enables seamless integration with various vector databases while maintaining consistent APIs and performance optimizations.
Core Capabilities
- Multi-Provider Support - Unified interface for ChromaDB, pgvector, Qdrant, and other vector stores
- Collection Management - Abstract models for organizing and managing vector collections
- Vector Operations - Insert, search, update, and delete operations with metadata support
- Index Management - Automatic index creation and optimization for performance
- RAG Integration - Seamless integration with knowledge base and retrieval systems
Key Features
Provider Abstraction Framework
Unified Interface Across Vector Stores:
class LLMStore(models.Model): _name = "llm.store" _description = "LLM Vector Store" def _dispatch(self, method, *args, **kwargs): """Dynamic dispatch to service-specific implementation""" service_method = f"{self.service}_{method}" if hasattr(self, service_method): return getattr(self, service_method)(*args, **kwargs)
Collection Management
# Create collection collection = env['llm.store.collection'].create({ 'name': 'knowledge_base', 'store_id': store.id, 'dimension': 1536, # OpenAI embedding dimension 'distance_metric': 'cosine' }) collection.create_collection() # Insert vectors collection.insert_vectors( vectors=[[0.1, 0.2, 0.3, ...]], metadata=[{'document_id': 123}], ids=['doc_123'] ) # Search vectors results = collection.search_vectors( query_vector=[0.2, 0.3, 0.4, ...], limit=5 )
API Reference
Core Store Methods
# Collection management def create_collection(self, name, dimension, metric='cosine'): """Create new vector collection""" def delete_collection(self, name): """Delete vector collection""" # Vector operations def insert_vectors(self, collection, vectors, metadata=None, ids=None): """Insert vectors into collection""" def search_vectors(self, collection, query_vector, limit=10, filter=None): """Search similar vectors""" def update_vectors(self, collection, ids, vectors=None, metadata=None): """Update existing vectors""" def delete_vectors(self, collection, ids=None, filter=None): """Delete vectors from collection"""
Technical Specifications
Module Information
- Name: LLM Vector Store Base
- Version: 18.0.1.0.0
- Category: Technical
- License: LGPL-3
- Dependencies: llm, mail
- Author: Apexive Solutions LLC
Key Models
- ``llm.store``: Base vector store configuration
- ``llm.store.collection``: Vector collection management
Performance Characteristics
| Operation | ChromaDB | pgvector | Qdrant |
|---|---|---|---|
| Insert Speed | Good | Excellent | Excellent |
| Search Speed | Good | Very Good | Excellent |
| Scalability | Limited | Good | Excellent |
| Setup Complexity | Low | Medium | Medium |
Resources
- GitHub Repository
- Architecture Overview
License
This module is licensed under LGPL-3.
© 2025 Apexive Solutions LLC. All rights reserved.
Please log in to comment on this module