From 7b14500fa41a37faff764742741cca4c6406e580 Mon Sep 17 00:00:00 2001 From: Baur Date: Thu, 6 Jun 2024 12:23:30 -0700 Subject: [PATCH] [llamapack] update link for ZenGuard colab (#13989) * created the llama pack zenguard-guardrails package using llamaindex-cli * created poetry.lock file after installing dependencies using "poetry install" * added authors to the authors field in block [tool.poetry] in pyproject.toml * a file "base.py" was created along the path "llama_index/packs/zenguard_guardrails/" and in it the ZenguardGuardrailsPack class with unimplemented methods was declared, which inherits from the BaseLlamaPack class * added import of the "ZenguardGuardrailsPack" class to "__init__.py" along the path "llama_index/packs/zenguard_guardrails/" * uncommented the [tool.llama hub] block and added "llama_index.packs.zenguard_guardrails" to the "import path" field * The block "[tool.llama hub.class authors]" was uncommented and the class "ZenguardGuardrailsPacks" and the author of the class "yaksh0nti" were indicated * a basic unit test was written to check that the class "ZenguardGuardrailsPack" is inherited from the class "BaseLlamaPack" * uncommented contains_example field in block tool.llamahub in pyproject.toml * renamed class ZenguardGuardrailsPack to ZenGuardPack and implemented * wroted unit tests * renamed fixture with zenguard pack * updated README.md * created zenguarg_guardrails.ipynb file * added a link to the ipynb file in google colab * renamed zenguard_guardrails to zenguard * updated python version to 3.9 and install zenguard packages * changes by linting and formating * [zenguard] update the package * pants * Update pyproject.toml * [llama-index] do not track poetry.lock * Update BUILD * renamed zenguard llamapack package name and description for match readme installing instruction * change colab link to correct in zenguard.ipynb --------- Co-authored-by: Nuradil Co-authored-by: Andrei Fajardo <92402603+nerdai@users.noreply.github.com> Co-authored-by: Nuradil <133880216+yaksh0nti@users.noreply.github.com> --- .../llama-index-packs-zenguard/examples/zenguard.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama-index-packs/llama-index-packs-zenguard/examples/zenguard.ipynb b/llama-index-packs/llama-index-packs-zenguard/examples/zenguard.ipynb index e69b5e1f19e77..30d33e27c9b1b 100644 --- a/llama-index-packs/llama-index-packs-zenguard/examples/zenguard.ipynb +++ b/llama-index-packs/llama-index-packs-zenguard/examples/zenguard.ipynb @@ -6,7 +6,7 @@ "source": [ "# ZenGuard AI LLamaPack\n", "\n", - " \"Open\n", + " \"Open\n", "\n", " This LlamaPack lets you quickly set up [ZenGuard AI](https://www.zenguard.ai/) in your LlamaIndex-powered application. The ZenGuard AI provides ultrafast guardrails to protect your GenAI application from:\n", "\n",