Skip to main content
Login
      • Discover
        • For Executives
          • For Startups
            • Lakehouse Architecture
              • Mosaic Research
              • Customers
                • Customer Stories
                • Partners
                  • Cloud Providers
                    Databricks on AWS, Azure, GCP, and SAP
                    • Consulting & System Integrators
                      Experts to build, deploy and migrate to Databricks
                      • Technology Partners
                        Connect your existing tools to your Lakehouse
                        • C&SI Partner Program
                          Build, deploy or migrate to the Lakehouse
                          • Data Partners
                            Access the ecosystem of data consumers
                            • Partner Solutions
                              Find custom industry and migration solutions
                              • Built on Databricks
                                Build, market and grow your business
                              • Databricks Platform
                                • Platform Overview
                                  A unified platform for data, analytics and AI
                                  • Data Management
                                    Data reliability, security and performance
                                    • Sharing
                                      An open, secure, zero-copy sharing for all data
                                      • Data Warehousing
                                        Serverless data warehouse for SQL analytics
                                        • Governance
                                          Unified governance for all data, analytics and AI assets
                                          • Data Engineering
                                            ETL and orchestration for batch and streaming data
                                            • Artificial Intelligence
                                              Build and deploy ML and GenAI applications
                                              • Data Science
                                                Collaborative data science at scale
                                                • Business Intelligence
                                                  Intelligent analytics for real-world data
                                                  • Application Development
                                                    Quickly build secure data and AI apps
                                                    • Database
                                                      Postgres for data apps and AI agents
                                                    • Integrations and Data
                                                      • Marketplace
                                                        Open marketplace for data, analytics and AI
                                                        • IDE Integrations
                                                          Build on the Lakehouse in your favorite IDE
                                                          • Partner Connect
                                                            Discover and integrate with the Databricks ecosystem
                                                          • Pricing
                                                            • Databricks Pricing
                                                              Explore product pricing, DBUs and more
                                                              • Cost Calculator
                                                                Estimate your compute costs on any cloud
                                                              • Open Source
                                                                • Open Source Technologies
                                                                  Learn more about the innovations behind the platform
                                                                • Databricks for Industries
                                                                  • Communications
                                                                    • Media and Entertainment
                                                                      • Financial Services
                                                                        • Public Sector
                                                                          • Healthcare & Life Sciences
                                                                            • Retail
                                                                              • Manufacturing
                                                                                • See All Industries
                                                                                • Cross Industry Solutions
                                                                                  • Cybersecurity
                                                                                    • Marketing
                                                                                    • Migration & Deployment
                                                                                      • Data Migration
                                                                                        • Professional Services
                                                                                        • Solution Accelerators
                                                                                          • Explore Accelerators
                                                                                            Move faster toward outcomes that matter
                                                                                          • Learning
                                                                                            • Training
                                                                                              Discover curriculum tailored to your needs
                                                                                              • Databricks Academy
                                                                                                Sign in to the Databricks learning platform
                                                                                                • Certification
                                                                                                  Gain recognition and differentiation
                                                                                                  • Free Edition
                                                                                                    Learn professional Data and AI tools for free
                                                                                                    • University Alliance
                                                                                                      Want to teach Databricks? See how.
                                                                                                    • Events
                                                                                                      • Data + AI Summit
                                                                                                        • Data + AI World Tour
                                                                                                          • Data Intelligence Days
                                                                                                            • Event Calendar
                                                                                                            • Blog and Podcasts
                                                                                                              • Databricks Blog
                                                                                                                Explore news, product announcements, and more
                                                                                                                • Databricks Mosaic Research Blog
                                                                                                                  Discover the latest in our Gen AI research
                                                                                                                  • Data Brew Podcast
                                                                                                                    Let’s talk data!
                                                                                                                    • Champions of Data + AI Podcast
                                                                                                                      Insights from data leaders powering innovation
                                                                                                                    • Get Help
                                                                                                                      • Customer Support
                                                                                                                        • Documentation
                                                                                                                          • Community
                                                                                                                          • Dive Deep
                                                                                                                            • Resource Center
                                                                                                                              • Demo Center
                                                                                                                                • Architecture Center
                                                                                                                                • Company
                                                                                                                                  • Who We Are
                                                                                                                                    • Our Team
                                                                                                                                      • Databricks Ventures
                                                                                                                                        • Contact Us
                                                                                                                                        • Careers
                                                                                                                                          • Working at Databricks
                                                                                                                                            • Open Jobs
                                                                                                                                            • Press
                                                                                                                                              • Awards and Recognition
                                                                                                                                                • Newsroom
                                                                                                                                                • Security and Trust
                                                                                                                                                  • Security and Trust
                                                                                                                                              • Ready to get started?
                                                                                                                                              • Get a Demo
                                                                                                                                              • Login
                                                                                                                                              • Contact Us
                                                                                                                                              • Try Databricks
                                                                                                                                              1. Blog
                                                                                                                                              2. /
                                                                                                                                                Insights
                                                                                                                                              3. /
                                                                                                                                                Article

                                                                                                                                              Automating Data Documentation with AI: How 7-Eleven Bridged the Metadata Gap

                                                                                                                                              Using intelligent agents to streamline the migration of thousands of data definitions, unlocking more reliable and higher-quality insights for decision-making.

                                                                                                                                              Automating Data Documentation with AI: How 7-Eleven Bridged the Metadata Gap

                                                                                                                                              Published: September 15, 2025

                                                                                                                                              Insights4 min read

                                                                                                                                              by Yash Mahendra Shingvi

                                                                                                                                              Share this post

                                                                                                                                              Keep up with us

                                                                                                                                              Summary

                                                                                                                                              • Unlock the potential of agents like AI/BI Genie: 7-Eleven bootstrapped their Databricks environment by ingesting Confluence documentation, providing more context for AI-agents such as Genie.
                                                                                                                                              • Opportunity to scale with AI: A manual migration of thousands of tables was impractical due to high labor, error risks and maintenance burdens, diverting focus from strategic work.
                                                                                                                                              • Automate Confluence-to-Databricks migration with agentic AI: 7-Eleven used an agentic AI workflow to build an intelligent multistage pipeline that automated the entire documentation migration process. This not only fast-tracked the process, completing the initial migration in days instead of months, but it also improved accuracy and unlocked AI/BI’s full potential with ongoing synchronization on the Databricks Data Intelligence Platform.

                                                                                                                                              7-Eleven’s Data Documentation Dilemma

                                                                                                                                              7-Eleven’s data ecosystem is massive and complex, housing thousands of tables with hundreds of columns across our Databricks environment. This data forms the backbone of our operations, analytics and decision-making processes. Traditionally, 7-Eleven’s data dictionary and documentation lived in Confluence pages, meticulously maintained by our data team members who would manually document table and column definitions.

                                                                                                                                              We faced a critical roadblock as we began exploring the AI-powered features on the Databricks Data Intelligence Platform, including AI/BI Genie, intelligent dashboards and other applications. These advanced tools rely heavily on table metadata and comments embedded directly within Databricks to generate insights, answer questions about our data, and build automated visualizations. Without proper table and column comments in Databricks itself, we were essentially leaving powerful AI capabilities on the table. For example, when Genie lacks column definitions, it can misinterpret the meaning of bespoke columns, requiring end users to clarify. Once we enriched our metadata, Genie’s contextual understanding improved dramatically—accurately identifying column purposes, surfacing the right tables in response to natural language queries, and generating far more relevant and actionable insights. Simply put, Genie, like all AI agents, gets more thoughtful and more helpful when it has better metadata to work with.

                                                                                                                                              The gap between our well-documented Confluence pages and our “metadata-light” Databricks environment was preventing us from realizing the full potential of our data platform investment.

                                                                                                                                              Manual Migration’s Impossible Scale

                                                                                                                                              When we initially considered migrating our documentation from Confluence to Databricks, the scale of the challenge became immediately apparent. With thousands of tables containing hundreds of columns each, a manual migration would require:

                                                                                                                                              • Time-intensive labor: Hundreds of person-hours to copy and paste documentation
                                                                                                                                              • Manual metadata updates: Crafting thousands of individual SQL statements to update metadata or going to each table UI
                                                                                                                                              • Project oversight: Implementing a tracking system to ensure all tables were properly updated
                                                                                                                                              • Quality assurance: Creating a validation process to catch inevitable human errors
                                                                                                                                              • Ongoing upkeep: Establishing an ongoing maintenance protocol to keep both systems in sync

                                                                                                                                              Human error would be unavoidable even if we dedicated significant resources to this effort. Some tables would be missed, comments would be incorrectly formatted, and the process would likely need to be repeated as documentation evolved. Moreover, the tedious nature of the work likely leads to inconsistent quality across the documentation.

                                                                                                                                              Most concerning was the opportunity cost. While our data team focused on this migration, they couldn’t work on higher-value initiatives. Every day, we faced delays in strengthening our Databricks metadata, leaving untapped potential in the AI/BI capabilities already at our fingertips.

                                                                                                                                              The Intelligent Document Processing Pipeline

                                                                                                                                              To solve this challenge, 7-Eleven developed a sophisticated agentic AI workflow powered by Llama 4 Maverick, deployed through Mosaic AI Model Serving, that automated the entire documentation migration process through an intelligent multistage pipeline:

                                                                                                                                              1. Discovery phase: The agent uses Databricks APIs to get all tables, table names and column structures.
                                                                                                                                              2. Document retrieval: The agent pulls all relevant data dictionary documents from Confluence, creating a corpus of potential documentation sources.
                                                                                                                                              3. Reranking and filtering: Implementing advanced reranking algorithms, the system prioritizes the most relevant documentation for each table, filtering out noise and irrelevant content. This critical step ensures we match tables with their proper documentation even when naming conventions aren’t perfectly consistent.
                                                                                                                                              4. Intelligent matching: For each Databricks table, the AI agent analyzes potential documentation matches, using contextual understanding to determine the correct Confluence page even when names don’t match exactly.
                                                                                                                                              5. Targeted extraction: Once the correct documentation is identified, the agent intelligently extracts relevant descriptions for both tables and their columns, preserving the original meaning while formatting appropriately for Databricks metadata.
                                                                                                                                              6. SQL generation: The system automatically generates properly formatted SQL statements to update the Databricks table and column comments, handling special characters and formatting requirements.
                                                                                                                                              7. Execution and verification: The agent runs the SQL updates and, through MLflow tracking and evaluation, verifies that metadata was applied correctly, logs results, and surfaces any issues for human review.
                                                                                                                                              8. Monitoring and insights: The team also uses the AI/BI Genie Dashboard to track project metrics in real time, ensuring transparency, quality control, and continuous improvement.

                                                                                                                                              This intelligent pipeline transformed months of tedious, error-prone work into an automated process that completed the initial migration in days. The system’s ability to understand context and make intelligent matches between differently named or structured resources was key to achieving high accuracy.

                                                                                                                                              Since implementing this solution, we plan to migrate documentation for over 90% of our tables, unlocking the full potential of Databricks’ AI/BI features. What began as a lightly used AI assistant has evolved into an everyday tool in our data workflows.. Genie’s ability to understand context now mirrors how a human would interpret the data, thanks to the column-level metadata we injected. Our data scientists and analysts can now use natural language queries through AI/BI Genie to explore data, and our dashboards leverage the rich metadata to provide more meaningful visualizations and insights.

                                                                                                                                              The solution continues to provide value as an ongoing synchronization tool, ensuring that as our documentation evolves in Confluence, those changes are reflected in our Databricks environment. This project demonstrated how thoughtfully applied AI agents can solve complex data governance challenges at enterprise scale, turning what seemed like an insurmountable documentation task into an elegant automated solution.

                                                                                                                                              Want to learn more about AI/BI and how it can help unlock value from your data? Learn more here.

                                                                                                                                              Keep up with us

                                                                                                                                              Recommended for you

                                                                                                                                              Share this post

                                                                                                                                              Never miss a Databricks post

                                                                                                                                              Subscribe to the categories you care about and get the latest posts delivered to your inbox

                                                                                                                                              Sign up

                                                                                                                                              What's next?

                                                                                                                                              MIT and Databricks Report

                                                                                                                                              Insights

                                                                                                                                              October 16, 2023/3 min read

                                                                                                                                              How CIOs are laying the foundation for AI-led growth

                                                                                                                                              The role of AI in changing company structures and dynamics

                                                                                                                                              Data Strategy

                                                                                                                                              November 12, 2024/9 min read

                                                                                                                                              The role of AI in changing company structures and dynamics

                                                                                                                                              databricks logo
                                                                                                                                              Why Databricks
                                                                                                                                              Discover
                                                                                                                                              • For Executives
                                                                                                                                              • For Startups
                                                                                                                                              • Lakehouse Architecture
                                                                                                                                              • Mosaic Research
                                                                                                                                              Customers
                                                                                                                                              • Customer Stories
                                                                                                                                              Partners
                                                                                                                                              • Cloud Providers
                                                                                                                                              • Technology Partners
                                                                                                                                              • Data Partners
                                                                                                                                              • Built on Databricks
                                                                                                                                              • Consulting & System Integrators
                                                                                                                                              • C&SI Partner Program
                                                                                                                                              • Partner Solutions
                                                                                                                                              Discover
                                                                                                                                              • For Executives
                                                                                                                                              • For Startups
                                                                                                                                              • Lakehouse Architecture
                                                                                                                                              • Mosaic Research
                                                                                                                                              Customers
                                                                                                                                              • Customer Stories
                                                                                                                                              Partners
                                                                                                                                              • Cloud Providers
                                                                                                                                              • Technology Partners
                                                                                                                                              • Data Partners
                                                                                                                                              • Built on Databricks
                                                                                                                                              • Consulting & System Integrators
                                                                                                                                              • C&SI Partner Program
                                                                                                                                              • Partner Solutions
                                                                                                                                              Product
                                                                                                                                              Databricks Platform
                                                                                                                                              • Platform Overview
                                                                                                                                              • Sharing
                                                                                                                                              • Governance
                                                                                                                                              • Artificial Intelligence
                                                                                                                                              • Business Intelligence
                                                                                                                                              • Database
                                                                                                                                              • Data Management
                                                                                                                                              • Data Warehousing
                                                                                                                                              • Data Engineering
                                                                                                                                              • Data Science
                                                                                                                                              • Application Development
                                                                                                                                              Pricing
                                                                                                                                              • Pricing Overview
                                                                                                                                              • Pricing Calculator
                                                                                                                                              Open Source
                                                                                                                                              Integrations and Data
                                                                                                                                              • Marketplace
                                                                                                                                              • IDE Integrations
                                                                                                                                              • Partner Connect
                                                                                                                                              Databricks Platform
                                                                                                                                              • Platform Overview
                                                                                                                                              • Sharing
                                                                                                                                              • Governance
                                                                                                                                              • Artificial Intelligence
                                                                                                                                              • Business Intelligence
                                                                                                                                              • Database
                                                                                                                                              • Data Management
                                                                                                                                              • Data Warehousing
                                                                                                                                              • Data Engineering
                                                                                                                                              • Data Science
                                                                                                                                              • Application Development
                                                                                                                                              Pricing
                                                                                                                                              • Pricing Overview
                                                                                                                                              • Pricing Calculator
                                                                                                                                              Integrations and Data
                                                                                                                                              • Marketplace
                                                                                                                                              • IDE Integrations
                                                                                                                                              • Partner Connect
                                                                                                                                              Solutions
                                                                                                                                              Databricks For Industries
                                                                                                                                              • Communications
                                                                                                                                              • Financial Services
                                                                                                                                              • Healthcare and Life Sciences
                                                                                                                                              • Manufacturing
                                                                                                                                              • Media and Entertainment
                                                                                                                                              • Public Sector
                                                                                                                                              • Retail
                                                                                                                                              • View All
                                                                                                                                              Cross Industry Solutions
                                                                                                                                              • Cybersecurity
                                                                                                                                              • Marketing
                                                                                                                                              Data Migration
                                                                                                                                              Professional Services
                                                                                                                                              Solution Accelerators
                                                                                                                                              Databricks For Industries
                                                                                                                                              • Communications
                                                                                                                                              • Financial Services
                                                                                                                                              • Healthcare and Life Sciences
                                                                                                                                              • Manufacturing
                                                                                                                                              • Media and Entertainment
                                                                                                                                              • Public Sector
                                                                                                                                              • Retail
                                                                                                                                              • View All
                                                                                                                                              Cross Industry Solutions
                                                                                                                                              • Cybersecurity
                                                                                                                                              • Marketing
                                                                                                                                              Resources
                                                                                                                                              Documentation
                                                                                                                                              Customer Support
                                                                                                                                              Community
                                                                                                                                              Learning
                                                                                                                                              • Training
                                                                                                                                              • Certification
                                                                                                                                              • Free Edition
                                                                                                                                              • University Alliance
                                                                                                                                              • Databricks Academy Login
                                                                                                                                              Events
                                                                                                                                              • Data + AI Summit
                                                                                                                                              • Data + AI World Tour
                                                                                                                                              • Data Intelligence Days
                                                                                                                                              • Event Calendar
                                                                                                                                              Blog and Podcasts
                                                                                                                                              • Databricks Blog
                                                                                                                                              • Databricks Mosaic Research Blog
                                                                                                                                              • Data Brew Podcast
                                                                                                                                              • Champions of Data & AI Podcast
                                                                                                                                              Learning
                                                                                                                                              • Training
                                                                                                                                              • Certification
                                                                                                                                              • Free Edition
                                                                                                                                              • University Alliance
                                                                                                                                              • Databricks Academy Login
                                                                                                                                              Events
                                                                                                                                              • Data + AI Summit
                                                                                                                                              • Data + AI World Tour
                                                                                                                                              • Data Intelligence Days
                                                                                                                                              • Event Calendar
                                                                                                                                              Blog and Podcasts
                                                                                                                                              • Databricks Blog
                                                                                                                                              • Databricks Mosaic Research Blog
                                                                                                                                              • Data Brew Podcast
                                                                                                                                              • Champions of Data & AI Podcast
                                                                                                                                              About
                                                                                                                                              Company
                                                                                                                                              • Who We Are
                                                                                                                                              • Our Team
                                                                                                                                              • Databricks Ventures
                                                                                                                                              • Contact Us
                                                                                                                                              Careers
                                                                                                                                              • Open Jobs
                                                                                                                                              • Working at Databricks
                                                                                                                                              Press
                                                                                                                                              • Awards and Recognition
                                                                                                                                              • Newsroom
                                                                                                                                              Security and Trust
                                                                                                                                              Company
                                                                                                                                              • Who We Are
                                                                                                                                              • Our Team
                                                                                                                                              • Databricks Ventures
                                                                                                                                              • Contact Us
                                                                                                                                              Careers
                                                                                                                                              • Open Jobs
                                                                                                                                              • Working at Databricks
                                                                                                                                              Press
                                                                                                                                              • Awards and Recognition
                                                                                                                                              • Newsroom
                                                                                                                                              databricks logo

                                                                                                                                              Databricks Inc.
                                                                                                                                              160 Spear Street, 15th Floor
                                                                                                                                              San Francisco, CA 94105
                                                                                                                                              1-866-330-0121

                                                                                                                                              See Careers
                                                                                                                                              at Databricks

                                                                                                                                              © Databricks 2025. All rights reserved. Apache, Apache Spark, Spark, the Spark Logo, Apache Iceberg, Iceberg, and the Apache Iceberg logo are trademarks of the Apache Software Foundation.

                                                                                                                                              • Privacy Notice
                                                                                                                                              • |Terms of Use
                                                                                                                                              • |Modern Slavery Statement
                                                                                                                                              • |California Privacy
                                                                                                                                              • |Your Privacy Choices