สรุปบทเรียน

Databricks กับ Python SDK

Avi Steinberg

Senior Software Engineer

สอบถามโมเดล AI ด้วย Databricks

WorkspaceClient.serving_endpoints.query()
Databricks กับ Python SDK

ใช้โมเดล AI รัน SQL บนข้อมูล Databricks

SQLDatabase.from_databricks(catalog, schema, warehouse_id)
SQLDatabaseToolkit(db, llm)
create_sql_agent(llm, toolkit, verbose)
agent.run("your question..")
Databricks กับ Python SDK

สร้างและจัดการคลัสเตอร์

w.clusters.create(spark_version, cluster_name)
w.clusters.delete(cluster_id)
w.clusters.start(cluster_id)
w.clusters.get(cluster_id)
Databricks กับ Python SDK

สร้างและจัดการ Job

w.jobs.create(
    name, 
    tasks=[
      jobs.Task(
          description,
          notebook_task=jobs.NotebookTask(notebook_path),
          task_key
          )
    ],
    schedule=jobs.CronSchedule(quartz_cron_expression,timezone_id),
    timeout_seconds, 
)
Databricks กับ Python SDK

นำทุกอย่างมารวมกัน

Databricks Job และโมเดล AI

Databricks กับ Python SDK

ยินดีด้วย!

Databricks กับ Python SDK

Preparing Video For Download...