Skip to content

Commit 62cf71b

Browse files
committed
SkyCamp
1 parent 2d71280 commit 62cf71b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

skycamp2023.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
" self.retrieve = dspy.Retrieve(k=num_passages)\n",
412412
" self.generate_query = dspy.ChainOfThought(\"question -> search_query\")\n",
413413
"\n",
414-
" # TODO: Replace `None` with a dspy.ChainOfThought module that has the signature `context, question -> answer`.\n",
414+
" # TODO: Define a dspy.ChainOfThought module with the signature 'context, question -> search_query'.\n",
415415
" self.generate_query_from_context = None\n",
416416
"\n",
417417
" self.generate_answer = dspy.ChainOfThought(\"context, question -> answer\")\n",
@@ -424,6 +424,7 @@
424424
"\n",
425425
" # TODO: Replace `None` with a call to self.generate_query_from_context to generate a search query.\n",
426426
" # Note: In DSPy, always pass keyword arguments (e.g., context=..., question=...) to the modules to avoid ambiguity.\n",
427+
" # Note 2: Don't forget to access the field .search_query to extract that from the output of the module.\n",
427428
" search_query2 = None\n",
428429
"\n",
429430
" # TODO: Replace `None` with a call to self.retrieve to retrieve passages. Append them to the list `passages`.\n",

skycamp2023_completed.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@
13671367
" self.retrieve = dspy.Retrieve(k=num_passages)\n",
13681368
" self.generate_query = dspy.ChainOfThought(\"question -> search_query\")\n",
13691369
"\n",
1370-
" # TODO: Define a dspy.ChainOfThought module with the signature `context, question -> answer`.\n",
1370+
" # TODO: Define a dspy.ChainOfThought module with the signature 'context, question -> search_query'.\n",
13711371
" self.generate_query_from_context = dspy.ChainOfThought(\"context, question -> search_query\")\n",
13721372
"\n",
13731373
" self.generate_answer = dspy.ChainOfThought(\"context, question -> answer\")\n",

0 commit comments

Comments
 (0)