Spaces:
Sleeping
Sleeping
File size: 50,443 Bytes
edf6d57 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You can download the `requirements.txt` for this course from the workspace of this lab. `File --> Open...`"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# L2: Create Agents to Research and Write an Article\n",
"\n",
"In this lesson, you will be introduced to the foundational concepts of multi-agent systems and get an overview of the crewAI framework."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The libraries are already installed in the classroom. If you're running this notebook on your own machine, you can install the following:\n",
"```Python\n",
"!pip install crewai==0.28.8 crewai_tools==0.1.6 langchain_community==0.0.29\n",
"```"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"height": 64
},
"outputs": [],
"source": [
"# Warning control\n",
"import warnings\n",
"warnings.filterwarnings('ignore')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- Import from the crewAI libray."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"height": 166
},
"outputs": [],
"source": [
"from crewai import Agent, Task, Crew\n",
"from crewai_tools import (\n",
" #DirectoryReadTool,\n",
" #FileReadTool,\n",
" #SerperDevTool,\n",
" #WebsiteSearchTool,\n",
" #DOCXSearchTool,\n",
" #RagTool,\n",
" TXTSearchTool\n",
")\n",
"from datetime import datetime"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- As a LLM for your agents, you'll be using OpenAI's `gpt-3.5-turbo`.\n",
"\n",
"**Optional Note:** crewAI also allow other popular models to be used as a LLM for your Agents. You can see some of the examples at the [bottom of the notebook](#1)."
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"height": 149
},
"outputs": [],
"source": [
"import os\n",
"from utils import get_openai_api_key\n",
"\n",
"# Set up API keys\n",
"\n",
"openai_api_key = get_openai_api_key()\n",
"\n",
"os.environ[\"OPENAI_MODEL_NAME\"] = 'gpt-3.5-turbo'\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-proj-8nKBOgxInYCIqidcdSu7T3BlbkFJWac8qZbpFOE2TSn0OpId\"\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"height": 132
},
"outputs": [],
"source": [
"def call_crew_kickoff(str_current_datetime):\n",
" # Instantiate tools\n",
" #meeting_trans_docs_tool = DirectoryReadTool(directory='./meeting-transcription')\n",
" #brd_temp_docs_tool = DirectoryReadTool(directory='./brd-template')\n",
" #file_tool = FileReadTool()\n",
" #web_rag_tool = WebsiteSearchTool()\n",
" #docx_search_tool = DOCXSearchTool()\n",
" #rag_tool = RagTool()\n",
" mt_tool = TXTSearchTool(txt='./meeting-transcription/meeting-transcript_' + str_current_datetime + '.txt')\n",
" brd_tool = TXTSearchTool(txt='./brd-template/brd-template.txt')\n",
"\n",
" text_parsing_agent = Agent(\n",
" role=\"Text Interpreter\",\n",
" goal=\"Parse and interpret the raw text input, structuring it into manageable sections\"\n",
" \"or data points that are relevant for analysis and processing.\",\n",
" backstory=\"You excel at deciphering complex textual data. You act as the first line of analysis,\"\n",
" \"turning unstructured text into organized segments. You should enhance efficiency in data\"\n",
" \"handling and support subsequent stages of data processing.\",\n",
" tools=[mt_tool],\n",
" allow_delegation=True,\n",
" verbose=True\n",
" )\n",
"\n",
" data_extraction_agent = Agent(\n",
" role=\"Data Extraction Agent\",\n",
" goal=\"Identify and extract essential data points, statistics,\"\n",
" \"and specific information from the parsed text that are crucial\"\n",
" \"for drafting a Business Requirements Document.\",\n",
" backstory=\"You should tackle the challenge of sifting through detailed textual data to\"\n",
" \"find relevant information. You should be doing it with precision and speed, equipped\"\n",
" \"with capabilities to recognize and categorize data efficiently, making it invaluable\"\n",
" \"for projects requiring quick turnaround and accurate data handling.\",\n",
" tools=[mt_tool, brd_tool],\n",
" allow_delegation=True,\n",
" verbose=True\n",
" )\n",
"\n",
" brd_compiler_agent = Agent(\n",
" role=\"BRD Compiler\",\n",
" goal=\"Assemble the extracted data into a well-structured Business Requirements Document,\"\n",
" \"ensuring that it is clear, coherent, and formatted according to standards.\",\n",
" backstory=\"You are a meticulous Business Requirement Document compiler, You should alleviate\"\n",
" \"the burdens of manual document assembly. Ensure that all documents are crafted with\"\n",
" \"precision, adhering to organizational standards, and ready for stakeholder review. You\"\n",
" \"should be automating routine documentation tasks, thus allowing human team members to focus\"\n",
" \"on more strategic activities.\",\n",
" tools=[brd_tool],\n",
" allow_delegation=True,\n",
" verbose=True\n",
" )\n",
"\n",
" text_parsing = Task(\n",
" description=(\n",
" \"1. Open and read the contents of the input text file.\\n\"\n",
" \"2. Analyze the document structure to identify headings, subheadings, and key paragraphs.\\n\"\n",
" \"3. Extract text under each identified section, ensuring context is preserved.\\n\"\n",
" \"4. Format the extracted text into a JSON structure with labels indicating the type\"\n",
" \"of content (e.g., heading, detail).\"\n",
" ),\n",
" expected_output=\"Structured JSON object containing separated sections of\"\n",
" \"text with labels based on their content type.\",\n",
" agent=text_parsing_agent,\n",
" )\n",
"\n",
" data_extraction = Task(\n",
" description=(\n",
" \"1. Take the JSON structured data from the Text Parsing Agent.\\n\"\n",
" \"2. Identify and extract specific data points like project goals, technical requirements,\"\n",
" \"and stakeholder information.\\n\"\n",
" \"3. Organize the extracted data into relevant categories for easy access and use.\\n\"\n",
" \"4. Format all extracted data into a structured form suitable for document generation,\"\n",
" \"ensuring it's ready for template insertion.\\n\"\n",
" ),\n",
" expected_output=\"A comprehensive list of key data points organized by category, ready for use in document generation.\",\n",
" agent=data_extraction_agent,\n",
" )\n",
"\n",
" compile_brd = Task(\n",
" description=(\n",
" \"1. Accept the structured and categorized data from the Data Extraction Agent.\\n\"\n",
" \"2. Open and read the BRD template for data insertion.\\n\"\n",
" \"3. Insert the received data into the respective sections of the BRD template.\\n\"\n",
" \"4. Apply formatting rules to ensure the document is professional and adheres to standards.\\n\"\n",
" \"5. Save the populated and formatted document as a new markdown file, marking the task as complete.\\n\"\n",
" ),\n",
" expected_output=\"A complete Business Requirements Document in markdown format, ready for review and distribution.\",\n",
" agent=brd_compiler_agent,\n",
" output_file='generated-brd/brd_' + str_current_datetime + '.md', # The final blog post will be saved here\n",
" )\n",
"\n",
" crew = Crew(\n",
" agents=[text_parsing_agent, data_extraction_agent, brd_compiler_agent],\n",
" tasks=[text_parsing, data_extraction, compile_brd],\n",
" verbose=2\n",
" )\n",
"\n",
" result = crew.kickoff(inputs={'datetime': str_current_datetime})\n",
"\n",
" from IPython.display import Markdown\n",
" Markdown(result)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Creating Agents\n",
"\n",
"- Define your Agents, and provide them a `role`, `goal` and `backstory`.\n",
"- It has been seen that LLMs perform better when they are role playing."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Agent: Planner\n",
"\n",
"**Note**: The benefit of using _multiple strings_ :\n",
"```Python\n",
"varname = \"line 1 of text\"\n",
" \"line 2 of text\"\n",
"```\n",
"\n",
"versus the _triple quote docstring_:\n",
"```Python\n",
"varname = \"\"\"line 1 of text\n",
" line 2 of text\n",
" \"\"\"\n",
"```\n",
"is that it can avoid adding those whitespaces and newline characters, making it better formatted to be passed to the LLM."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Agent: Writer"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"height": 217
},
"outputs": [],
"source": [
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Agent: Editor"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"height": 251
},
"outputs": [],
"source": [
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Creating Tasks\n",
"\n",
"- Define your Tasks, and provide them a `description`, `expected_output` and `agent`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Task: Plan"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"height": 217
},
"outputs": [],
"source": [
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Task: Write"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"height": 234
},
"outputs": [
{
"data": {
"text/plain": [
"' data_extraction = Task(\\n description=(\\n \"1. Take the JSON structured data from the Text Parsing Agent.\\n\"\\n \"2. Identify and extract specific data points like project goals, technical requirements,\"\\n \"and stakeholder information.\\n\"\\n \"3. Organize the extracted data into relevant categories for easy access and use.\\n\"\\n \"4. Format all extracted data into a structured form suitable for document generation,\"\\n \"ensuring it\\'s ready for template insertion.\\n\"\\n ),\\n expected_output=\"A comprehensive list of key data points organized by category, ready for use in document generation.\",\\n agent=data_extraction_agent,\\n )\\n'"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"''' data_extraction = Task(\n",
" description=(\n",
" \"1. Take the JSON structured data from the Text Parsing Agent.\\n\"\n",
" \"2. Identify and extract specific data points like project goals, technical requirements,\"\n",
" \"and stakeholder information.\\n\"\n",
" \"3. Organize the extracted data into relevant categories for easy access and use.\\n\"\n",
" \"4. Format all extracted data into a structured form suitable for document generation,\"\n",
" \"ensuring it's ready for template insertion.\\n\"\n",
" ),\n",
" expected_output=\"A comprehensive list of key data points organized by category, ready for use in document generation.\",\n",
" agent=data_extraction_agent,\n",
" )\n",
"'''"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Task: Edit"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"height": 200
},
"outputs": [
{
"data": {
"text/plain": [
"' compile_brd = Task(\\n description=(\\n \"1. Accept the structured and categorized data from the Data Extraction Agent.\\n\"\\n \"2. Open and read the BRD template for data insertion.\\n\"\\n \"3. Insert the received data into the respective sections of the BRD template.\\n\"\\n \"4. Apply formatting rules to ensure the document is professional and adheres to standards.\\n\"\\n \"5. Save the populated and formatted document as a new markdown file, marking the task as complete.\\n\"\\n ),\\n expected_output=\"A complete Business Requirements Document in markdown format, ready for review and distribution.\",\\n agent=brd_compiler_agent,\\n output_file=\\'generated-brd/brd_{datetime}.md\\', # The final blog post will be saved here\\n )\\n'"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"''' compile_brd = Task(\n",
" description=(\n",
" \"1. Accept the structured and categorized data from the Data Extraction Agent.\\n\"\n",
" \"2. Open and read the BRD template for data insertion.\\n\"\n",
" \"3. Insert the received data into the respective sections of the BRD template.\\n\"\n",
" \"4. Apply formatting rules to ensure the document is professional and adheres to standards.\\n\"\n",
" \"5. Save the populated and formatted document as a new markdown file, marking the task as complete.\\n\"\n",
" ),\n",
" expected_output=\"A complete Business Requirements Document in markdown format, ready for review and distribution.\",\n",
" agent=brd_compiler_agent,\n",
" output_file='generated-brd/brd_{datetime}.md', # The final blog post will be saved here\n",
" )\n",
"'''"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Creating the Crew\n",
"\n",
"- Create your crew of Agents\n",
"- Pass the tasks to be performed by those agents.\n",
" - **Note**: *For this simple example*, the tasks will be performed sequentially (i.e they are dependent on each other), so the _order_ of the task in the list _matters_.\n",
"- `verbose=2` allows you to see all the logs of the execution. "
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"height": 98
},
"outputs": [
{
"data": {
"text/plain": [
"' crew = Crew(\\n agents=[text_parsing_agent, data_extraction_agent, brd_compiler_agent],\\n tasks=[text_parsing, data_extraction, compile_brd],\\n verbose=2\\n )\\n'"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"''' crew = Crew(\n",
" agents=[text_parsing_agent, data_extraction_agent, brd_compiler_agent],\n",
" tasks=[text_parsing, data_extraction, compile_brd],\n",
" verbose=2\n",
" )\n",
"'''"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Running the Crew"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Note**: LLMs can provide different outputs for they same input, so what you get might be different than what you see in the video."
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"height": 30
},
"outputs": [
{
"data": {
"text/plain": [
"\"\\n result = crew.kickoff(inputs={'datetime': str_current_datetime})\\n\\n from IPython.display import Markdown\\n Markdown(result)\\n\""
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"'''\n",
" result = crew.kickoff(inputs={'datetime': str_current_datetime})\n",
"\n",
" from IPython.display import Markdown\n",
" Markdown(result)\n",
"'''"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- Display the results of your execution as markdown in the notebook."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"height": 47
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"height": 30
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Python 3.11.9\n"
]
}
],
"source": [
"!python --version"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"import gradio as gr"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"def process_file(input_file):\n",
" current_datetime = datetime.now().strftime(\"%Y-%m-%d %H-%M-%S\")\n",
" print(\"Current date & time : \", current_datetime)\n",
" \n",
" # convert datetime obj to string\n",
" str_current_datetime = str(current_datetime)\n",
"\n",
" fh = open(input_file, 'rb')\n",
" #data = fh.read()\n",
"\n",
" # Ensure the target directory exists\n",
" output_dir = \"meeting-transcription\"\n",
" if not os.path.exists(output_dir):\n",
" os.makedirs(output_dir)\n",
" \n",
" # Save the uploaded file to the specified folder with the specified name\n",
" input_filepath = os.path.join(output_dir, \"meeting-transcript_\" + str_current_datetime + \".txt\")\n",
" with open(input_filepath, \"wb\") as file:\n",
" file.write(fh.read())\n",
" fh.close()\n",
"\n",
" call_crew_kickoff(str_current_datetime)\n",
"\n",
" # Example of processing: adding Markdown formatting. Replace this with your actual processing.\n",
" #processed_text = \"# Processed Output\\n\\n\" + \"\\n\".join(f\"- {line}\" for line in text.splitlines())\n",
" \n",
" output_filename = \"generated-brd/brd_\" + str_current_datetime + \".md\"\n",
" #with open(output_filename, \"w\") as file:\n",
" # file.write(processed_text)\n",
"\n",
" # Read the contents of the generated Markdown file\n",
" with open(output_filename, \"r\") as md_file:\n",
" markdown_content = md_file.read()\n",
"\n",
" # Return both the filename for download and the Markdown content for display\n",
" return output_filename, markdown_content"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Running on local URL: http://127.0.0.1:7860\n",
"Running on public URL: https://555181993525c76e6c.gradio.live\n",
"\n",
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n"
]
},
{
"data": {
"text/html": [
"<div><iframe src=\"https://555181993525c76e6c.gradio.live\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": []
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Current date & time : 2024-06-09 17-53-45\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Inserting batches in chromadb: 100%|██████████| 1/1 [00:00<00:00, 1.40it/s]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[1m\u001b[95m [DEBUG]: == Working Agent: Text Interpreter\u001b[00m\n",
"\u001b[1m\u001b[95m [INFO]: == Starting Task: 1. Open and read the contents of the input text file.\n",
"2. Analyze the document structure to identify headings, subheadings, and key paragraphs.\n",
"3. Extract text under each identified section, ensuring context is preserved.\n",
"4. Format the extracted text into a JSON structure with labels indicating the typeof content (e.g., heading, detail).\u001b[00m\n",
"\n",
"\n",
"\u001b[1m> Entering new CrewAgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3mI need to start by searching the content of the input text file to understand its structure and identify headings, subheadings, and key paragraphs.\n",
"\n",
"Action:\n",
"Search a txt's content\n",
"\n",
"Action Input:\n",
"{\n",
"\"search_query\": \"meeting-transcription/meeting-transcript_2024-06-09 17-53-45.txt\"\n",
"}\n",
"\u001b[0m\u001b[95m \n",
"\n",
"Relevant Content:\n",
"Meeting Transcript: Extensive IT Project Requirements Discussion\n",
" \n",
"Date: June 7, 2024\n",
"Time: 9:00 AM to 12:00 PM\n",
"Location: Conference Room B\n",
"Attendees:\n",
" \n",
"Alex Johnson (Project Manager)\n",
"Sam Lee (Business Analyst)\n",
"Jessica Davis (Technical Lead) \n",
"Chris Smith (Quality Assurance Manager)\n",
"Taylor Brown (Stakeholder Representative)\n",
"\n",
"Meeting Transcript: Extensive IT Project Requirements Discussion\n",
" \n",
"Date: June 7, 2024\n",
"Time: 9:00 AM to 12:00 PM\n",
"Location: Conference Room B\n",
"Attendees:\n",
" \n",
"Alex Johnson (Project Manager)\n",
"Sam Lee (Business Analyst)\n",
"Jessica Davis (Technical Lead) \n",
"Chris Smith (Quality Assurance Manager)\n",
"Taylor Brown (Stakeholder Representative)\n",
"\n",
"Meeting Transcript: Extensive IT Project Requirements Discussion\n",
" \n",
"Date: June 7, 2024\n",
"Time: 9:00 AM to 12:00 PM\n",
"Location: Conference Room B\n",
"Attendees:\n",
" \n",
"Alex Johnson (Project Manager)\n",
"Sam Lee (Business Analyst)\n",
"Jessica Davis (Technical Lead) \n",
"Chris Smith (Quality Assurance Manager)\n",
"Taylor Brown (Stakeholder Representative)\n",
"\u001b[00m\n",
"\u001b[32;1m\u001b[1;3mFinal Answer: \n",
"{\n",
" \"Meeting Transcript\": [\n",
" {\n",
" \"Date\": \"June 7, 2024\",\n",
" \"Time\": \"9:00 AM to 12:00 PM\",\n",
" \"Location\": \"Conference Room B\",\n",
" \"Attendees\": [\n",
" \"Alex Johnson (Project Manager)\",\n",
" \"Sam Lee (Business Analyst)\",\n",
" \"Jessica Davis (Technical Lead)\",\n",
" \"Chris Smith (Quality Assurance Manager)\",\n",
" \"Taylor Brown (Stakeholder Representative)\"\n",
" ]\n",
" }\n",
" ]\n",
"}\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n",
"\u001b[1m\u001b[92m [DEBUG]: == [Text Interpreter] Task output: {\n",
" \"Meeting Transcript\": [\n",
" {\n",
" \"Date\": \"June 7, 2024\",\n",
" \"Time\": \"9:00 AM to 12:00 PM\",\n",
" \"Location\": \"Conference Room B\",\n",
" \"Attendees\": [\n",
" \"Alex Johnson (Project Manager)\",\n",
" \"Sam Lee (Business Analyst)\",\n",
" \"Jessica Davis (Technical Lead)\",\n",
" \"Chris Smith (Quality Assurance Manager)\",\n",
" \"Taylor Brown (Stakeholder Representative)\"\n",
" ]\n",
" }\n",
" ]\n",
"}\n",
"\n",
"\u001b[00m\n",
"\u001b[1m\u001b[95m [DEBUG]: == Working Agent: Data Extraction Agent\u001b[00m\n",
"\u001b[1m\u001b[95m [INFO]: == Starting Task: 1. Take the JSON structured data from the Text Parsing Agent.\n",
"2. Identify and extract specific data points like project goals, technical requirements,and stakeholder information.\n",
"3. Organize the extracted data into relevant categories for easy access and use.\n",
"4. Format all extracted data into a structured form suitable for document generation,ensuring it's ready for template insertion.\n",
"\u001b[00m\n",
"\n",
"\n",
"\u001b[1m> Entering new CrewAgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3mI need to extract specific data points related to project goals, technical requirements, and stakeholder information from the meeting transcript provided.\n",
"\n",
"Action: Search a txt's content\n",
"Action Input: {'search_query': 'project goals'}\u001b[0m\u001b[95m \n",
"\n",
"Relevant Content:\n",
"Meeting Summary:\n",
"Alex Johnson (Project Manager): Good morning, everyone. Let's start today’s extensive session by clearly defining our project goals. The primary goal is to integrate advanced analytics into our platform, enhancing user experience and providing robust data insights.\n",
" \n",
"Taylor Brown (Stakeholder Representative): In alignment with Alex’s point, our business needs are clear. We need to boost customer engagement and satisfaction. This can be quantified by a target increase in daily active users and a reduction in customer complaints.\n",
" \n",
"Jessica Davis (Technical Lead): From a technical perspective, integrating these analytics will involve substantial updates to our data processing infrastructure and possibly migrating some services to a more scalable cloud solution.\n",
" \n",
"Sam Lee (Business Analyst): Given the complexity, we need to define the scope meticulously. This includes not only the technical implementation but also compliance with data protection regulations and ensuring our system is future-proofed for further upgrades.\n",
" \n",
"Chris Smith (Quality Assurance Manager): As for success criteria, we need to establish benchmarks. This means setting specific performance targets, like decreasing load times by 30% and achieving an error rate below 0.1%.\n",
" \n",
"Alex Johnson (Project Manager): Moving forward with our business objectives, we should aim to realize a return on investment within one year post-implementation, by increasing revenue through enhanced data-driven marketing strategies and reducing operational costs via more efficient data handling processes.\n",
" \n",
"Jessica Davis (Technical Lead): Identifying all stakeholders is key. We have internal stakeholders such as our IT and customer service teams, and external ones including technology partners and end-users. We must understand their interests and influence on the project.\n",
"\n",
"Meeting Summary:\n",
"Alex Johnson (Project Manager): Good morning, everyone. Let's start today’s extensive session by clearly defining our project goals. The primary goal is to integrate advanced analytics into our platform, enhancing user experience and providing robust data insights.\n",
" \n",
"Taylor Brown (Stakeholder Representative): In alignment with Alex’s point, our business needs are clear. We need to boost customer engagement and satisfaction. This can be quantified by a target increase in daily active users and a reduction in customer complaints.\n",
" \n",
"Jessica Davis (Technical Lead): From a technical perspective, integrating these analytics will involve substantial updates to our data processing infrastructure and possibly migrating some services to a more scalable cloud solution.\n",
" \n",
"Sam Lee (Business Analyst): Given the complexity, we need to define the scope meticulously. This includes not only the technical implementation but also compliance with data protection regulations and ensuring our system is future-proofed for further upgrades.\n",
" \n",
"Chris Smith (Quality Assurance Manager): As for success criteria, we need to establish benchmarks. This means setting specific performance targets, like decreasing load times by 30% and achieving an error rate below 0.1%.\n",
" \n",
"Alex Johnson (Project Manager): Moving forward with our business objectives, we should aim to realize a return on investment within one year post-implementation, by increasing revenue through enhanced data-driven marketing strategies and reducing operational costs via more efficient data handling processes.\n",
" \n",
"Jessica Davis (Technical Lead): Identifying all stakeholders is key. We have internal stakeholders such as our IT and customer service teams, and external ones including technology partners and end-users. We must understand their interests and influence on the project.\n",
"\n",
"Meeting Summary:\n",
"Alex Johnson (Project Manager): Good morning, everyone. Let's start today’s extensive session by clearly defining our project goals. The primary goal is to integrate advanced analytics into our platform, enhancing user experience and providing robust data insights.\n",
" \n",
"Taylor Brown (Stakeholder Representative): In alignment with Alex’s point, our business needs are clear. We need to boost customer engagement and satisfaction. This can be quantified by a target increase in daily active users and a reduction in customer complaints.\n",
" \n",
"Jessica Davis (Technical Lead): From a technical perspective, integrating these analytics will involve substantial updates to our data processing infrastructure and possibly migrating some services to a more scalable cloud solution.\n",
" \n",
"Sam Lee (Business Analyst): Given the complexity, we need to define the scope meticulously. This includes not only the technical implementation but also compliance with data protection regulations and ensuring our system is future-proofed for further upgrades.\n",
" \n",
"Chris Smith (Quality Assurance Manager): As for success criteria, we need to establish benchmarks. This means setting specific performance targets, like decreasing load times by 30% and achieving an error rate below 0.1%.\n",
" \n",
"Alex Johnson (Project Manager): Moving forward with our business objectives, we should aim to realize a return on investment within one year post-implementation, by increasing revenue through enhanced data-driven marketing strategies and reducing operational costs via more efficient data handling processes.\n",
" \n",
"Jessica Davis (Technical Lead): Identifying all stakeholders is key. We have internal stakeholders such as our IT and customer service teams, and external ones including technology partners and end-users. We must understand their interests and influence on the project.\n",
"\u001b[00m\n",
"\u001b[32;1m\u001b[1;3mFinal Answer:\n",
"Project Goals:\n",
"1. Integrate advanced analytics into the platform to enhance user experience and provide robust data insights.\n",
"2. Boost customer engagement and satisfaction by increasing daily active users and reducing customer complaints.\n",
"3. Realize a return on investment within one year post-implementation by increasing revenue through data-driven marketing strategies and reducing operational costs.\n",
"\n",
"Technical Requirements:\n",
"1. Substantial updates to data processing infrastructure.\n",
"2. Possible migration of services to a more scalable cloud solution.\n",
"3. Compliance with data protection regulations.\n",
"4. Future-proofing the system for further upgrades.\n",
"\n",
"Stakeholder Information:\n",
"1. Internal stakeholders: IT and customer service teams.\n",
"2. External stakeholders: Technology partners and end-users.\n",
"3. Understanding their interests and influence on the project is crucial.\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n",
"\u001b[1m\u001b[92m [DEBUG]: == [Data Extraction Agent] Task output: Project Goals:\n",
"1. Integrate advanced analytics into the platform to enhance user experience and provide robust data insights.\n",
"2. Boost customer engagement and satisfaction by increasing daily active users and reducing customer complaints.\n",
"3. Realize a return on investment within one year post-implementation by increasing revenue through data-driven marketing strategies and reducing operational costs.\n",
"\n",
"Technical Requirements:\n",
"1. Substantial updates to data processing infrastructure.\n",
"2. Possible migration of services to a more scalable cloud solution.\n",
"3. Compliance with data protection regulations.\n",
"4. Future-proofing the system for further upgrades.\n",
"\n",
"Stakeholder Information:\n",
"1. Internal stakeholders: IT and customer service teams.\n",
"2. External stakeholders: Technology partners and end-users.\n",
"3. Understanding their interests and influence on the project is crucial.\n",
"\n",
"\u001b[00m\n",
"\u001b[1m\u001b[95m [DEBUG]: == Working Agent: BRD Compiler\u001b[00m\n",
"\u001b[1m\u001b[95m [INFO]: == Starting Task: 1. Accept the structured and categorized data from the Data Extraction Agent.\n",
"2. Open and read the BRD template for data insertion.\n",
"3. Insert the received data into the respective sections of the BRD template.\n",
"4. Apply formatting rules to ensure the document is professional and adheres to standards.\n",
"5. Save the populated and formatted document as a new markdown file, marking the task as complete.\n",
"\u001b[00m\n",
"\n",
"\n",
"\u001b[1m> Entering new CrewAgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3mI need to efficiently compile the structured and categorized data from the Data Extraction Agent into a well-organized Business Requirements Document that aligns with the project goals, technical requirements, and stakeholder information.\n",
"\n",
"Action:\n",
"Delegate work to co-worker\n",
"Action Input:\n",
"{\n",
" \"task\": \"Extract structured and categorized data\",\n",
" \"context\": \"I need the Data Extraction Agent to provide me with the structured and categorized data for the Business Requirements Document.\"\n",
"}\n",
"\u001b[0m\u001b[91m \n",
"\n",
"I encountered an error while trying to use the tool. This was the error: 'NoneType' object has no attribute 'startswith'.\n",
" Tool Delegate work to co-worker accepts these inputs: Delegate work to co-worker(task: str, context: str, coworker: Optional[str] = None, **kwargs) - Delegate a specific task to one of the following co-workers: [Text Interpreter, Data Extraction Agent]\n",
"The input to this tool should be the co-worker, the task you want them to do, and ALL necessary context to execute the task, they know nothing about the task, so share absolute everything you know, don't reference things but instead explain them.\n",
"\u001b[00m\n",
"\u001b[32;1m\u001b[1;3mThought: I need to efficiently compile the structured and categorized data from the Data Extraction Agent into a well-organized Business Requirements Document that aligns with the project goals, technical requirements, and stakeholder information.\n",
"\n",
"Action: Search a txt's content\n",
"Action Input: {\"search_query\": \"BRD Template\"}\u001b[0m\u001b[95m \n",
"\n",
"Relevant Content:\n",
"Business Requirements Document (BRD)\n",
"1. Document Information\n",
"•\tDocument Title:\n",
"•\tDate:\n",
"•\tAuthor:\n",
"•\tVersion:\n",
"2. Executive Summary\n",
"2.1. Purpose\n",
"Briefly describe the purpose of the POC and the document.\n",
"2.2. Project Background\n",
"Provide a brief context for the POC, including the business problem it aims to address.\n",
"2.3. Scope\n",
"Outline what the POC will cover and what it will not cover.\n",
"3. Business Objectives\n",
"3.1. Goals\n",
"List the main goals of the POC.\n",
"3.2. Success Criteria\n",
"Define the criteria for determining the success of the POC.\n",
"4. Stakeholders\n",
"4.1. Stakeholder List\n",
"List key stakeholders involved in the POC.\n",
"Name\tRole\tContact Information\n",
"\t\t\n",
"\t\t\n",
"5. Requirements\n",
"5.1. Functional Requirements\n",
"List the critical functional requirements.\n",
"Requirement ID\tDescription\tPriority\tAcceptance Criteria\n",
"\t\t\t\n",
"\t\t\t\n",
"5.2. Non-Functional Requirements\n",
"List key non-functional requirements, if any.\n",
"Requirement ID\tDescription\tPriority\tAcceptance Criteria\n",
"\t\t\t\n",
"\t\t\t\n",
"6. Assumptions and Constraints\n",
"6.1. Assumptions\n",
"List assumptions made during the POC planning.\n",
"6.2. Constraints\n",
"Describe any constraints, such as budget, time, or technology limitations.\n",
"7. Risks and Mitigation\n",
"7.1. Identified Risks\n",
"List potential risks and mitigation strategies.\n",
"Risk ID\tDescription\tImpact\tProbability\tMitigation Strategy\n",
"\t\t\t\t\n",
"8. Dependencies\n",
"8.1. Dependencies\n",
"List any dependencies relevant to the POC.\n",
"9. Glossary\n",
"Define key terms and acronyms used in the document.\n",
"\n",
"Jessica Davis (Technical Lead): Technically, we should consider the possibility of future expansions. This means building in modular capabilities so new features can be added as customer needs evolve without major disruptions to the existing system.\n",
" \n",
"Taylor Brown (Stakeholder Representative): Finally, from a business perspective, we need a detailed cost-benefit analysis post-implementation to measure whether the project has met its ROI targets and how it has impacted customer metrics and overall business operations.\n",
" \n",
"Alex Johnson (Project Manager): With all these points in detail, our next steps are to draft a comprehensive project plan that includes timelines, budgeting, and resource allocation based on today’s discussion. Let’s aim to have that ready by next week’s meeting.\n",
"\n",
"Jessica Davis (Technical Lead): Technically, we should consider the possibility of future expansions. This means building in modular capabilities so new features can be added as customer needs evolve without major disruptions to the existing system.\n",
" \n",
"Taylor Brown (Stakeholder Representative): Finally, from a business perspective, we need a detailed cost-benefit analysis post-implementation to measure whether the project has met its ROI targets and how it has impacted customer metrics and overall business operations.\n",
" \n",
"Alex Johnson (Project Manager): With all these points in detail, our next steps are to draft a comprehensive project plan that includes timelines, budgeting, and resource allocation based on today’s discussion. Let’s aim to have that ready by next week’s meeting.\n",
"\u001b[00m\n",
"\u001b[32;1m\u001b[1;3mFinal Answer:\n",
"\n",
"# Business Requirements Document (BRD)\n",
"\n",
"## Document Information\n",
"- Document Title: Business Requirements Document for Advanced Analytics Integration\n",
"- Date: [Current Date]\n",
"- Author: [Your Name]\n",
"- Version: 1.0\n",
"\n",
"## Executive Summary\n",
"### 2.1. Purpose\n",
"The purpose of this document is to outline the business requirements for integrating advanced analytics into the platform to enhance user experience and provide robust data insights.\n",
"\n",
"### 2.2. Project Background\n",
"The project aims to address the business problem of improving customer engagement and satisfaction by increasing daily active users and reducing customer complaints through data-driven marketing strategies.\n",
"\n",
"### 2.3. Scope\n",
"The scope of this project includes substantial updates to data processing infrastructure, possible migration to a scalable cloud solution, compliance with data protection regulations, and future-proofing the system for further upgrades.\n",
"\n",
"## Business Objectives\n",
"### 3.1. Goals\n",
"- Integrate advanced analytics to enhance user experience.\n",
"- Increase daily active users and reduce customer complaints.\n",
"- Realize a return on investment within one year post-implementation.\n",
"\n",
"### 3.2. Success Criteria\n",
"- Increased user engagement metrics.\n",
"- Reduced customer complaints by x%.\n",
"- Revenue increase through data-driven marketing strategies.\n",
"- Operational cost reduction by x%.\n",
"\n",
"## Stakeholders\n",
"### 4.1. Stakeholder List\n",
"| Name | Role | Contact Information |\n",
"|-----------------|-----------------------|---------------------|\n",
"| Internal Stakeholders | IT and customer service teams | - |\n",
"| External Stakeholders | Technology partners and end-users | - |\n",
"\n",
"## Requirements\n",
"### 5.1. Functional Requirements\n",
"| Requirement ID | Description | Priority | Acceptance Criteria |\n",
"|----------------|-------------|----------|----------------------|\n",
"\n",
"### 5.2. Non-Functional Requirements\n",
"| Requirement ID | Description | Priority | Acceptance Criteria |\n",
"|----------------|-------------|----------|----------------------|\n",
"\n",
"## Assumptions and Constraints\n",
"### 6.1. Assumptions\n",
"- [List of assumptions made during planning]\n",
"\n",
"### 6.2. Constraints\n",
"- [Description of any constraints such as budget, time, or technology limitations]\n",
"\n",
"## Risks and Mitigation\n",
"### 7.1. Identified Risks\n",
"| Risk ID | Description | Impact | Probability | Mitigation Strategy |\n",
"|---------|-------------|--------|-------------|----------------------|\n",
"\n",
"## Dependencies\n",
"### 8.1. Dependencies\n",
"- [List of dependencies relevant to the project]\n",
"\n",
"## Glossary\n",
"- [Define key terms and acronyms used in the document]\n",
"\n",
"---\n",
"\n",
"**Technical Lead Input (Jessica Davis):**\n",
"Technically, we should consider the possibility of future expansions. This means building in modular capabilities so new features can be added as customer needs evolve without major disruptions to the existing system.\n",
"\n",
"**Stakeholder Representative Input (Taylor Brown):**\n",
"Finally, from a business perspective, we need a detailed cost-benefit analysis post-implementation to measure whether the project has met its ROI targets and how it has impacted customer metrics and overall business operations.\n",
"\n",
"**Project Manager Input (Alex Johnson):**\n",
"With all these points in detail, our next steps are to draft a comprehensive project plan that includes timelines, budgeting, and resource allocation based on today’s discussion. Let’s aim to have that ready by next week’s meeting.\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n",
"\u001b[1m\u001b[92m [DEBUG]: == [BRD Compiler] Task output: # Business Requirements Document (BRD)\n",
"\n",
"## Document Information\n",
"- Document Title: Business Requirements Document for Advanced Analytics Integration\n",
"- Date: [Current Date]\n",
"- Author: [Your Name]\n",
"- Version: 1.0\n",
"\n",
"## Executive Summary\n",
"### 2.1. Purpose\n",
"The purpose of this document is to outline the business requirements for integrating advanced analytics into the platform to enhance user experience and provide robust data insights.\n",
"\n",
"### 2.2. Project Background\n",
"The project aims to address the business problem of improving customer engagement and satisfaction by increasing daily active users and reducing customer complaints through data-driven marketing strategies.\n",
"\n",
"### 2.3. Scope\n",
"The scope of this project includes substantial updates to data processing infrastructure, possible migration to a scalable cloud solution, compliance with data protection regulations, and future-proofing the system for further upgrades.\n",
"\n",
"## Business Objectives\n",
"### 3.1. Goals\n",
"- Integrate advanced analytics to enhance user experience.\n",
"- Increase daily active users and reduce customer complaints.\n",
"- Realize a return on investment within one year post-implementation.\n",
"\n",
"### 3.2. Success Criteria\n",
"- Increased user engagement metrics.\n",
"- Reduced customer complaints by x%.\n",
"- Revenue increase through data-driven marketing strategies.\n",
"- Operational cost reduction by x%.\n",
"\n",
"## Stakeholders\n",
"### 4.1. Stakeholder List\n",
"| Name | Role | Contact Information |\n",
"|-----------------|-----------------------|---------------------|\n",
"| Internal Stakeholders | IT and customer service teams | - |\n",
"| External Stakeholders | Technology partners and end-users | - |\n",
"\n",
"## Requirements\n",
"### 5.1. Functional Requirements\n",
"| Requirement ID | Description | Priority | Acceptance Criteria |\n",
"|----------------|-------------|----------|----------------------|\n",
"\n",
"### 5.2. Non-Functional Requirements\n",
"| Requirement ID | Description | Priority | Acceptance Criteria |\n",
"|----------------|-------------|----------|----------------------|\n",
"\n",
"## Assumptions and Constraints\n",
"### 6.1. Assumptions\n",
"- [List of assumptions made during planning]\n",
"\n",
"### 6.2. Constraints\n",
"- [Description of any constraints such as budget, time, or technology limitations]\n",
"\n",
"## Risks and Mitigation\n",
"### 7.1. Identified Risks\n",
"| Risk ID | Description | Impact | Probability | Mitigation Strategy |\n",
"|---------|-------------|--------|-------------|----------------------|\n",
"\n",
"## Dependencies\n",
"### 8.1. Dependencies\n",
"- [List of dependencies relevant to the project]\n",
"\n",
"## Glossary\n",
"- [Define key terms and acronyms used in the document]\n",
"\n",
"---\n",
"\n",
"**Technical Lead Input (Jessica Davis):**\n",
"Technically, we should consider the possibility of future expansions. This means building in modular capabilities so new features can be added as customer needs evolve without major disruptions to the existing system.\n",
"\n",
"**Stakeholder Representative Input (Taylor Brown):**\n",
"Finally, from a business perspective, we need a detailed cost-benefit analysis post-implementation to measure whether the project has met its ROI targets and how it has impacted customer metrics and overall business operations.\n",
"\n",
"**Project Manager Input (Alex Johnson):**\n",
"With all these points in detail, our next steps are to draft a comprehensive project plan that includes timelines, budgeting, and resource allocation based on today’s discussion. Let’s aim to have that ready by next week’s meeting.\n",
"\n",
"\u001b[00m\n"
]
}
],
"source": [
"\n",
"with gr.Blocks() as demo:\n",
" with gr.Row():\n",
" file_input = gr.File(label=\"Upload a text file\")\n",
" download_btn = gr.File(label=\"Download Processed File in Markdown\", file_count=\"single\")\n",
" with gr.Row():\n",
" markdown_output = gr.Markdown()\n",
"\n",
" file_input.change(process_file, inputs=file_input, outputs=[download_btn, markdown_output])\n",
"\n",
"demo.launch(share=True)\n"
]
}
],
"metadata": {
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
|