Skip to content

Commit

Permalink
SkyCamp
Browse files Browse the repository at this point in the history
  • Loading branch information
okhat committed Oct 20, 2023
1 parent 2d71280 commit 62cf71b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion skycamp2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
" self.retrieve = dspy.Retrieve(k=num_passages)\n",
" self.generate_query = dspy.ChainOfThought(\"question -> search_query\")\n",
"\n",
" # TODO: Replace `None` with a dspy.ChainOfThought module that has the signature `context, question -> answer`.\n",
" # TODO: Define a dspy.ChainOfThought module with the signature 'context, question -> search_query'.\n",
" self.generate_query_from_context = None\n",
"\n",
" self.generate_answer = dspy.ChainOfThought(\"context, question -> answer\")\n",
Expand All @@ -424,6 +424,7 @@
"\n",
" # TODO: Replace `None` with a call to self.generate_query_from_context to generate a search query.\n",
" # Note: In DSPy, always pass keyword arguments (e.g., context=..., question=...) to the modules to avoid ambiguity.\n",
" # Note 2: Don't forget to access the field .search_query to extract that from the output of the module.\n",
" search_query2 = None\n",
"\n",
" # TODO: Replace `None` with a call to self.retrieve to retrieve passages. Append them to the list `passages`.\n",
Expand Down
2 changes: 1 addition & 1 deletion skycamp2023_completed.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@
" self.retrieve = dspy.Retrieve(k=num_passages)\n",
" self.generate_query = dspy.ChainOfThought(\"question -> search_query\")\n",
"\n",
" # TODO: Define a dspy.ChainOfThought module with the signature `context, question -> answer`.\n",
" # TODO: Define a dspy.ChainOfThought module with the signature 'context, question -> search_query'.\n",
" self.generate_query_from_context = dspy.ChainOfThought(\"context, question -> search_query\")\n",
"\n",
" self.generate_answer = dspy.ChainOfThought(\"context, question -> answer\")\n",
Expand Down

0 comments on commit 62cf71b

Please sign in to comment.