|
@@ -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."
|