|
45 | 45 | }, |
46 | 46 | { |
47 | 47 | "cell_type": "code", |
48 | | - "execution_count": 4, |
| 48 | + "execution_count": 1, |
49 | 49 | "metadata": {}, |
50 | 50 | "outputs": [], |
51 | 51 | "source": [ |
|
67 | 67 | }, |
68 | 68 | { |
69 | 69 | "cell_type": "code", |
70 | | - "execution_count": 5, |
| 70 | + "execution_count": 2, |
71 | 71 | "metadata": {}, |
72 | 72 | "outputs": [ |
73 | 73 | { |
74 | 74 | "name": "stdout", |
75 | 75 | "output_type": "stream", |
76 | 76 | "text": [ |
77 | | - "Fetched 737522 characters from the book.\n", |
| 77 | + "Fetched 737525 characters from the book.\n", |
78 | 78 | "First 500 characters:\n", |
79 | 79 | "The Project Gutenberg eBook of Pride and Prejudice\n", |
80 | 80 | "This ebook is for the use of anyone anywhere in the United States and\n", |
|
284 | 284 | }, |
285 | 285 | { |
286 | 286 | "cell_type": "code", |
287 | | - "execution_count": 8, |
| 287 | + "execution_count": 3, |
288 | 288 | "metadata": {}, |
289 | 289 | "outputs": [ |
290 | 290 | { |
|
300 | 300 | "Input tokens (cache read): 0\n", |
301 | 301 | "Input tokens (cache write): 187354\n", |
302 | 302 | "0.0% of input prompt cached (4 tokens)\n", |
303 | | - "Time taken: 22.04 seconds\n", |
| 303 | + "Time taken: 20.37 seconds\n", |
304 | 304 | "\n", |
305 | 305 | "Turn 2:\n", |
306 | 306 | "User: Who are Mr. and Mrs. Bennet?\n", |
307 | | - "Assistant: Mr. and Mrs. Bennet are the parents of five daughters (Jane, Elizabeth, Mary, Kitty, and Lydia) in Pride and Prejudice. Their personalities are quite different from each other:\n", |
| 307 | + "Assistant: Mr. and Mrs. Bennet are the parents of five daughters (Jane, Elizabeth, Mary, Kitty, and Lydia) in Pride and Prejudice. \n", |
308 | 308 | "\n", |
309 | | - "Mr. Bennet is an intelligent but rather detached and sarcastic man who often retreats to his library to avoid his wife's dramatic behavior. He is fond of his daughter Elizabeth (Lizzy) in particular due to her wit and good sense. While he can be amusing, he is also somewhat negligent in his duties as a father and head of the household.\n", |
| 309 | + "Mr. Bennet is an intelligent but detached father who often retreats to his library to avoid his wife's dramatics. He has a satirical wit and tends to be amused by the follies of others, including his own family members. He shows particular fondness for his second daughter Elizabeth, who shares his sharp mind and wit.\n", |
310 | 310 | "\n", |
311 | | - "Mrs. Bennet is a rather foolish, nervous, and obsessive woman whose main goal in life is to see her daughters married to wealthy men. This preoccupation stems partly from the fact that their estate is entailed to a male heir (Mr. Collins), meaning her daughters will be left with little after Mr. Bennet's death. She often embarrasses her more sensible daughters (particularly Elizabeth and Jane) with her lack of social graces and her obvious attempts at matchmaking.\n", |
| 311 | + "Mrs. Bennet is a woman primarily focused on getting her five daughters married to wealthy men. She is described as having \"poor nerves\" and is often anxious, dramatic, and somewhat foolish. Her main goal in life is to see her daughters well-married, particularly because their family estate is entailed to a male heir (Mr. Collins), meaning her daughters will be left with little financial security after Mr. Bennet's death. She is often described as lacking sophistication and good judgment, which sometimes embarrasses her more sensible daughters, particularly Elizabeth.\n", |
312 | 312 | "\n", |
313 | | - "Their marriage is portrayed as an unfortunate example of a match based on superficial attraction (Mr. Bennet was attracted to Mrs. Bennet's youth and beauty) rather than compatibility of character and intellect, serving as a contrast to the more meaningful relationships that develop later in the novel.\n", |
| 313 | + "Their marriage is portrayed as an ill-matched one, where Mr. Bennet married Mrs. Bennet in his youth because of her beauty, only to discover they were incompatible in terms of intellect and character. This serves as a cautionary tale about marrying without proper consideration of character compatibility.\n", |
314 | 314 | "User input tokens: 4\n", |
315 | | - "Output tokens: 295\n", |
| 315 | + "Output tokens: 297\n", |
316 | 316 | "Input tokens (cache read): 187354\n", |
317 | 317 | "Input tokens (cache write): 36\n", |
318 | 318 | "100.0% of input prompt cached (187358 tokens)\n", |
319 | | - "Time taken: 8.32 seconds\n", |
| 319 | + "Time taken: 7.53 seconds\n", |
320 | 320 | "\n", |
321 | 321 | "Turn 3:\n", |
322 | 322 | "User: What is Netherfield Park?\n", |
323 | | - "Assistant: Netherfield Park is a large estate near the Bennets' home of Longbourn that is rented by Mr. Bingley at the beginning of the novel. It becomes a central location in the story as Mr. Bingley's arrival there sets many of the novel's key events in motion.\n", |
| 323 | + "Assistant: Netherfield Park is a large estate near the Bennet family home of Longbourn in the novel. It becomes significant to the plot when it is rented by Mr. Bingley, a wealthy young man who moves into the neighborhood. \n", |
324 | 324 | "\n", |
325 | | - "The arrival of Mr. Bingley at Netherfield creates much excitement in the neighborhood, particularly for Mrs. Bennet, who sees him as a potential husband for one of her daughters due to his wealth (he has an income of around 4-5 thousand pounds a year). Indeed, it is at Netherfield where the romance between Jane Bennet and Mr. Bingley begins to develop.\n", |
| 325 | + "The arrival of Mr. Bingley at Netherfield sets much of the novel's plot in motion, as he quickly develops a romantic interest in Jane Bennet, the eldest Bennet daughter. It's also through Netherfield that Elizabeth Bennet first encounters Mr. Darcy, who is staying there as Mr. Bingley's friend.\n", |
326 | 326 | "\n", |
327 | | - "Netherfield is also significant because it is where Jane falls ill while visiting Mr. Bingley's sisters, leading to Elizabeth coming to nurse her. This extended stay at Netherfield provides important opportunities for Elizabeth to interact with Mr. Darcy, though at this point in the novel their interactions are marked by pride and prejudice on both sides.\n", |
| 327 | + "Netherfield serves as an important setting for several key scenes in the novel, including:\n", |
| 328 | + "- The ball where Mr. Darcy first slights Elizabeth\n", |
| 329 | + "- Jane's illness and subsequent stay at Netherfield (where Elizabeth comes to nurse her)\n", |
| 330 | + "- Various social interactions between the Bennets and the Bingley-Darcy party\n", |
328 | 331 | "\n", |
329 | | - "The house and estate represent wealth and social status in the novel, and its occupancy by the Bingleys brings the higher social circles of London into contact with the more provincial society of Meryton and its surroundings.\n", |
| 332 | + "The estate symbolizes wealth and social status in the novel, and its occupancy by Mr. Bingley represents the possibility of social and financial advancement for the Bennet family through marriage. When Bingley suddenly leaves Netherfield, it creates significant disappointment and disruption in the hopes of the Bennet family, particularly for Jane.\n", |
330 | 333 | "User input tokens: 4\n", |
331 | | - "Output tokens: 286\n", |
| 334 | + "Output tokens: 289\n", |
332 | 335 | "Input tokens (cache read): 187390\n", |
333 | | - "Input tokens (cache write): 306\n", |
| 336 | + "Input tokens (cache write): 308\n", |
334 | 337 | "100.0% of input prompt cached (187394 tokens)\n", |
335 | | - "Time taken: 10.73 seconds\n", |
| 338 | + "Time taken: 6.76 seconds\n", |
336 | 339 | "\n", |
337 | 340 | "Turn 4:\n", |
338 | 341 | "User: What is the main theme of this novel?\n", |
339 | 342 | "Assistant: The main theme of \"Pride and Prejudice\" is the interplay between pride and prejudice in relationships, particularly as shown through the central romance between Elizabeth Bennet and Mr. Darcy. However, there are several important related themes:\n", |
340 | 343 | "\n", |
341 | 344 | "1. Pride and Prejudice:\n", |
342 | 345 | "- Darcy's pride in his social position initially makes him appear arrogant and disdainful\n", |
343 | | - "- Elizabeth's prejudice against Darcy is based on first impressions and incomplete information\n", |
| 346 | + "- Elizabeth's prejudice against Darcy based on first impressions and Wickham's false account\n", |
344 | 347 | "- Both characters must overcome these flaws to find happiness together\n", |
345 | 348 | "\n", |
346 | 349 | "2. Marriage and Social Class:\n", |
347 | | - "- The novel explores different types of marriages (for love, security, or social advancement)\n", |
348 | | - "- Social class differences and their impact on relationships\n", |
349 | | - "- The economic necessity of marriage for women in the period\n", |
350 | | - "- Contrast between marriages based on true understanding (Elizabeth/Darcy, Jane/Bingley) versus those based on superficial attractions (Lydia/Wickham) or practical considerations (Charlotte/Collins)\n", |
| 350 | + "- The pressure on young women to marry well for financial security\n", |
| 351 | + "- The conflict between marrying for love versus social advantage\n", |
| 352 | + "- Different types of marriages are portrayed (Elizabeth/Darcy, Jane/Bingley, Lydia/Wickham, Charlotte/Collins)\n", |
351 | 353 | "\n", |
352 | 354 | "3. Reputation and Social Expectations:\n", |
353 | | - "- The importance of reputation, particularly for women\n", |
354 | | - "- Social manners and proper behavior\n", |
355 | | - "- The constraints placed on women in Regency society\n", |
| 355 | + "- The importance of reputation in Regency society\n", |
| 356 | + "- How behavior reflects on family honor\n", |
| 357 | + "- The restrictions placed on women in this period\n", |
356 | 358 | "\n", |
357 | 359 | "4. Personal Growth and Self-Knowledge:\n", |
358 | | - "- Elizabeth and Darcy's journey to better understand themselves and each other\n", |
359 | | - "- The importance of overcoming first impressions and preconceptions\n", |
360 | | - "- Learning from mistakes and misj\n", |
| 360 | + "- Elizabeth and Darcy both learn to recognize their own faults\n", |
| 361 | + "- The importance of overcoming first impressions\n", |
| 362 | + "- Character development through experience and reflection\n", |
| 363 | + "\n", |
| 364 | + "5. Family and Society:\n", |
| 365 | + "- The role of family connections in determining social status\n", |
| 366 | + "- The impact of family behavior on individual prospects\n", |
| 367 | + "- The balance between\n", |
361 | 368 | "User input tokens: 4\n", |
362 | 369 | "Output tokens: 300\n", |
363 | | - "Input tokens (cache read): 187696\n", |
364 | | - "Input tokens (cache write): 298\n", |
365 | | - "100.0% of input prompt cached (187700 tokens)\n", |
366 | | - "Time taken: 7.07 seconds\n" |
| 370 | + "Input tokens (cache read): 187698\n", |
| 371 | + "Input tokens (cache write): 301\n", |
| 372 | + "100.0% of input prompt cached (187702 tokens)\n", |
| 373 | + "Time taken: 7.13 seconds\n" |
367 | 374 | ] |
368 | 375 | } |
369 | 376 | ], |
|
403 | 410 | " user_turns_processed = 0\n", |
404 | 411 | " # Iterate through turns in reverse order\n", |
405 | 412 | " for turn in reversed(self.turns):\n", |
406 | | - " if turn[\"role\"] == \"user\" and user_turns_processed < 2:\n", |
407 | | - " # Add the last two user turns with ephemeral cache control\n", |
| 413 | + " if turn[\"role\"] == \"user\" and user_turns_processed < 1:\n", |
| 414 | + " # Add the last user turn with ephemeral cache control\n", |
408 | 415 | " result.append({\n", |
409 | 416 | " \"role\": \"user\",\n", |
410 | 417 | " \"content\": [\n", |
|
507 | 514 | ], |
508 | 515 | "metadata": { |
509 | 516 | "kernelspec": { |
510 | | - "display_name": "base", |
| 517 | + "display_name": "py311", |
511 | 518 | "language": "python", |
512 | 519 | "name": "python3" |
513 | 520 | }, |
|
521 | 528 | "name": "python", |
522 | 529 | "nbconvert_exporter": "python", |
523 | 530 | "pygments_lexer": "ipython3", |
524 | | - "version": "3.10.14" |
| 531 | + "version": "3.11.11" |
525 | 532 | } |
526 | 533 | }, |
527 | 534 | "nbformat": 4, |
|
0 commit comments