Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@
],
"source": [
"analysis_prompt = PromptTemplate(\n",
" input_variables=[\"detailed_response\", \"concise_response\"],\n",
" template=\"\"\"Compare the following two responses on artificial intelligence:\n",
" input_variables=[\"topic\", \"detailed_response\", \"concise_response\"],\n",
" template=\"\"\"Compare the following two responses on {topic}:\n",
"\n",
"Detailed response:\n",
"{detailed_response}\n",
Expand All @@ -282,6 +282,7 @@
"concise_response = llm.invoke(concise_prompt.format(topic=topic)).content\n",
"\n",
"analysis = llm.invoke(analysis_prompt.format(\n",
" topic=topic,\n",
" detailed_response=detailed_response,\n",
" concise_response=concise_response\n",
")).content\n",
Expand Down