Shrnutí

Databricks with the Python SDK

Avi Steinberg

Senior Software Engineer

Dotazování na modely AI pomocí Databricks

WorkspaceClient.serving_endpoints.query()
Databricks with the Python SDK

Dotazování modelů AI na data v Databricks pomocí SQL

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

Vytváření a správa clusterů

w.clusters.create(spark_version, cluster_name)
w.clusters.delete(cluster_id)
w.clusters.start(cluster_id)
w.clusters.get(cluster_id)
Databricks with the Python SDK

Vytváření a správa úloh

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 with the Python SDK

Vše dohromady

Úloha Databricks a model AI

Databricks with the Python SDK

Gratulujeme!

Databricks with the Python SDK

Preparing Video For Download...