Introduction To AI Agents

What is an AI agent, and how is it different from other AI systems?


  • An AI agent uses a large language model (LLM) to interpret a goal, decide next steps, call tools, and use the results to complete a task.
  • Its core building blocks are LLM (reasoning and decisions), tools (access to functions, APIs, data and models), memory/state (conversation and task context), and planning/control logic (selecting and sequencing actions).
  • AI system: broad term for software using AI. Compound AI system: combines multiple components, such as retrieval, models and code. Agentic AI: a system where an LLM can dynamically choose actions. AI agent: an individual component carrying out those decisions.
  • A conversational agent interacts through dialogue; a tool-calling agent can invoke external capabilities rather than only generating text.
  • Example: a customer asks about a return. An agent can identify the product, retrieve its policy, check the customer’s order history and compose an answer grounded in those results.

How do static workflows, agents and multi-agent systems differ?


  • A static workflow follows a predefined sequence; its control flow is mostly deterministic, even if one step uses an LLM.
  • An agentic workflow can iteratively decide what to do next based on the goal and previous tool results; its execution path may vary.
  • A multi-agent system delegates tasks to specialized agents (for example, policy lookup, product research and customer support), often coordinated by a supervisor/router.
  • Agents are flexible but can be less predictable, more expensive and harder to test than fixed workflows. Use a deterministic workflow when the steps are known and an agent when the next step depends on information discovered during execution.

What execution patterns do agents use?


  • Reasoning: interpret the request and select an appropriate next step.
  • ReAct (Reason + Act): repeatedly decide on an action, call a tool, observe its output and decide whether more work is needed.
  • Plan-and-solve: formulate a multi-step plan, execute it, and revise it when results require changes.
  • Retrieval-augmented generation (RAG): search a knowledge base or vector index, then use retrieved evidence to answer; this can be one tool within an agent.
  • Common use cases include customer support, document processing, enterprise knowledge search, and explaining analytics or ML results. Databricks AI/BI Genie and coding assistants illustrate related agentic experiences.
  • Good practice: restrict tools to necessary permissions, validate tool arguments and results, log executions, and require human approval for sensitive or irreversible actions.

What are the course modules and Free Edition considerations?


  • The course progresses through introduction, building agents, and deployment and evaluation.
  • Keep the lesson notebook open beside the video to follow architecture diagrams and definitions; early notebooks are largely conceptual.
  • Databricks Free Edition can have limited availability, quotas or caps for Model Serving and Vector Search. Check the workspace’s current limits before provisioning endpoints; endpoint creation may fail or be blocked by quotas.
  • Provision only what you need, and delete unused resources where supported to avoid unnecessary consumption.

How do you prepare Unity Catalog assets for the course?


  • Run the provided setup notebook first: later lessons expect its exact objects and sample data. You need appropriate Unity Catalog creation privileges.
  • The expected namespace is catalog dbacademy, schema get_started_agents, and volume customer_service.
  • Upload the course bundle’s Data Files directory to the volume (for example, through Catalog Explorer’s volume upload interface).
  • The notebook should load these tables:
    • dbacademy.get_started_agents.cust_service_data — customer support history.
    • dbacademy.get_started_agents.policies — policy information.
    • dbacademy.get_started_agents.product_docs — product documents.
    • dbacademy.get_started_agents.product_docs_indexed — documents with precomputed embedding vectors.
  • It should also create Unity Catalog SQL functions get_service_history and get_return_policy; agents can later invoke these as tools.
  • Enable Delta Change Data Feed on product_docs_indexed as directed by the setup notebook; it supports tracking source changes for Delta Sync Vector Search.
  • To inspect the resulting tables, use SQL such as:
SHOW TABLES IN dbacademy.get_started_agents;
SELECT * FROM dbacademy.get_started_agents.product_docs LIMIT 10;
SELECT * FROM dbacademy.get_started_agents.cust_service_data LIMIT 10;
SHOW FUNCTIONS IN dbacademy.get_started_agents;
  • Use Catalog Explorer to verify the volume, tables, functions and their schemas. The vector column __db_indexed_doc_vector should contain 1024-dimensional embeddings; embeddings are numeric representations used for semantic similarity search.

How do you create the Vector Search endpoint and index?


  • In the workspace, open Compute → Vector Search (or the equivalent Vector Search page in the current UI) and create endpoint vs_endpoint_1.
  • Endpoint provisioning may take 10–15 minutes or longer. Confirm it is ready before creating or querying the index.
  • Create a Delta Sync index called product_docs_index from source table dbacademy.get_started_agents.product_docs_indexed.
  • Configure primary key = product_id; choose existing embeddings, column __db_indexed_doc_vector, dimension = 1024; select Triggered sync.
  • Triggered sync means index updates occur when a sync is invoked, not automatically on every source-table change. Run a sync after changing source documents.
  • Verify the index becomes ready and contains records. Query it with a natural-language embedding-based similarity search in subsequent agent exercises.
  • A Vector Search endpoint provides the compute/service hosting indexes; an index stores the searchable vectors and links them to source records.

How do you verify setup and troubleshoot common issues?


  • Confirm that the catalog/schema, customer_service volume, four tables, two SQL functions, Vector Search endpoint and product_docs_index all exist.
  • Inspect source data and confirm product_id is populated and uniquely identifies records in the index source.
  • If an index cannot be created, check endpoint readiness, Free Edition limits, Unity Catalog permissions, source table Change Data Feed, embedding column type and the required 1024 dimensions.
  • If searches return outdated results, check whether Triggered sync has run since the latest source-table updates.
  • If SQL tools are missing, rerun the relevant setup-notebook cells and inspect their errors; creating the Vector Search index does not create SQL functions.
  • Do not assume the supplied sample files exist automatically: they must be uploaded from the course bundle unless the setup notebook performs that step.

What should you remember before building your first agent?


  • Agents follow a reason → act with tools → observe → repeat loop, using memory and planning as needed.
  • Start with narrowly scoped, well-defined tools and reliable data sources; inspect tool outputs instead of trusting unsupported model assertions.
  • The course environment supplies two kinds of retrieval: structured SQL functions for support history/policies and semantic Vector Search for product documents.
  • Evaluate agents for answer correctness, tool selection, permissions, latency and failure handling—not just fluent responses.