Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Xia Xiao committed Jul 7, 2023
1 parent f5c3ee4 commit 292dd27
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sdk/python/generative-ai/rag/notebooks/db_copilot_with_rag.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@
"source": [
"ml_registry = MLClient(credential=credential, registry_name=\"azureml\")\n",
"\n",
"db_copilot_component = ml_registry.components.get(\"llm_ingest_db_to_faiss\", label=\"latest\")\n",
"db_copilot_component = ml_registry.components.get(\n",
" \"llm_ingest_db_to_faiss\", label=\"latest\"\n",
")\n",
"\n",
"print(db_copilot_component)"
]
Expand All @@ -275,10 +277,9 @@
"outputs": [],
"source": [
"from azure.ai.ml.dsl import pipeline\n",
"@pipeline(\n",
" name=f\"db_copilot_vector_pipeline_faiss\",\n",
" default_compute=\"serverless\"\n",
")\n",
"\n",
"\n",
"@pipeline(name=f\"db_copilot_vector_pipeline_faiss\", default_compute=\"serverless\")\n",
"def db_copilot_vector_pipeline_faiss(\n",
" aoai_connection: str,\n",
" db_datastore: str,\n",
Expand All @@ -300,7 +301,7 @@
" selected_tables=selected_tables,\n",
" max_sampling_rows=max_sampling_rows,\n",
" )\n",
" return {}\n"
" return {}"
]
},
{
Expand All @@ -320,7 +321,7 @@
" chat_aoai_deployment_name=aoai_completion_deployment_name,\n",
" embedding_aoai_deployment_name=aoai_embedding_deployment_name,\n",
" mlindex_dataset_name=asset_name,\n",
" selected_tables=\"[\\\"[dbo].[jobs]\\\"]\",\n",
" selected_tables='[\"[dbo].[jobs]\"]',\n",
" max_sampling_rows=3,\n",
")"
]
Expand Down

0 comments on commit 292dd27

Please sign in to comment.