DBdiver
RAG based Database Assistant
The problem DBdiver solves
- The Problem DBdiver Solves
DBdiver tackles the significant bottleneck that separates non-technical users from their own data. In most organizations, data is locked away in complex databases, and accessing it requires two specific, high-level skills:
Knowledge of SQL: A user must be able to write and understand complex SQL queries.
Knowledge of the Schema: A user must know the database's architecture, including hundreds of table names, obscure column names (e.g., prod_sKU_v2), and how to JOIN them correctly.
This creates two major problems:
Data Silos: Business users (in marketing, sales, or leadership) who need data to make decisions are completely blocked. They cannot self-serve.
The Technical Bottleneck: These users must file a request and wait for a data analyst or developer to run a query for them. This turns highly-skilled technical staff into a report-pulling service, wasting their time and delaying simple data requests for hours or even days.
The result is slow, inefficient decision-making, and valuable data is left unused.
- What You Can Use It For
DBdiver is a conversational analytics tool that makes everyone in an organization a data analyst. Users connect their databases (like PostgreSQL, MySQL, or MongoDB) to the secure web application and can then perform complex data analysis using plain English.
You can use it to:
Ask Direct Questions: "What were our top 5 most sold products last month?"
Get Complex, Filtered Answers: "Show me all users from New York who signed up in the last 30 days and have placed an order."
Request Visualizations: "Create a bar chart of sales by region for Q3."
Understand Data Relationships: "How many orders has '[email protected]' placed?"
Verify Technical Work: A developer can even use it to quickly learn a new, complex schema by asking questions about it.
In return, the user gets a complete, multi-part answer:
A natural language summary ("Your top product was the 'Pro Widget', with 1,200 sales.")
The exact SQL query used to get the answer.
The raw data table for inspection.
An auto-generated visualization (like a bar or line chart) if the data is suitable.
3. How DBdiver Makes Data Access Better
DBdiver fundamentally improves the process of data analysis by making it easier, faster, and safer.
Makes it Easier & Faster
Democratizes Data Access: It completely removes the SQL barrier. A marketing manager can now get the same quality of data as a senior engineer, with no coding required.
Provides Context-Aware Accuracy: This is not a generic Text-to-SQL tool. By using a RAG system (ChromaDB + Sentence Transformers), DBdiver ingests and learns your specific database schema. It knows your weirdly named tables and columns, leading to far more-accurate SQL generation.
Delivers Instant, Complete Answers: It eliminates the "wait for an analyst" bottleneck. What used to take a day of back-and-forth emails now takes 10 seconds. It provides the summary, the chart, and the data all in one place.
Makes it Safer
Builds Trust Through Transparency: DBdiver always shows the generated SQL query. This is critical. A technical user can instantly verify that the AI ran the correct query and that the answer is trustworthy.
Prioritizes Security: The system is built with a read-only-first approach. This gives database administrators peace of mind, knowing that users can ask questions and explore data without any risk of accidentally modifying or deleting live production data.
Challenges we ran into
RAG Database Context Persistence: The most significant challenge was ChromaDB maintaining outdated vector embeddings even after database disconnections. This resulted in the system using stale database schemas and generating queries based on non-existent table structures, causing confusion and incorrect responses. The RAG system would reference old database contexts that were no longer valid, requiring implementation of proper vector store cleanup mechanisms and database connection validation before each operation.
Chat Interface User Experience Issues: Multiple UI/UX problems plagued the chat screen, including message persistence across sessions, inconsistent loading states during query processing, poor error handling, and chat history not clearing when switching database contexts. These issues significantly impacted user interaction, making it difficult for users to understand system responses and maintain conversation flow. Solutions involved implementing proper session management, adding loading indicators, creating clear error messaging systems, and building chat reset functionality to ensure a smooth user experience.
Tracks Applied (2)
Base44 Innovation Challenge
Base44
Best Use of Gemini API
Major League Hacking
Technologies used
