AI-UP-RAG: Open-source containerized stack integrates Odoo ERP with RAG chatbot
Fujigo Software Solutions
Member of M&C Holdings (Japan)

Software engineering researchers have introduced AI-UP-RAG, an open-source containerized infrastructure designed to bridge enterprise resource planning (ERP) software with retrieval-augmented generation (RAG) pipelines while preserving structured conversational records for downstream research and institutional auditing.
Background
Following the rapid adoption of large language models (LLMs) across organizational environments after late 2022, institutions have increasingly faced technical and operational hurdles concerning governance, compliance monitoring, and the responsible management of automated interactions. While standard RAG frameworks effectively ingest external knowledge to reduce factual hallucinations, they routinely prioritize isolated query-response cycles over automated deployment, native business integration, persistent interaction storage, and subsequent analytical access.
The newly published system addresses this architectural gap by presenting a modular, reproducible service stack that coordinates conversational frontends, vector-based information retrieval, administrative data tooling, and external neural generation.
Three-tier architecture
The overall system architecture is organized across three bidirectional structural tiers:
Client Interaction Layer: Provides the client-facing chatbot graphical interfaces through which end users submit queries and receive generated responses.
Application Service Layer: Forms the core AI-UP-RAG containerized stack responsible for internal orchestration, data transformations, vector operations, and administrative web environments.
External AI Services Layer: Establishes secure communication with remote cloud-based LLM providers. In its default reference implementation, the platform routes generation tasks to OpenAI developer endpoints, utilizing the GPT-4o mini model, though the codebase remains architecturally decoupled to allow integration of alternative commercial or self-hosted language model backends.
Data flows
The architecture defines three primary data flows:
Client interaction flow: An end user submits a prompt through a frontend client interface to an exposed RESTful endpoint. Odoo executes a similarity search against the vector-indexed knowledge repository, packages the user query alongside retrieved contextual excerpts, and transmits an HTTP request to the external language model provider. Upon receiving the generated response, Odoo captures the interaction, commits it to the PostgreSQL database, and returns the finished response to the client interface.
Knowledge ingestion flow: Allows administrators to upload and organize reference data directly through Odoo administrative views, converting raw text into persistent database embeddings.
Auditing flow: Enables system administrators and researchers to query stored conversational records directly using dedicated database management utilities.
Containerized deployment
The backend Application Service Layer is implemented as a multi-container topology orchestrated through Docker Compose, comprising five interconnected server containers running inside an isolated Docker virtual network:
- Nginx reverse proxy: Routes HTTP requests
- Let’s Encrypt acme-companion: Manages SSL/TLS certificate generation, installation, and renewal
- Odoo Community 18.0: Extended with six custom modular add-ons implementing RAG mechanisms
- PostgreSQL with pgvector: Manages persistent data storage and vector indexing
- pgAdmin 4: Facilitates database inspection, administrative querying, and data extraction
The entire infrastructure relies strictly on free and open-source licenses, including GNU LGPL v3, MIT License, and PostgreSQL License, eliminating proprietary licensing expenses for enterprise deployment.
Six custom Odoo modules
Within the core ERP container, specialized operational capabilities are distributed across six bespoke Odoo add-on modules:
ai_up_advertisements: Extends the standard Odoo interface with views allowing administrative personnel to input, inspect, modify, and delete textual entries within the institutional knowledge base.
ai_up_vectorizer_pg_vector: Defines operational configuration for pgvector and handles mathematical embedding generation using the sentence-transformers/all-mpnet-base-v2 model from Hugging Face.
ai_up_vectorizer: Introduces an administrative selection view for active vector providers, defines the base class interface contract, and deploys an ORM mixin that automatically fires vectorization hooks when database records are created, updated, or removed.
ai_up_advertisements_vectorizer: Binds knowledge model operations to the vectorizer mixin, guaranteeing automated vector synchronization whenever reference texts are modified.
ai_up_messaging: Serves as the primary communication handler, accepting HTTP requests from external client endpoints, orchestrating semantic vector similarity lookups against PostgreSQL, packaging user prompts with relevant context, dispatching generation payloads to the cloud language model, and delivering synthesized answers.
ai_up_message_history: Logs every incoming user prompt and generated model response, providing programmable control over the conversation context window (configured by default to retrieve the eight most recent historical messages).
Performance evaluation
To evaluate operational feasibility and system efficiency under resource-constrained conditions, researchers conducted physical hardware profiling and concurrent request latency benchmarking.
Minimum hardware specifications to operate all five server containers simultaneously comprise 2 CPU cores, 4GB RAM, and 30GB disk storage (equivalent to an AWS EC2 t3.medium instance).
Performance testing measured total round-trip processing latency. Under workloads of 1, 5, and 10 simultaneous requests, latency remained consistently stable between 2.2 and 3.8 seconds. When concurrent demand scaled to 20 simultaneous requests and higher, round-trip latency began to increase noticeably, demonstrating that while entry-level computational resources adequately sustain moderate operational traffic, scaling to higher concurrent enterprise workloads necessitates additional processor cores and allocated memory.
Technical contribution
A central technical contribution of the AI-UP-RAG stack lies in its native support for persistent data governance, historical conversation analysis, and academic research into AI interactions. Standard conversational frameworks frequently treat dialogic history merely as an ephemeral memory buffer used exclusively to maintain contextual coherence during active sessions, discarding or siloing transactional data once interactions terminate.
In contrast, AI-UP-RAG automatically stores every messaging exchange within the relational PostgreSQL mail_message table, creating a structured, persistent repository of user queries, retrieved contextual fragments, and model completions. Through the bundled pgAdmin 4 web administration client, institutional administrators, data analysts, and compliance researchers can compose structured SQL queries across combined textual logs and high-dimensional vector embeddings.
Comparative analysis against existing open-source AI platforms such as Dify, AnythingLLM, and RAGFlow reveals that AI-UP-RAG combines reproducible container deployment, multi-provider API extensibility, integrated vector generation, and direct pgAdmin interaction analysis in a single environment.
Source: Containerized Open Source Stack Integrates Odoo ERP With Retrieval Augmented Language Models — Bioengineer.org, November 28, 2026