Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 6cedf61

Browse files
Alexis CookAlexis Cook
authored andcommitted
small changes
1 parent b354b76 commit 6cedf61

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

notebooks/llmu/Rerank_Endpoint.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "56b0e523",
66
"metadata": {},
77
"source": [
8-
"# Rerank Endpoint\n",
8+
"# Reranking Unstructured and Semi-Structured Data\n",
99
"\n",
1010
"Enterprise data is often complex, and current systems have difficulty searching through multi-aspect and semi-structured data sources. The most useful data at companies is not often in simple document format, and semi-structured data formats such as JSON are common across enterprise applications.\n",
1111
"\n",
@@ -65,7 +65,7 @@
6565
"source": [
6666
"## Step 1: Define a JSON Dataset\n",
6767
"\n",
68-
"We begin by creating our dataset, which is a Python list. Each item is a different email represented as a Python dictionary with five fields. "
68+
"We begin by creating our dataset, which is a Python list of JSON objects. Each JSON object is a different email with five fields. "
6969
]
7070
},
7171
{
@@ -150,7 +150,7 @@
150150
"\n",
151151
"Now we are ready to call the Rerank endpoint, which will help us to find emails that are relevant to a particular query.\n",
152152
"\n",
153-
"We'll begin with a query about pricing from Mircosoft (MS). To pull relevant emails, the model needs to combine information from the `\"to\"` field (e.g., `\"[email protected]\"`) and the `\"text\"` field (e.g., `\"Sorry, but here is the pricing you asked for ...\"`)."
153+
"We'll begin with a query about pricing from Microsoft (MS). "
154154
]
155155
},
156156
{
@@ -168,6 +168,8 @@
168168
"id": "28664c16",
169169
"metadata": {},
170170
"source": [
171+
"To pull relevant emails, the model needs to combine information from the `\"to\"` field (e.g., `\"[email protected]\"`) and the `\"text\"` field (e.g., `\"Sorry, but here is the pricing you asked for ...\"`). \n",
172+
"\n",
171173
"We call the Rerank endpoint with `co.rerank()` and use five parameters: \n",
172174
"- `query` - The query that we will use to find relevant documents\n",
173175
"- `documents` - The set of documents (or, in this case, emails) to rerank\n",

0 commit comments

Comments
 (0)