Browse Source

Mintor typos

sekyonda 1 year ago
parent
commit
238f6a4630

+ 4 - 4
demo_apps/HelloLlamaCloud.ipynb

@@ -6,10 +6,10 @@
    "metadata": {},
    "source": [
     "## This demo app shows:\n",
-    "* How to run Llama2 in the cloud hosted on Replicate.\n",
-    "* How to use LangChain to ask Llama general questions and follow up questions.\n",
-    "* How to use LangChain to load a recent PDF doc - the Llama2 paper pdf - and chat about it. This is the well known RAG (Retrieval Augmented Generation) method to let LLM such as Llama2 be able to answer questions about the data not publicly available when Llama2 was trained, or about your own data. RAG is one way to prevent LLM's hallucination. \n",
-    "* You should also review the [HelloLlamaLocal](HelloLlamaLocal.ipynb) notebook for more information on RAG.\n",
+    "* How to run Llama2 in the cloud hosted on Replicate\n",
+    "* How to use LangChain to ask Llama general questions and follow up questions\n",
+    "* How to use LangChain to load a recent PDF doc - the Llama2 paper pdf - and chat about it. This is the well known RAG (Retrieval Augmented Generation) method to let LLM such as Llama2 be able to answer questions about the data not publicly available when Llama2 was trained, or about your own data. RAG is one way to prevent LLM's hallucination\n",
+    "* You should also review the [HelloLlamaLocal](HelloLlamaLocal.ipynb) notebook for more information on RAG\n",
     "\n",
     "**Note** We will be using Replicate to run the examples here. You will need to first sign in with Replicate with your github account, then create a free API token [here](https://replicate.com/account/api-tokens) that you can use for a while. \n",
     "After the free trial ends, you will need to enter billing info to continue to use Llama2 hosted on Replicate."

+ 3 - 3
demo_apps/LiveData.ipynb

@@ -6,10 +6,10 @@
    "metadata": {},
    "source": [
     "## This demo app shows:\n",
-    "* How to use LlamaIndex, an open source library to help you build custom data augmented LLM applications.\n",
-    "* How to ask Llama questions about recent live data via the You.com live search API and LlamaIndex.\n",
+    "* How to use LlamaIndex, an open source library to help you build custom data augmented LLM applications\n",
+    "* How to ask Llama questions about recent live data via the You.com live search API and LlamaIndex\n",
     "\n",
-    "The LangChain package is used to facilitate the call to Llama2 hosted on Replicate.\n",
+    "The LangChain package is used to facilitate the call to Llama2 hosted on Replicate\n",
     "\n",
     "**Note** We will be using Replicate to run the examples here. You will need to first sign in with Replicate with your github account, then create a free API token [here](https://replicate.com/account/api-tokens) that you can use for a while. \n",
     "After the free trial ends, you will need to enter billing info to continue to use Llama2 hosted on Replicate."

+ 1 - 1
demo_apps/Llama2_Gradio.ipynb

@@ -12,7 +12,7 @@
     "To get the Replicate token: \n",
     "\n",
     "- You will need to first sign in with Replicate with your github account\n",
-    "- Then create a free API token [here](https://replicate.com/account/api-tokens) that you can use for a while. \n",
+    "- Then create a free API token [here](https://replicate.com/account/api-tokens) that you can use for a while \n",
     "\n",
     "**Note** After the free trial ends, you will need to enter billing info to continue to use Llama2 hosted on Replicate.\n",
     "\n",

+ 2 - 2
demo_apps/StructuredLlama.ipynb

@@ -6,8 +6,8 @@
    "metadata": {},
    "source": [
     "## This demo shows how to use LangChain's SQLDatabaseChain with Llama2 to query structured data stored in a SQL DB.  \n",
-    "* We use the 2023-24 NBA roster info saved in a SQLite DB to show you how to ask Llama2 questions about your favorite teams or players. \n",
-    "* At the time of writing this, the SQLDatabaseChain API implementation is still in the langchain_experimental package. With this in mind you will see more issues that come with using the cutting edge experimental features, and how we succeed resolving some of the issues but fail on some others."
+    "* We use the 2023-24 NBA roster info saved in a SQLite DB to show you how to ask Llama2 questions about your favorite teams or players \n",
+    "* At the time of writing this, the SQLDatabaseChain API implementation is still in the langchain_experimental package. With this in mind you will see more issues that come with using the cutting edge experimental features, and how we succeed resolving some of the issues but fail on some others"
    ]
   },
   {

+ 7 - 7
demo_apps/VideoSummary.ipynb

@@ -6,9 +6,9 @@
    "metadata": {},
    "source": [
     "## This demo app shows:\n",
-    "* How to use LangChain's YoutubeLoader to retrieve the caption in a YouTube video.\n",
-    "* How to ask Llama to summarize the content (per the Llama's input size limit) of the video in a naive way using LangChain's stuff method.\n",
-    "* How to bypass the limit of Llama's max input token size by using a more sophisticated way using LangChain's map_reduce and refine methods - see [here](https://python.langchain.com/docs/use_cases/summarization) for more info."
+    "* How to use LangChain's YoutubeLoader to retrieve the caption in a YouTube video\n",
+    "* How to ask Llama to summarize the content (per the Llama's input size limit) of the video in a naive way using LangChain's stuff method\n",
+    "* How to bypass the limit of Llama's max input token size by using a more sophisticated way using LangChain's map_reduce and refine methods - see [here](https://python.langchain.com/docs/use_cases/summarization) for more info"
    ]
   },
   {
@@ -17,10 +17,10 @@
    "metadata": {},
    "source": [
     "We start by installing the necessary packages:\n",
-    "- [youtube-transcript-api](https://pypi.org/project/youtube-transcript-api/) API to get transcript/subtitles of a YouTube video.\n",
-    "- [langchain](https://python.langchain.com/docs/get_started/introduction) provides necessary RAG tools for this demo.\n",
-    "- [tiktoken](https://github.com/openai/tiktoken) BytePair Encoding tokenizer.\n",
-    "- [pytube](https://pytube.io/en/latest/) Utility for downloading YouTube videos.\n",
+    "- [youtube-transcript-api](https://pypi.org/project/youtube-transcript-api/) API to get transcript/subtitles of a YouTube video\n",
+    "- [langchain](https://python.langchain.com/docs/get_started/introduction) provides necessary RAG tools for this demo\n",
+    "- [tiktoken](https://github.com/openai/tiktoken) BytePair Encoding tokenizer\n",
+    "- [pytube](https://pytube.io/en/latest/) Utility for downloading YouTube videos\n",
     "\n",
     "**Note** This example uses Replicate to host the Llama model. If you have not set up/or used Replicate before, we suggest you take a look at the [HelloLlamaCloud](HelloLlamaCloud.ipynb) example for information on how to set up Replicate before continuing with this example.\n",
     "If you do not want to use Replicate, you will need to make some changes to this notebook as you go along."