From eaca7a3627d7f3b11d10bc29de0518241df9c455 Mon Sep 17 00:00:00 2001 From: Daniel Huang Date: Sun, 26 May 2024 02:57:07 -0700 Subject: [PATCH] update ref to groundedness fn --- .../frameworks/llama_index/llama_index_agents.ipynb | 6 +++--- .../trulens_eval/tests/groundedness_benchmark.ipynb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trulens_eval/examples/expositional/frameworks/llama_index/llama_index_agents.ipynb b/trulens_eval/examples/expositional/frameworks/llama_index/llama_index_agents.ipynb index 20960456d..19f10992b 100644 --- a/trulens_eval/examples/expositional/frameworks/llama_index/llama_index_agents.ipynb +++ b/trulens_eval/examples/expositional/frameworks/llama_index/llama_index_agents.ipynb @@ -48,7 +48,7 @@ }, "outputs": [], "source": [ - "#! pip install trulens_eval==0.24.0 llama_index==0.10.11 llama-index-tools-yelp==0.1.2 openai" + "#! pip install trulens_eval==0.24.0 llama_index==0.10.33 llama-index-tools-yelp==0.1.2 openai" ] }, { @@ -124,7 +124,7 @@ "source": [ "# Import and initialize our tool spec\n", "from llama_index.tools.yelp.base import YelpToolSpec\n", - "from llama_index.tools.tool_spec.load_and_search.base import LoadAndSearchToolSpec\n", + "from llama_index.core.tools.tool_spec.load_and_search.base import LoadAndSearchToolSpec\n", "\n", "# Add Yelp API key and client ID\n", "tool_spec = YelpToolSpec(\n", @@ -232,7 +232,7 @@ "source": [ "# imports required for tracking and evaluation\n", "from trulens_eval import Feedback, OpenAI, Tru, TruLlama, Select, OpenAI as fOpenAI\n", - "from trulens_eval.feedback import GroundTruthAgreement, Groundedness\n", + "from trulens_eval.feedback import GroundTruthAgreement\n", "\n", "tru = Tru()\n", "# tru.reset_database() # if needed" diff --git a/trulens_eval/trulens_eval/tests/groundedness_benchmark.ipynb b/trulens_eval/trulens_eval/tests/groundedness_benchmark.ipynb index 2df4de4fa..b731d6057 100644 --- a/trulens_eval/trulens_eval/tests/groundedness_benchmark.ipynb +++ b/trulens_eval/trulens_eval/tests/groundedness_benchmark.ipynb @@ -32,7 +32,7 @@ ], "source": [ "# Import groundedness feedback function\n", - "from trulens_eval.feedback import GroundTruthAgreement, Groundedness\n", + "from trulens_eval.feedback import GroundTruthAgreement\n", "from trulens_eval import TruBasicApp, Feedback, Tru, Select\n", "from test_cases import generate_summeval_groundedness_golden_set\n", "\n",