Skip to content

Commit

Permalink
Fix paul_graham_essay.txt links to new location (#1024)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
joshreini1 authored Mar 22, 2024
1 parent 0f9901e commit 502889e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/trulens_eval/all_tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
]
},
{
Expand All @@ -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/"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion trulens_eval/examples/experimental/dev_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions trulens_eval/examples/quickstart/llama_index_quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
]
},
{
Expand All @@ -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/"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions trulens_eval/generated_files/all_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion trulens_eval/tests/e2e/test_tru.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion trulens_eval/tests/e2e/test_tru_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 502889e

Please sign in to comment.