Skip to content

Commit 7449f59

Browse files
committed
fixed truncation
1 parent efc2b1f commit 7449f59

File tree

1 file changed

+36
-11
lines changed

1 file changed

+36
-11
lines changed

pydantic_ai/RAG_with_Couchbase_and_PydanticAI.ipynb

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@
804804
},
805805
{
806806
"cell_type": "code",
807-
"execution_count": 20,
807+
"execution_count": 23,
808808
"metadata": {},
809809
"outputs": [
810810
{
@@ -832,7 +832,21 @@
832832
" 'is \"fine\" despite admitting his sleep and diet are being affected by the '\n",
833833
" 'worst run of results in his entire managerial career. In an interview with '\n",
834834
" 'former Italy international Luca Toni for Amazon Prime Sport before '\n",
835-
" \"Wednesday\\\\'s Champions League defeat by Juventus, Guardiola touched\")\n",
835+
" \"Wednesday\\\\'s Champions League defeat by Juventus, Guardiola touched on the \"\n",
836+
" \"personal impact City\\\\'s sudden downturn in form has had. Guardiola said his \"\n",
837+
" 'state of mind was \"ugly\", that his sleep was \"worse\" and he was eating '\n",
838+
" '...'\n",
839+
" 'Dortmund in 2022, had one shot and one touch in the Villa box. His 18 '\n",
840+
" 'touches in the whole game were the lowest of all starting players and he has '\n",
841+
" 'been self critical, despite scoring 13 goals in the top flight this season. '\n",
842+
" \"Over City\\\\'s last eight games he has netted just twice though, but \"\n",
843+
" 'Guardiola refused to criticise his star striker. He said: \"Without him we '\n",
844+
" \"will be even worse but I like the players feeling that way. I don\\\\'t agree \"\n",
845+
" 'with Erling. He needs to have the balls delivered in the right spots but he '\n",
846+
" 'will fight for the next one.\"\\', '\n",
847+
" \"tool_call_id='call_4NKPPNB1dAWvJVcrsge5P2WU', \"\n",
848+
" 'timestamp=datetime.datetime(2025, 2, 6, 7, 51, 31, 54559, '\n",
849+
" \"tzinfo=datetime.timezone.utc), part_kind='tool-return')], kind='request')\")\n",
836850
"==================================================\n",
837851
"Step 4:\n",
838852
"(\"ModelResponse(parts=[TextPart(content='Pep Guardiola has expressed \"\n",
@@ -841,7 +855,25 @@
841855
" 'downturn has taken a personal toll on him, affecting his sleep and diet. '\n",
842856
" 'Guardiola mentioned feeling \"ugly\" about the situation, and his sleep has '\n",
843857
" 'worsened due to the stress of the results, which include a streak of poor '\n",
844-
" 'performances where City has won just one of their last ten game')\n",
858+
" 'performances where City has won just one of their last ten games.\\\\n\\\\nAfter '\n",
859+
" 'a loss to Manchester United, Guardiola admitted that he, as the manager, '\n",
860+
" 'must find solutions but has yet to do so. He expressed a need to reconstruct '\n",
861+
" \"the team\\\\'s approach, especially defensively, as they continue to make \"\n",
862+
" 'costly mistakes. Additionally, injuries to key players like Ruben Dias, '\n",
863+
" 'Rodri, and others have complicated the situation, but Guardiola has refused '\n",
864+
" 'to use these as excuses for their decline.\\\\n\\\\nHe has acknowledged the '\n",
865+
" 'necessity of rebuilding the team, hinting at significant changes needed in '\n",
866+
" 'the squad and the system. Guardiola emphasized the importance of gradually '\n",
867+
" 'finding a way back to form and expressed optimism that the team will turn '\n",
868+
" 'around its performance.\\\\n\\\\nThe losing streak has dropped City down the '\n",
869+
" 'standings and they now trail leaders Liverpool by nine points, casting doubt '\n",
870+
" 'on their aspirations for a fifth successive Premier League title. Their '\n",
871+
" 'Champions League hopes are also uncertain following recent defeats. Despite '\n",
872+
" 'these challenges, Guardiola remains committed to the club, having signed a '\n",
873+
" 'contract extension, and is determined to lead the team out of its current '\n",
874+
" \"struggles.', part_kind='text')], model_name='gpt-4o', \"\n",
875+
" 'timestamp=datetime.datetime(2025, 2, 6, 7, 51, 31, '\n",
876+
" \"tzinfo=datetime.timezone.utc), kind='response')\")\n",
845877
"==================================================\n"
846878
]
847879
}
@@ -851,16 +883,9 @@
851883
"\n",
852884
"for idx, message in enumerate(output.all_messages(), start=1):\n",
853885
" print(f\"Step {idx}:\")\n",
854-
" pprint(message.__repr__()[:500])\n",
886+
" pprint(message.__repr__())\n",
855887
" print(\"=\" * 50)"
856888
]
857-
},
858-
{
859-
"cell_type": "code",
860-
"execution_count": null,
861-
"metadata": {},
862-
"outputs": [],
863-
"source": []
864889
}
865890
],
866891
"metadata": {

0 commit comments

Comments
 (0)