fix notebook

This commit is contained in:
Ray 2025-08-21 17:39:24 +08:00
parent faeeb81972
commit 368ab3873a

View file

@ -33,26 +33,26 @@
"id": "Ebvn5qfpcG1K" "id": "Ebvn5qfpcG1K"
}, },
"source": [ "source": [
"# 🧠 Simple Vectorless RAG with PageIndex\n", "# 🧠 Simple Vectorless RAG with PageIndex"
"\n",
"PageIndex generates a searchable tree structure of documents, enabling reasoning-based retrieval through tree search — without vectors.\n",
"\n",
"- **No Vectors Needed**: Uses document structure and LLM reasoning for retrieval.\n",
"- **No Chunking Needed**: Documents are organized into natural sections rather than artificial chunks.\n",
"- **Human-like Retrieval**: Simulates how human experts navigate and extract knowledge from complex documents. \n",
"- **Transparent Retrieval Process**: Retrieval based on reasoning — say goodbye to approximate semantic search ('vibe retrieval')."
] ]
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"PageIndex generates a searchable tree structure of documents, enabling reasoning-based retrieval through tree search — without vectors.\n",
"\n",
"- **No Vectors Needed**: Uses document structure and LLM reasoning for retrieval.\n",
"- **No Chunking Needed**: Documents are organized into natural sections rather than artificial chunks.\n",
"- **Human-like Retrieval**: Simulates how human experts navigate and extract knowledge from complex documents. \n",
"- **Transparent Retrieval Process**: Retrieval based on reasoning — say goodbye to approximate semantic search (\"vibe retrieval\").\n",
"\n",
"## 📝 About this Notebook\n", "## 📝 About this Notebook\n",
"\n", "\n",
"This notebook demonstrates a simple example of **vectorless RAG** with PageIndex. You will learn:\n", "This notebook demonstrates a simple example of **vectorless RAG** with PageIndex. You will learn:\n",
"- [x] How to build a PageIndex tree structure of a document.\n", "- [x] Build a PageIndex tree structure of a document.\n",
"- [x] How to perform reasoning-based retrieval with tree search.\n", "- [x] Perform reasoning-based retrieval with tree search.\n",
"- [x] How to generate the answer based on the retrieved context." "- [x] Generate answers based on the retrieved context."
] ]
}, },
{ {
@ -335,9 +335,14 @@
"id": "USoCLOiQcG1O" "id": "USoCLOiQcG1O"
}, },
"source": [ "source": [
"## Step 2: Reasoning-Based Retrieval with Tree Search\n", "## Step 2: Reasoning-Based Retrieval with Tree Search"
"\n", ]
"### Use LLM for tree search and decide which nodes might contain relevant context" },
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Use LLM for tree search and identify nodes that might contain relevant context"
] ]
}, },
{ {
@ -457,8 +462,13 @@
"id": "10wOZDG_cG1O" "id": "10wOZDG_cG1O"
}, },
"source": [ "source": [
"## Step 3: Answer Generation\n", "## Step 3: Answer Generation"
"\n", ]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Extract relevant context from retrieved nodes" "### Extract relevant context from retrieved nodes"
] ]
}, },