Skip to content

Commit d28802d

Browse files
authored
Merge pull request #254 from deepset-ai/agent-retrieval-cookbook-fix
Fix the prompt formatting in the Agent Powered Retrieval cookbook
2 parents d90909f + 33e0cf4 commit d28802d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

notebooks/agent_powered_retrieval.ipynb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@
815815
},
816816
{
817817
"cell_type": "code",
818-
"execution_count": 24,
818+
"execution_count": null,
819819
"metadata": {
820820
"id": "4wQQnww8Y_Hl"
821821
},
@@ -865,7 +865,6 @@
865865
"Here are the tool call parameters for user queries:\n",
866866
"\n",
867867
"* User: \"Can you recommned horror movies with bad ratings?\"\n",
868-
"```json\n",
869868
"{\n",
870869
" \"metadata_filters\": {\n",
871870
" \"operator\": \"AND\",\n",
@@ -875,10 +874,8 @@
875874
" ]\n",
876875
" }\n",
877876
"}\n",
878-
"```\n",
879877
"\n",
880878
"* User: \"I want a powerful courtroom drama, something emotionally intense, high rated\"\n",
881-
"```json\n",
882879
"{\n",
883880
" \"query\": \"powerful courtroom drama, emotionally intense\",\n",
884881
" \"metadata_filters\": {\n",
@@ -889,10 +886,8 @@
889886
" ]\n",
890887
" }\n",
891888
"}\n",
892-
"```\n",
893889
"\n",
894890
"* User: \"Give me five Japanese thrillers.\"\n",
895-
"```json\n",
896891
"{\n",
897892
" \"top_k\": 5,\n",
898893
" \"metadata_filters\": {\n",
@@ -903,10 +898,8 @@
903898
" ]\n",
904899
" }\n",
905900
"}\n",
906-
"```\n",
907901
"\n",
908902
"* User: \"I'd like to watch an action movie that is not drama\"\n",
909-
"```json\n",
910903
"{\n",
911904
" \"metadata_filters\": {\n",
912905
" \"operator\": \"AND\",\n",
@@ -916,7 +909,6 @@
916909
" ]\n",
917910
" }\n",
918911
"}\n",
919-
"```\n",
920912
"\n",
921913
"#### Fallback Strategy\n",
922914
"If the search space is too narrow (i.e., few or no results), relax the filters and/or simplify the query to allow broader but still relevant results. Aim to preserve the user’s intent while increasing recall.\n",

0 commit comments

Comments
 (0)