Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Chat with Your Business Data: LLM, RAG, SQL and NoSQL
Rating: 2.5 out of 5(1 rating)
30 students

Chat with Your Business Data: LLM, RAG, SQL and NoSQL

Build AI data assistants with SQL Server, PostgreSQL, MongoDB, RAG, pgvector, APIs, and guardrails
Created byAgus Kurniawan
Last updated 7/2026
English
English

What you'll learn

  • Build an AI data assistant for SQL Server, PostgreSQL, MongoDB, files, APIs, and pgvector.
  • Use Text-to-SQL to safely query CRM, commerce, order, product, and customer data.
  • Build RAG pipelines with PostgreSQL pgvector for PDFs, SOPs, policies, and business documents.
  • Create an AI router that selects the right tool for SQL, NoSQL, RAG, files, and APIs.
  • Add guardrails to block unsafe SQL, sensitive data exposure, and prompt injection attacks.

Course content

12 sections • 110 lectures • 7h 17m total length
  • Welcome to the Course6:02
  • What Is an AI Data Assistant?5:02
  • Why Business Data Needs More Than Basic RAG6:49
  • Text-to-SQL vs RAG vs Tool-Calling Agents8:18
  • Final Project Demo: BizData AI Assistant3:28
  • Course Architecture and Tech Stack9:20
  • Source Codes & Slides0:02

    The following are all materials in this course

Requirements

  • Basic Python programming knowledge is required.
  • Basic SQL knowledge is recommended.
  • No prior LLM, RAG, LangChain, or pgvector experience is required.
  • An optional cloud LLM API key can be used, but the course can run locally with Ollama.

Description

Many AI courses stop at a simple chatbot or a basic “chat with PDF” demo.

This course goes further.

In this hands-on course, you will build a practical AI data assistant for real business data. The final project can answer questions from structured databases, NoSQL documents, business files, mock REST APIs, and a vector knowledge base. You will combine LLMs, Text-to-SQL, Retrieval-Augmented Generation (RAG), PostgreSQL pgvector, MongoDB query generation, tool-calling, routing, guardrails, testing, FastAPI, Streamlit, and Docker Compose into one end-to-end application.

The project uses a realistic enterprise scenario called BizData AI Assistant.

SQL Server stores CRM data such as customers, accounts, contacts, opportunities, activities, segments, and loyalty profiles. PostgreSQL stores commerce data such as users, products, inventory, orders, order items, payments, shipments, branches, and sales targets. MongoDB stores support tickets, product reviews, customer chats, and agent notes. PostgreSQL pgvector stores document embeddings for RAG over policies, SOPs, PDFs, Markdown files, and business documents. Local JSON files power a mock business API for shipment status, payment status, customer risk score, and inventory data.

You will learn how to build an AI assistant that does not rely on one generic prompt for everything. Instead, the assistant uses the right method for the right data source:

  • Text-to-SQL for SQL Server CRM and PostgreSQL commerce data

  • Natural language to MongoDB filters and aggregation pipelines for support and review data

  • RAG with PostgreSQL pgvector for business documents and policies

  • pandas and staging tables for CSV, Excel, and JSON data

  • tool calling for mock REST API access

  • routing and answer synthesis for multi-source business questions

The course uses Ollama as the default local LLM runtime, so the main labs can run locally without requiring paid cloud LLM APIs. You will also learn how to configure OpenAI-compatible APIs and Azure OpenAI as optional cloud providers. vLLM is introduced as an optional production-style model serving concept, but it is not required to complete the course.

A major focus of this course is safety. You will not simply generate SQL or MongoDB queries and execute them blindly. You will implement practical guardrails: read-only query enforcement, blocked SQL keywords, MongoDB operation allowlists, query limits, result-size caps, timeout controls, PII masking, prompt injection defenses, and audit logging. These are the kinds of controls needed when connecting LLM applications to real business data.

You will build the backend with FastAPI, create the chat UI with Streamlit, run the data platform with Docker Compose, restore prepared SQL Server, PostgreSQL, and MongoDB datasets, and test the application across multiple real-world scenarios. You will also create evaluation workflows for Text-to-SQL accuracy, RAG retrieval quality, router behavior, multi-source answers, and guardrail safety.

By the end of the course, you will have a complete AI data assistant architecture that you can adapt for enterprise applications, internal analytics assistants, customer support tools, business intelligence copilots, and data engineering workflows.


Why This Course Is Different

This is not just another chatbot course.

You will learn how to connect LLMs to realistic business systems safely and practically. The course covers SQL, NoSQL, RAG, files, APIs, routing, guardrails, testing, and application integration in one coherent project.

The course is designed for developers, data engineers, AI engineers, consultants, and technical freelancers who want to build useful AI applications on top of real business data instead of only building demos.

Who this course is for:

  • Backend developers who want to add AI chat capabilities to business applications.
  • Data engineers who want to expose databases, files, and APIs to LLM applications safely.
  • AI engineers who want to build practical RAG and Text-to-SQL applications with business data.
  • Software engineers who work with SQL Server, PostgreSQL, MongoDB, or API-driven systems.
  • Technical consultants and freelancers who want to build enterprise-style AI data assistant solutions.
  • DevOps and platform engineers who want to understand how LLM data apps are structured and deployed.