Menu
MongoDB Blog·November 24, 2026

Scaling an Agentic AI Assistant with a Unified Data Platform: A Case Study with MongoDB Atlas

Piramal Finance successfully migrated from a fragmented multi-database architecture (PostgreSQL, pgVector, Neo4j) to a unified MongoDB Atlas platform to scale their internal agentic AI assistant for over 18,000 employees. This consolidation reduced operational overhead, eliminated data synchronization latencies, and improved performance for vector search, graph traversals, and access control. The flexible document model and built-in capabilities of MongoDB Atlas were key to simplifying the architecture and enhancing developer productivity.

Read original on MongoDB Blog

The Challenge: Fragmented Data Architecture for AI

Piramal Finance initially built its internal agentic AI assistant using a fragmented architecture comprising several specialized third-party tools. This setup, while leveraging specific strengths of each database, introduced significant operational overhead and complexity, hindering the scalability and efficiency required for an enterprise-wide AI solution.

  • Neo4j: A graph database for dynamic permissions based on organizational hierarchy and real-time relationships.
  • pgVector: An open-source PostgreSQL extension for vector storage and similarity search for AI features.
  • PostgreSQL: A relational database for operational data and analytical queries.
⚠️

Architectural Bottleneck: Data Synchronization Latency

The initial fragmented architecture resulted in data synchronization latencies of over 30 minutes, impacting the timeliness of newly ingested content for AI searches. This highlights a common trade-off between specialized databases and operational complexity.

Solution: Unifying with MongoDB Atlas

Piramal Finance addressed these challenges by migrating to a unified data layer built on MongoDB Atlas. The flexible document model, combined with built-in features like MongoDB Search, MongoDB Vector Search, and the aggregation framework, enabled the consolidation of various data workloads onto a single platform.

  • Access Control: Replaced PostgreSQL credential management by mapping MongoDB Atlas's authentication and authorization to enterprise SSO and Active Directory, leveraging built-in RBAC for fine-grained access.
  • Graph Traversals: Redesigned the data model to represent relationships within MongoDB documents, utilizing the `$graphLookup` aggregation stage for bounded traversals, eliminating the need for Neo4j for most graph queries.
  • Vector Search & Retrieval: Integrated MongoDB Vector Search for unstructured document processing and retrieval, achieving 3x faster performance compared to the previous pgVector setup in PostgreSQL.
  • Unified Search: MongoDB Search handled keyword retrieval, while the aggregation framework combined metadata filtering, graph traversal, and ranking into unified retrieval pipelines, simplifying application logic and backend services.

Architectural Benefits and Outcomes

The migration to MongoDB Atlas significantly streamlined Piramal Finance's AI infrastructure, leading to substantial improvements in efficiency and productivity. Knowledge graph and document updates, which previously took up to 30 minutes, now execute in just 15 seconds, virtually eliminating operational downtime.

💡

Key Takeaway: Unified Data Layers for AI

This case study demonstrates the value of a multi-model database approach, where a single platform can handle diverse data types and workloads (document, vector, graph-like relationships via aggregation) to reduce architectural complexity and improve developer velocity. When designing a system, consider how a unified data layer can simplify operations, even if specialized databases offer niche advantages.

MongoDBAI assistantvector databasegraph databasedata architecturedatabase migrationscalabilityenterprise AI

Comments

Loading comments...
Scaling an Agentic AI Assistant with a Unified Data Platform: A Case Study with MongoDB Atlas | SysDesAi