Skip to content
13 changes: 13 additions & 0 deletions notebooks/generative_ai/bq_dataframes_llm_kmeans.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,16 @@
"source": [
"from bigframes.ml.llm import PaLM2TextGenerator\n",
"\n",
<<<<<<< HEAD
"q_a_model = PaLM2TextGenerator()"
=======
"# Create a BigQuery Cloud resource connection\n",
"CONN_NAME = \"bqdf-llm\"\n",
"session = bf.get_global_session()\n",
"\n",
"connection = f\"{PROJECT_ID}.{REGION}.{CONN_NAME}\"\n",
"q_a_model = PaLM2TextGenerator(session=session, connection_name=connection)"
>>>>>>> origin/lmm-kmeans-notebook
]
},
{
Expand Down Expand Up @@ -1576,7 +1585,11 @@
"source": [
"# Summary and next steps\n",
"\n",
<<<<<<< HEAD
"You've used the ML and LLM capabilities of BigQuery DataFrames to help analyze and understand a large dataset of unstructured feedback.\n",
=======
"You've used BigQuery DataFrames' integration with LLM models (`bigframes.ml.llm`) to generate code samples, and have tranformed LLM output by creating and using a custom function in BigQuery DataFrames.\n",
>>>>>>> origin/lmm-kmeans-notebook
"\n",
"Learn more about BigQuery DataFrames in the [documentation](https://cloud.google.com/python/docs/reference/bigframes/latest) and find more sample notebooks in the [GitHub repo](https://github.com/googleapis/python-bigquery-dataframes/tree/main/notebooks)."
]
Expand Down