fix paths

pull/1106/head
Shahules786 3 months ago
parent 1229a3ee8e
commit 40fdea23be

@ -72,7 +72,13 @@
"outputs": [],
"source": [
"import os\n",
"os.environ[\"OPENAI_API_KEY\"] = \"<your-open-api-key>\""
"os.environ[\"OPENAI_API_KEY\"] = \"<your-open-api-key>\"\n",
"\n",
"try:\n",
" import google.colab\n",
" PATH = \"/content/prompt-engineering-guide-papers\"\"\n",
"except:\n",
" PATH = \"./prompt-engineering-guide-papers\""
]
},
{
@ -96,7 +102,7 @@
"from ragas.testset.generator import TestsetGenerator\n",
"from ragas.testset.evolutions import simple, reasoning, multi_context, conditional\n",
"\n",
"loader = DirectoryLoader(\"./prompt-engineering-guide-papers\", use_multithreading=True, silent_errors=True,sample_size=5)\n",
"loader = DirectoryLoader(PATH, use_multithreading=True, silent_errors=True,sample_size=5)\n",
"documents = loader.load()\n",
"\n",
"for document in documents:\n",
@ -526,7 +532,7 @@
"id": "840a2213-7e50-4774-b702-1b0c82c54d4f",
"metadata": {},
"source": [
"Upnext we are going into dive into how to use this to [evaluate your RAG](https://github.com/openai/openai-cookbook/blob/d4238f85496e78b547f5a159be18c1dd07fae666/examples/evaluation/ragas/openai-ragas-eval-cookbook.ipynb).\n",
"Upnext we are going into dive into how to use this to [evaluate your RAG](https://github.com/openai/openai-cookbook/examples/evaluation/ragas/openai-ragas-eval-cookbook.ipynb).\n",
"\n",
"**If you liked this tutorial, checkout [ragas](https://github.com/explodinggradients/ragas) and consider leaving a star**"
]

Loading…
Cancel
Save