Skip to content

Commit

Permalink
Notebook updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pramitchoudhary committed Jan 27, 2024
1 parent 580d582 commit e582b31
Show file tree
Hide file tree
Showing 6 changed files with 1,163 additions and 902 deletions.
4 changes: 2 additions & 2 deletions examples/notebooks/Guardrails_SQL_injection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"metadata": {},
"outputs": [],
"source": [
"# !pip install --force-reinstall sql_sidekick-0.2.0-py3-none-any.whl"
"# !pip install --force-reinstall sql_sidekick-0.x.x-py3-none-any.whl"
]
},
{
Expand Down Expand Up @@ -89,7 +89,7 @@
"os.environ['OPENAI_API_KEY'] = \"\"\n",
"os.environ['H2O_BASE_MODEL_URL'] = ''\n",
"os.environ['H2O_BASE_MODEL_API_KEY'] = \"\"\n",
"os.environ['RECOMMENDATION_MODEL_REMOTE_URL'] = \"\" # e.g. https://<>.h2ogpte.h2o.ai\n",
"os.environ['RECOMMENDATION_MODEL_REMOTE_URL'] = \"https://h2ogpte.genai.h2o.ai\" # e.g. https://<>.h2ogpte.h2o.ai\n",
"os.environ['RECOMMENDATION_MODEL_API_KEY'] = \"\"\n",
"\n",
"\n",
Expand Down
9 changes: 5 additions & 4 deletions examples/notebooks/databricks_db.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"metadata": {},
"outputs": [],
"source": [
"#!pip install --force-reinstall sql_sidekick-0.1.9-py3-none-any.whl"
"# https://github.com/h2oai/sql-sidekick/releases\n",
"#!pip install --force-reinstall sql_sidekick-0.x.x-py3-none-any.whl"
]
},
{
Expand Down Expand Up @@ -140,14 +141,14 @@
"# env variables\n",
"import os\n",
"\n",
"os.environ['DATABRICKS_HOST'] = \"dbc-06a5ccf6-a21f.cloud.databricks.com\" # e.g. <>.cloud.databricks.com\n",
"os.environ['DATABRICKS_CLUSTER_ID'] = \"0112-211956-tsltsbz5\" # e.g. 0232-316956-tsltsyz5\n",
"os.environ['DATABRICKS_HOST'] = \"<>.cloud.databricks.com\" # e.g. <>.cloud.databricks.com\n",
"os.environ['DATABRICKS_CLUSTER_ID'] = \"0112-211956-zzzzz\" # e.g. 0232-316956-tsltsyz5\n",
"os.environ['DATABRICKS_TOKEN'] = \"\"\n",
"os.environ['OPENAI_API_KEY'] = \"\"\n",
"\n",
"os.environ['H2O_BASE_MODEL_URL'] = 'http://38.128.233.247'\n",
"os.environ['H2O_BASE_MODEL_API_KEY'] = \"\"\n",
"os.environ['RECOMMENDATION_MODEL_REMOTE_URL'] = \"\" # e.g. https://<>.h2ogpte.h2o.ai\n",
"os.environ['RECOMMENDATION_MODEL_REMOTE_URL'] = \"https://h2ogpte.genai.h2o.ai\" # e.g. https://<>.h2ogpte.h2o.ai\n",
"os.environ['RECOMMENDATION_MODEL_API_KEY'] = \"\""
]
},
Expand Down
Loading

0 comments on commit e582b31

Please sign in to comment.