Skip to content

Commit 97c359c

Browse files
committed
Add Navrasa LLM download and explanation sections
1 parent 9fd5142 commit 97c359c

File tree

1 file changed

+33
-10
lines changed

1 file changed

+33
-10
lines changed

docs/examples/Hindi_Tamil_RAG_with_Navrsasa7B.ipynb

+33-10
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@
161161
"We'll use the 7B model here, the 2B model isn't great and was suffering from reading comprehension challenges."
162162
]
163163
},
164+
{
165+
"cell_type": "markdown",
166+
"metadata": {},
167+
"source": [
168+
"## Downloading the Navrasa LLM\n",
169+
"\n",
170+
"We'll download the Navrasa LLM from TeluguLLM-Labs. This is a 7B model with PEFT."
171+
]
172+
},
164173
{
165174
"cell_type": "code",
166175
"execution_count": null,
@@ -196,23 +205,21 @@
196205
]
197206
},
198207
{
199-
"cell_type": "code",
200-
"execution_count": null,
208+
"cell_type": "markdown",
201209
"metadata": {
202-
"id": "4T-n_3TAj2VA"
210+
"id": "LWVHPXIFzzgW"
203211
},
204-
"outputs": [],
205212
"source": [
206-
"questions, contexts = list(ds['question']), list(ds['context'])"
213+
"## Embed the Context into Vectors"
207214
]
208215
},
209216
{
210-
"cell_type": "markdown",
211-
"metadata": {
212-
"id": "LWVHPXIFzzgW"
213-
},
217+
"cell_type": "code",
218+
"execution_count": null,
219+
"metadata": {},
220+
"outputs": [],
214221
"source": [
215-
"## Embed the Context into Vectors"
222+
"questions, contexts = list(ds['question']), list(ds['context'])"
216223
]
217224
},
218225
{
@@ -310,6 +317,15 @@
310317
"search_client.upsert(collection_name=\"hindi_tamil_contexts\", points=context_points)"
311318
]
312319
},
320+
{
321+
"cell_type": "markdown",
322+
"metadata": {},
323+
"source": [
324+
"## Selecting a Question\n",
325+
"\n",
326+
"I've randomly selected a question here, with a specific and we then find the answer to it. We have the correct answer for it too -- so we can compare the two when you run the code."
327+
]
328+
},
313329
{
314330
"cell_type": "code",
315331
"execution_count": null,
@@ -345,6 +361,13 @@
345361
"len(search_context_text)"
346362
]
347363
},
364+
{
365+
"cell_type": "markdown",
366+
"metadata": {},
367+
"source": [
368+
"## Running the Model with a Question & Context"
369+
]
370+
},
348371
{
349372
"cell_type": "code",
350373
"execution_count": null,

0 commit comments

Comments
 (0)