Skip to content

Commit e680762

Browse files
committed
update based on PR feedback
1 parent 72351f0 commit e680762

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

recipes/use_cases/LiveData.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"!pip install llama-index-core\n",
2424
"!pip install llama-index-llms-replicate\n",
2525
"!pip install llama-index-embeddings-huggingface\n",
26-
"!pip install tavily-python"
26+
"!pip install tavily-python\n",
27+
"!pip install replicate"
2728
]
2829
},
2930
{

recipes/use_cases/VideoSummary.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"metadata": {},
3333
"outputs": [],
3434
"source": [
35-
"!pip install langchain youtube-transcript-api tiktoken pytube"
35+
"!pip install langchain youtube-transcript-api tiktoken pytube replicate"
3636
]
3737
},
3838
{
@@ -260,7 +260,7 @@
260260
"2. Loop over each subsequent sub-document, pass the previous summary with the current sub-document to generate a refined new summary;\n",
261261
"3. Return the final summary generated on the final sub-document as the final answer - the summary of the whole content.\n",
262262
"\n",
263-
"An example prompt template for each call in step 2 is:\n",
263+
"An example prompt template for each call in step 2, which gets used under the hood by LangChain, is:\n",
264264
"```\n",
265265
"Your job is to produce a final summary.\n",
266266
"We have provided an existing summary up to a certain point:\n",
@@ -279,6 +279,8 @@
279279
"metadata": {},
280280
"outputs": [],
281281
"source": [
282+
"from langchain.chains.summarize import load_summarize_chain\n",
283+
"\n",
282284
"chain = load_summarize_chain(llm, chain_type=\"refine\")\n",
283285
"chain.run(split_docs)"
284286
]

0 commit comments

Comments
 (0)