From 502889ebfa448ffeee5491541b7f3271c217e370 Mon Sep 17 00:00:00 2001 From: Josh Reini <60949774+joshreini1@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:48:12 -0400 Subject: [PATCH] Fix paul_graham_essay.txt links to new location (#1024) * Update test_tru_llama.py * Update llama_index_quickstart.ipynb * Update test_tru.py * Update all_tools.ipynb * Update all_tools.py * Update llama_index_quickstart.ipynb * Update all_tools.ipynb * Update all_tools.py * Update dev_notebook.ipynb --- docs/trulens_eval/all_tools.ipynb | 4 ++-- trulens_eval/examples/experimental/dev_notebook.ipynb | 2 +- trulens_eval/examples/quickstart/llama_index_quickstart.ipynb | 4 ++-- trulens_eval/generated_files/all_tools.py | 4 ++-- trulens_eval/tests/e2e/test_tru.py | 2 +- trulens_eval/tests/e2e/test_tru_llama.py | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/trulens_eval/all_tools.ipynb b/docs/trulens_eval/all_tools.ipynb index 8c7438ccc..11cb631c0 100644 --- a/docs/trulens_eval/all_tools.ipynb +++ b/docs/trulens_eval/all_tools.ipynb @@ -503,7 +503,7 @@ "\n", "This example uses the text of Paul Graham’s essay, [“What I Worked On”](https://paulgraham.com/worked.html), and is the canonical llama-index example.\n", "\n", - "The easiest way to get it is to [download it via this link](https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt) and save it in a folder called data. You can do so with the following command:" + "The easiest way to get it is to [download it via this link](https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt) and save it in a folder called data. You can do so with the following command:" ] }, { @@ -512,7 +512,7 @@ "metadata": {}, "outputs": [], "source": [ - "!wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/" + "!wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/" ] }, { diff --git a/trulens_eval/examples/experimental/dev_notebook.ipynb b/trulens_eval/examples/experimental/dev_notebook.ipynb index 7923da68e..126e0a79b 100644 --- a/trulens_eval/examples/experimental/dev_notebook.ipynb +++ b/trulens_eval/examples/experimental/dev_notebook.ipynb @@ -76,7 +76,7 @@ "from llama_index.core import VectorStoreIndex\n", "if not os.path.exists(\"data/paul_graham_essay.txt\"):\n", " os.system(\n", - " 'wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/'\n", + " 'wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/'\n", " )\n", "\n", "documents = SimpleDirectoryReader(\"data\").load_data()\n", diff --git a/trulens_eval/examples/quickstart/llama_index_quickstart.ipynb b/trulens_eval/examples/quickstart/llama_index_quickstart.ipynb index 8c45cc553..6ee54ace0 100644 --- a/trulens_eval/examples/quickstart/llama_index_quickstart.ipynb +++ b/trulens_eval/examples/quickstart/llama_index_quickstart.ipynb @@ -79,7 +79,7 @@ "\n", "This example uses the text of Paul Graham’s essay, [“What I Worked On”](https://paulgraham.com/worked.html), and is the canonical llama-index example.\n", "\n", - "The easiest way to get it is to [download it via this link](https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt) and save it in a folder called data. You can do so with the following command:" + "The easiest way to get it is to [download it via this link](https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt) and save it in a folder called data. You can do so with the following command:" ] }, { @@ -88,7 +88,7 @@ "metadata": {}, "outputs": [], "source": [ - "!wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/" + "!wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/" ] }, { diff --git a/trulens_eval/generated_files/all_tools.py b/trulens_eval/generated_files/all_tools.py index f49ea62c7..d0cf41614 100644 --- a/trulens_eval/generated_files/all_tools.py +++ b/trulens_eval/generated_files/all_tools.py @@ -299,12 +299,12 @@ def display_call_stack(data): # # This example uses the text of Paul Graham’s essay, [“What I Worked On”](https://paulgraham.com/worked.html), and is the canonical llama-index example. # -# The easiest way to get it is to [download it via this link](https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt) and save it in a folder called data. You can do so with the following command: +# The easiest way to get it is to [download it via this link](https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt) and save it in a folder called data. You can do so with the following command: # In[ ]: get_ipython().system( - 'wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/' + 'wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/' ) # ### Create Simple LLM Application diff --git a/trulens_eval/tests/e2e/test_tru.py b/trulens_eval/tests/e2e/test_tru.py index 96c81133f..0c1c62134 100644 --- a/trulens_eval/tests/e2e/test_tru.py +++ b/trulens_eval/tests/e2e/test_tru.py @@ -152,7 +152,7 @@ def _create_llama(self): from llama_index.core import SimpleDirectoryReader from llama_index.core import VectorStoreIndex os.system( - 'wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/' + 'wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/' ) documents = SimpleDirectoryReader("data").load_data() diff --git a/trulens_eval/tests/e2e/test_tru_llama.py b/trulens_eval/tests/e2e/test_tru_llama.py index 1802a9c29..a53f8ef69 100644 --- a/trulens_eval/tests/e2e/test_tru_llama.py +++ b/trulens_eval/tests/e2e/test_tru_llama.py @@ -28,7 +28,7 @@ def setUp(self): from llama_index.core import SimpleDirectoryReader from llama_index.core import VectorStoreIndex os.system( - 'wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/' + 'wget https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt -P data/' ) documents = SimpleDirectoryReader("data").load_data()