Skip to content

Commit 502e21d

Browse files
berkecanrizaiManul from Pathway
authored andcommitted
langgraph nb changes (#8070)
GitOrigin-RevId: 1971dd957b60a6d6f6bcf70717a92e423ccb9e68
1 parent 0d5e7b6 commit 502e21d

File tree

2 files changed

+62
-23
lines changed

2 files changed

+62
-23
lines changed

cookbooks/self-rag-agents/pathway_deploy_langgraph_agents.ipynb

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "d58d3552-9168-4f0f-8a79-4dbaa4a01bbf",
6+
"metadata": {
7+
"tags": []
8+
},
9+
"source": [
10+
"> The following cookbook is an adaption of the original [LangGraph cookbook](https://github.com/langchain-ai/langgraph/blob/e3ca7bb3e9d34b09633852f4d08d55f6dcd4364b/examples/rag/langgraph_self_rag.ipynb)\n",
11+
"\n"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"id": "b3e94de1-ca3d-4956-b212-4a558b68062a",
@@ -26,6 +37,20 @@
2637
"OpenAI is used for embeddings during the indexing stage and to power the LangGraph agent."
2738
]
2839
},
40+
{
41+
"cell_type": "markdown",
42+
"id": "9e055de9-723f-44e3-ad39-70cc5f8932bf",
43+
"metadata": {},
44+
"source": [
45+
"Magic library is used for detecting file types in the `ParseUnstructured` module.\n",
46+
"\n",
47+
"If you are running this notebook on **MacOS**, you can install it with:\n",
48+
"> `brew install libmagic`\n",
49+
"\n",
50+
"If you are running the notebook on **colab** or any **linux** environment, you can install it with:\n",
51+
"> `apt-get install libmagic1`"
52+
]
53+
},
2954
{
3055
"cell_type": "code",
3156
"execution_count": null,
@@ -351,7 +376,9 @@
351376
},
352377
"cell_type": "markdown",
353378
"id": "5894115c-0323-4098-83be-da49d949a53c",
354-
"metadata": {},
379+
"metadata": {
380+
"tags": []
381+
},
355382
"source": [
356383
"### Self-RAG\n",
357384
"\n",
@@ -385,7 +412,7 @@
385412
"\n",
386413
"We will implement some of these ideas from scratch using [LangGraph](https://langchain-ai.github.io/langgraph/).\n",
387414
"![image.png](attachment:76895b7a-fcc5-4758-9fbb-510b17fdeda4.png)\n",
388-
"> Figure taken from the LangGraph cookbook"
415+
"> Figure and the explanation taken from the [LangGraph cookbook](https://github.com/langchain-ai/langgraph/blob/e3ca7bb3e9d34b09633852f4d08d55f6dcd4364b/examples/rag/langgraph_self_rag.ipynb)"
389416
]
390417
},
391418
{
@@ -1001,14 +1028,6 @@
10011028
"\n",
10021029
"Thus, whenever you POST a `\"user_query\"` to the `/agent` endpoint, the agent pipeline runs, and returns the final answer."
10031030
]
1004-
},
1005-
{
1006-
"cell_type": "markdown",
1007-
"id": "512f527d-400e-44af-add3-30a1b5a3c844",
1008-
"metadata": {},
1009-
"source": [
1010-
"> This notebook was inspired by this [LangGraph cookbook](https://github.com/langchain-ai/langgraph/blob/e3ca7bb3e9d34b09633852f4d08d55f6dcd4364b/examples/rag/langgraph_self_rag.ipynb)"
1011-
]
10121031
}
10131032
],
10141033
"metadata": {

cookbooks/self-rag-agents/pathway_langgraph_agentic_rag.ipynb

Lines changed: 33 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)