From f9710ad5d8fd1a634bd3ed2a3d792c97edf2237b Mon Sep 17 00:00:00 2001 From: Jay Allen Date: Thu, 25 Jan 2024 10:34:06 +0900 Subject: [PATCH 1/4] Changed model param value --- docs/examples/extracting_entities.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/examples/extracting_entities.ipynb b/docs/examples/extracting_entities.ipynb index 2decaec8f..72eecddbb 100644 --- a/docs/examples/extracting_entities.ipynb +++ b/docs/examples/extracting_entities.ipynb @@ -342,9 +342,10 @@ "source": [ "import openai\n", "\n", - "_, validated_response, *rest = guard(\n", - " openai.chat.completions.create,\n", + "raw_llm_response, validated_response, *rest = guard(\n", + " openai.completions.create,\n", " prompt_params={\"document\": content[:6000]},\n", + " model=\"gpt-3.5-turbo-instruct\",\n", " max_tokens=2048,\n", " temperature=0,\n", ")" @@ -1730,7 +1731,7 @@ ], "metadata": { "kernelspec": { - "display_name": "tiff-env", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -1744,9 +1745,8 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.17" + "version": "3.12.1" }, - "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "ef14f49bbc779f2fde64ca0552c2a99d578405052f5b73f61279551da311a8a1" @@ -1754,5 +1754,5 @@ } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } From fa2bf4b99f155443628a9173c327562bdf48f352 Mon Sep 17 00:00:00 2001 From: jayercule <148505887+jayercule@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:42:32 +0900 Subject: [PATCH 2/4] Fixing misspelled command "guardrails" had an extra d --- docs/hub/getting_started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hub/getting_started.md b/docs/hub/getting_started.md index de5e9610b..d29955a4c 100644 --- a/docs/hub/getting_started.md +++ b/docs/hub/getting_started.md @@ -21,7 +21,7 @@ guardrails configure You can download a guardrail from the Hub using the `install` command. For example, to download the `regex_match` guardrail, you can run: ```bash -gudardrails hub install hub://guardrails/regex_match +guardrails hub install hub://guardrails/regex_match ``` ## 4. Use the Guardrail @@ -70,4 +70,4 @@ guard = Guard().use( ) guard.validate("My favorite phone is BlackBerry.") # Guardrail Passes -``` \ No newline at end of file +``` From 2f37c9ba2c86a666b2bea9ad5f6ca76ffb2c64c6 Mon Sep 17 00:00:00 2001 From: zsimjee Date: Mon, 8 Apr 2024 06:52:14 -0700 Subject: [PATCH 3/4] Update getting_started.md From 10244e83120b9e1acd81a3b6a0f467c20214d2dd Mon Sep 17 00:00:00 2001 From: zsimjee Date: Mon, 8 Apr 2024 06:52:43 -0700 Subject: [PATCH 4/4] Update getting_started.md