Tidying up
This commit is contained in:
169
week5/day1.ipynb
169
week5/day1.ipynb
@@ -18,7 +18,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": null,
|
||||
"id": "ba2779af-84ef-4227-9e9e-6eaf0df87e77",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -34,7 +34,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"execution_count": null,
|
||||
"id": "58c85082-e417-4708-9efe-81a5d55d1424",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -46,7 +46,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": null,
|
||||
"id": "ee78efcb-60fe-449e-a944-40bab26261af",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -60,7 +60,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": null,
|
||||
"id": "9e0652c2-3d76-40c7-8313-9dc1895155a8",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -79,28 +79,17 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"execution_count": null,
|
||||
"id": "2c85a11b-b04d-4066-b243-f96139ca106f",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"\"# Avery Lancaster\\n\\n## Summary\\n- **Date of Birth**: March 15, 1985 \\n- **Job Title**: Co-Founder & Chief Executive Officer (CEO) \\n- **Location**: San Francisco, California \\n\\n## Insurellm Career Progression\\n- **2015 - Present**: Co-Founder & CEO \\n Avery Lancaster co-founded Insurellm in 2015 and has since guided the company to its current position as a leading Insurance Tech provider. Avery is known for her innovative leadership strategies and risk management expertise that have catapulted the company into the mainstream insurance market. \\n\\n- **2013 - 2015**: Senior Product Manager at Innovate Insurance Solutions \\n Before launching Insurellm, Avery was a leading Senior Product Manager at Innovate Insurance Solutions, where she developed groundbreaking insurance products aimed at the tech sector. \\n\\n- **2010 - 2013**: Business Analyst at Edge Analytics \\n Prior to joining Innovate, Avery worked as a Business Analyst, focusing on market trends and consumer preferences in the insurance space. This position laid the groundwork for Avery’s future entrepreneurial endeavors.\\n\\n## Annual Performance History\\n- **2015**: **Exceeds Expectations** \\n Avery’s leadership during Insurellm's foundational year led to successful product launches and securing initial funding. \\n\\n- **2016**: **Meets Expectations** \\n Growth continued, though challenges arose in operational efficiency that required Avery's attention. \\n\\n- **2017**: **Developing** \\n Market competition intensified, and monthly sales metrics were below targets. Avery implemented new strategies which required a steep learning curve. \\n\\n- **2018**: **Exceeds Expectations** \\n Under Avery’s pivoted vision, Insurellm launched two new successful products that significantly increased market share. \\n\\n- **2019**: **Meets Expectations** \\n Steady growth, however, some team tensions led to a minor drop in employee morale. Avery recognized the need to enhance company culture. \\n\\n- **2020**: **Below Expectations** \\n The COVID-19 pandemic posed unforeseen operational difficulties. Avery faced criticism for delayed strategy shifts, although efforts were eventually made to stabilize the company. \\n\\n- **2021**: **Exceptional** \\n Avery's decisive transition to remote work and rapid adoption of digital tools led to record-high customer satisfaction levels and increased sales. \\n\\n- **2022**: **Satisfactory** \\n Avery focused on rebuilding team dynamics and addressing employee concerns, leading to overall improvement despite a saturated market. \\n\\n- **2023**: **Exceeds Expectations** \\n Market leadership was regained with innovative approaches to personalized insurance solutions. Avery is now recognized in industry publications as a leading voice in Insurance Tech innovation.\\n\\n## Compensation History\\n- **2015**: $150,000 base salary + Significant equity stake \\n- **2016**: $160,000 base salary + Equity increase \\n- **2017**: $150,000 base salary + Decrease in bonus due to performance \\n- **2018**: $180,000 base salary + performance bonus of $30,000 \\n- **2019**: $185,000 base salary + market adjustment + $5,000 bonus \\n- **2020**: $170,000 base salary (temporary reduction due to COVID-19) \\n- **2021**: $200,000 base salary + performance bonus of $50,000 \\n- **2022**: $210,000 base salary + retention bonus \\n- **2023**: $225,000 base salary + $75,000 performance bonus \\n\\n## Other HR Notes\\n- **Professional Development**: Avery has actively participated in leadership training programs and industry conferences, representing Insurellm and fostering partnerships. \\n- **Diversity & Inclusion Initiatives**: Avery has championed a commitment to diversity in hiring practices, seeing visible improvements in team representation since 2021. \\n- **Work-Life Balance**: Feedback revealed concerns regarding work-life balance, which Avery has approached by implementing flexible working conditions and ensuring regular check-ins with the team.\\n- **Community Engagement**: Avery led community outreach efforts, focusing on financial literacy programs, particularly aimed at underserved populations, improving Insurellm's corporate social responsibility image. \\n\\nAvery Lancaster has demonstrated resilience and adaptability throughout her career at Insurellm, positioning the company as a key player in the insurance technology landscape.\""
|
||||
]
|
||||
},
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"context[\"Lancaster\"]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"execution_count": null,
|
||||
"id": "a1d231f9-091e-4c72-b0f8-6af578a74e22",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -117,28 +106,17 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"execution_count": null,
|
||||
"id": "aba46a57-d973-4195-8fe3-70fc60687192",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"dict_keys(['Chen', 'Spencer', 'Tran', 'Blake', 'Lancaster', 'Thompson', 'Greene', 'Thomson', 'Trenton', 'Harper', 'Bishop', 'Carter', 'Rellm', 'Markellm', 'Homellm', 'Carllm'])"
|
||||
]
|
||||
},
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"context.keys()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"execution_count": null,
|
||||
"id": "129c7d1e-0094-4479-9459-f9360b95f244",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -148,7 +126,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"execution_count": null,
|
||||
"id": "d40e390b-c110-42d5-8d80-daf3295b9862",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -163,28 +141,17 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"execution_count": null,
|
||||
"id": "d94c768d-c47a-4c34-85e9-7b786da96507",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"[]"
|
||||
]
|
||||
},
|
||||
"execution_count": 14,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"get_relevant_context(\"Who is Avery and what is carllm?\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 16,
|
||||
"execution_count": null,
|
||||
"id": "5a7cef7f-f214-4bac-8217-3f9ab9ba1bf0",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -200,93 +167,17 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 18,
|
||||
"execution_count": null,
|
||||
"id": "2b36399c-440b-4049-9d39-68d208283c71",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Who is Alex Lancaster?\n",
|
||||
"\n",
|
||||
"The following additional context might be relevant in answering this question:\n",
|
||||
"\n",
|
||||
"# Avery Lancaster\n",
|
||||
"\n",
|
||||
"## Summary\n",
|
||||
"- **Date of Birth**: March 15, 1985 \n",
|
||||
"- **Job Title**: Co-Founder & Chief Executive Officer (CEO) \n",
|
||||
"- **Location**: San Francisco, California \n",
|
||||
"\n",
|
||||
"## Insurellm Career Progression\n",
|
||||
"- **2015 - Present**: Co-Founder & CEO \n",
|
||||
" Avery Lancaster co-founded Insurellm in 2015 and has since guided the company to its current position as a leading Insurance Tech provider. Avery is known for her innovative leadership strategies and risk management expertise that have catapulted the company into the mainstream insurance market. \n",
|
||||
"\n",
|
||||
"- **2013 - 2015**: Senior Product Manager at Innovate Insurance Solutions \n",
|
||||
" Before launching Insurellm, Avery was a leading Senior Product Manager at Innovate Insurance Solutions, where she developed groundbreaking insurance products aimed at the tech sector. \n",
|
||||
"\n",
|
||||
"- **2010 - 2013**: Business Analyst at Edge Analytics \n",
|
||||
" Prior to joining Innovate, Avery worked as a Business Analyst, focusing on market trends and consumer preferences in the insurance space. This position laid the groundwork for Avery’s future entrepreneurial endeavors.\n",
|
||||
"\n",
|
||||
"## Annual Performance History\n",
|
||||
"- **2015**: **Exceeds Expectations** \n",
|
||||
" Avery’s leadership during Insurellm's foundational year led to successful product launches and securing initial funding. \n",
|
||||
"\n",
|
||||
"- **2016**: **Meets Expectations** \n",
|
||||
" Growth continued, though challenges arose in operational efficiency that required Avery's attention. \n",
|
||||
"\n",
|
||||
"- **2017**: **Developing** \n",
|
||||
" Market competition intensified, and monthly sales metrics were below targets. Avery implemented new strategies which required a steep learning curve. \n",
|
||||
"\n",
|
||||
"- **2018**: **Exceeds Expectations** \n",
|
||||
" Under Avery’s pivoted vision, Insurellm launched two new successful products that significantly increased market share. \n",
|
||||
"\n",
|
||||
"- **2019**: **Meets Expectations** \n",
|
||||
" Steady growth, however, some team tensions led to a minor drop in employee morale. Avery recognized the need to enhance company culture. \n",
|
||||
"\n",
|
||||
"- **2020**: **Below Expectations** \n",
|
||||
" The COVID-19 pandemic posed unforeseen operational difficulties. Avery faced criticism for delayed strategy shifts, although efforts were eventually made to stabilize the company. \n",
|
||||
"\n",
|
||||
"- **2021**: **Exceptional** \n",
|
||||
" Avery's decisive transition to remote work and rapid adoption of digital tools led to record-high customer satisfaction levels and increased sales. \n",
|
||||
"\n",
|
||||
"- **2022**: **Satisfactory** \n",
|
||||
" Avery focused on rebuilding team dynamics and addressing employee concerns, leading to overall improvement despite a saturated market. \n",
|
||||
"\n",
|
||||
"- **2023**: **Exceeds Expectations** \n",
|
||||
" Market leadership was regained with innovative approaches to personalized insurance solutions. Avery is now recognized in industry publications as a leading voice in Insurance Tech innovation.\n",
|
||||
"\n",
|
||||
"## Compensation History\n",
|
||||
"- **2015**: $150,000 base salary + Significant equity stake \n",
|
||||
"- **2016**: $160,000 base salary + Equity increase \n",
|
||||
"- **2017**: $150,000 base salary + Decrease in bonus due to performance \n",
|
||||
"- **2018**: $180,000 base salary + performance bonus of $30,000 \n",
|
||||
"- **2019**: $185,000 base salary + market adjustment + $5,000 bonus \n",
|
||||
"- **2020**: $170,000 base salary (temporary reduction due to COVID-19) \n",
|
||||
"- **2021**: $200,000 base salary + performance bonus of $50,000 \n",
|
||||
"- **2022**: $210,000 base salary + retention bonus \n",
|
||||
"- **2023**: $225,000 base salary + $75,000 performance bonus \n",
|
||||
"\n",
|
||||
"## Other HR Notes\n",
|
||||
"- **Professional Development**: Avery has actively participated in leadership training programs and industry conferences, representing Insurellm and fostering partnerships. \n",
|
||||
"- **Diversity & Inclusion Initiatives**: Avery has championed a commitment to diversity in hiring practices, seeing visible improvements in team representation since 2021. \n",
|
||||
"- **Work-Life Balance**: Feedback revealed concerns regarding work-life balance, which Avery has approached by implementing flexible working conditions and ensuring regular check-ins with the team.\n",
|
||||
"- **Community Engagement**: Avery led community outreach efforts, focusing on financial literacy programs, particularly aimed at underserved populations, improving Insurellm's corporate social responsibility image. \n",
|
||||
"\n",
|
||||
"Avery Lancaster has demonstrated resilience and adaptability throughout her career at Insurellm, positioning the company as a key player in the insurance technology landscape.\n",
|
||||
"\n",
|
||||
"\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"print(add_context(\"Who is Alex Lancaster?\"))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 21,
|
||||
"execution_count": null,
|
||||
"id": "968e7bf2-e862-4679-a11f-6c1efb6ec8ca",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -320,32 +211,10 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 22,
|
||||
"execution_count": null,
|
||||
"id": "c3536590-85c7-4155-bd87-ae78a1467670",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Running on local URL: http://127.0.0.1:7865\n",
|
||||
"\n",
|
||||
"To create a public link, set `share=True` in `launch()`.\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<div><iframe src=\"http://127.0.0.1:7865/\" 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"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"view = gr.ChatInterface(chat).launch()"
|
||||
]
|
||||
|
||||
162
week5/day2.ipynb
162
week5/day2.ipynb
@@ -16,7 +16,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": null,
|
||||
"id": "ba2779af-84ef-4227-9e9e-6eaf0df87e77",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -31,7 +31,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"execution_count": null,
|
||||
"id": "802137aa-8a74-45e0-a487-d1974927d7ca",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -44,7 +44,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": null,
|
||||
"id": "58c85082-e417-4708-9efe-81a5d55d1424",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -57,7 +57,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": null,
|
||||
"id": "ee78efcb-60fe-449e-a944-40bab26261af",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -70,7 +70,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": null,
|
||||
"id": "730711a9-6ffe-4eee-8f48-d6cfb7314905",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -92,60 +92,30 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"execution_count": null,
|
||||
"id": "252f17e9-3529-4e81-996c-cfa9f08e75a8",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"31"
|
||||
]
|
||||
},
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"len(documents)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"execution_count": null,
|
||||
"id": "7e8decb0-d9b0-4d51-8402-7a6174d22159",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"Document(metadata={'source': 'knowledge-base/employees/Maxine Thompson.md', 'doc_type': 'employees'}, page_content=\"# HR Record\\n\\n# Maxine Thompson\\n\\n## Summary\\n- **Date of Birth:** January 15, 1991 \\n- **Job Title:** Data Engineer \\n- **Location:** Austin, Texas \\n\\n## Insurellm Career Progression\\n- **January 2017 - October 2018**: **Junior Data Engineer** \\n * Maxine joined Insurellm as a Junior Data Engineer, focusing primarily on ETL processes and data integration tasks. She quickly learned Insurellm's data architecture, collaborating with other team members to streamline data workflows. \\n- **November 2018 - December 2020**: **Data Engineer** \\n * In her new role, Maxine expanded her responsibilities to include designing comprehensive data models and improving data quality measures. Though she excelled in technical skills, communication issues with non-technical teams led to some project delays. \\n- **January 2021 - Present**: **Senior Data Engineer** \\n * Maxine was promoted to Senior Data Engineer after successfully leading a pivotal project that improved data retrieval times by 30%. She now mentors junior engineers and is involved in strategic data initiatives, solidifying her position as a valued asset at Insurellm. She was recognized as Insurellm Innovator of the year in 2023, receiving the prestiguous IIOTY 2023 award. \\n\\n## Annual Performance History\\n- **2017**: *Meets Expectations* \\n Maxine showed potential in her role but struggled with initial project deadlines. Her adaptability and willingness to learn made positive impacts on her team. \\n\\n- **2018**: *Exceeds Expectations* \\n Maxine improved significantly, becoming a reliable team member with strong problem-solving skills. She took on leadership in a project that automated data entry processes. \\n\\n- **2019**: *Needs Improvement* \\n During this year, difficult personal circumstances affected Maxine's performance. She missed key deadlines and had several communication issues with stakeholders. \\n\\n- **2020**: *Meets Expectations* \\n Maxine focused on regaining her footing and excelling with technical skills. She was stable, though not standout, in her contributions. Feedback indicated a need for more proactivity. \\n\\n- **2021**: *Exceeds Expectations* \\n Maxine spearheaded the transition to a new data warehousing solution, significantly enhancing Insurellm’s data analytics capabilities. This major achievement bolstered her reputation within the company. \\n\\n- **2022**: *Outstanding* \\n Maxine continued her upward trajectory, successfully implementing machine learning algorithms to predict customer behavior, which was well-received by the leadership team and improved client satisfaction. \\n\\n- **2023**: *Exceeds Expectations* \\n Maxine has taken on mentoring responsibilities and is leading a cross-functional team for data governance initiatives, showcasing her leadership and solidifying her role at Insurellm. \\n\\n## Compensation History\\n- **2017**: $70,000 (Junior Data Engineer) \\n- **2018**: $75,000 (Junior Data Engineer) \\n- **2019**: $80,000 (Data Engineer) \\n- **2020**: $84,000 (Data Engineer) \\n- **2021**: $95,000 (Senior Data Engineer) \\n- **2022**: $110,000 (Senior Data Engineer) \\n- **2023**: $120,000 (Senior Data Engineer) \\n\\n## Other HR Notes\\n- Maxine participated in various company-sponsored trainings related to big data technologies and cloud infrastructure. \\n- She was recognized for her contributions with the “Insurellm Innovator Award” in 2022. \\n- Maxine is currently involved in the women-in-tech initiative and participates in mentorship programs to guide junior employees. \\n- Future development areas include improving her stakeholder communication skills to ensure smoother project transitions and collaboration. \")"
|
||||
]
|
||||
},
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"documents[24]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"execution_count": null,
|
||||
"id": "7310c9c8-03c1-4efc-a104-5e89aec6db1a",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Created a chunk of size 1088, which is longer than the specified 1000\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=200)\n",
|
||||
"chunks = text_splitter.split_documents(documents)"
|
||||
@@ -153,60 +123,30 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"execution_count": null,
|
||||
"id": "cd06e02f-6d9b-44cc-a43d-e1faa8acc7bb",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"123"
|
||||
]
|
||||
},
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"len(chunks)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"execution_count": null,
|
||||
"id": "d2562754-9052-4aae-92c1-37236435ea06",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"Document(metadata={'source': 'knowledge-base/products/Markellm.md', 'doc_type': 'products'}, page_content='- **User-Friendly Interface**: Designed with user experience in mind, Markellm features an intuitive interface that allows consumers to easily browse and compare various insurance offerings from multiple providers.\\n\\n- **Real-Time Quotes**: Consumers can receive real-time quotes from different insurance companies, empowering them to make informed decisions quickly without endless back-and-forth communication.\\n\\n- **Customized Recommendations**: Based on user profiles and preferences, Markellm provides personalized insurance recommendations, ensuring consumers find the right coverage at competitive rates.\\n\\n- **Secure Transactions**: Markellm prioritizes security, employing robust encryption methods to ensure that all transactions and data exchanges are safe and secure.\\n\\n- **Customer Support**: Our dedicated support team is always available to assist both consumers and insurers throughout the process, providing guidance and answering any questions that may arise.')"
|
||||
]
|
||||
},
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"chunks[6]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 16,
|
||||
"execution_count": null,
|
||||
"id": "2c54b4b6-06da-463d-bee7-4dd456c2b887",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Document types found: employees, contracts, company, products\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"doc_types = set(chunk.metadata['doc_type'] for chunk in chunks)\n",
|
||||
"print(f\"Document types found: {', '.join(doc_types)}\")"
|
||||
@@ -214,74 +154,10 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"execution_count": null,
|
||||
"id": "128c73f7-f149-4904-a554-8140941fce0c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"page_content='## Support\n",
|
||||
"\n",
|
||||
"1. **Customer Support**: Velocity Auto Solutions will have access to Insurellm’s customer support team via email or chatbot, available 24/7. \n",
|
||||
"2. **Technical Maintenance**: Regular maintenance and updates to the Carllm platform will be conducted by Insurellm, with any downtime communicated in advance. \n",
|
||||
"3. **Training & Resources**: Initial training sessions will be provided for Velocity Auto Solutions’ staff to ensure effective use of the Carllm suite. Regular resources and documentation will be made available online.\n",
|
||||
"\n",
|
||||
"---\n",
|
||||
"\n",
|
||||
"**Accepted and Agreed:** \n",
|
||||
"**For Velocity Auto Solutions** \n",
|
||||
"Signature: _____________________ \n",
|
||||
"Name: John Doe \n",
|
||||
"Title: CEO \n",
|
||||
"Date: _____________________ \n",
|
||||
"\n",
|
||||
"**For Insurellm** \n",
|
||||
"Signature: _____________________ \n",
|
||||
"Name: Jane Smith \n",
|
||||
"Title: VP of Sales \n",
|
||||
"Date: _____________________' metadata={'source': 'knowledge-base/contracts/Contract with Velocity Auto Solutions for Carllm.md', 'doc_type': 'contracts'}\n",
|
||||
"_________\n",
|
||||
"page_content='3. **Regular Updates:** Insurellm will offer ongoing updates and enhancements to the Homellm platform, including new features and security improvements.\n",
|
||||
"\n",
|
||||
"4. **Feedback Implementation:** Insurellm will actively solicit feedback from GreenValley Insurance to ensure Homellm continues to meet their evolving needs.\n",
|
||||
"\n",
|
||||
"---\n",
|
||||
"\n",
|
||||
"**Signatures:**\n",
|
||||
"\n",
|
||||
"_________________________________ \n",
|
||||
"**[Name]** \n",
|
||||
"**Title**: CEO \n",
|
||||
"**Insurellm, Inc.**\n",
|
||||
"\n",
|
||||
"_________________________________ \n",
|
||||
"**[Name]** \n",
|
||||
"**Title**: COO \n",
|
||||
"**GreenValley Insurance, LLC** \n",
|
||||
"\n",
|
||||
"---\n",
|
||||
"\n",
|
||||
"This agreement represents the complete understanding of both parties regarding the use of the Homellm product and supersedes any prior agreements or communications.' metadata={'source': 'knowledge-base/contracts/Contract with GreenValley Insurance for Homellm.md', 'doc_type': 'contracts'}\n",
|
||||
"_________\n",
|
||||
"page_content='# Avery Lancaster\n",
|
||||
"\n",
|
||||
"## Summary\n",
|
||||
"- **Date of Birth**: March 15, 1985 \n",
|
||||
"- **Job Title**: Co-Founder & Chief Executive Officer (CEO) \n",
|
||||
"- **Location**: San Francisco, California \n",
|
||||
"\n",
|
||||
"## Insurellm Career Progression\n",
|
||||
"- **2015 - Present**: Co-Founder & CEO \n",
|
||||
" Avery Lancaster co-founded Insurellm in 2015 and has since guided the company to its current position as a leading Insurance Tech provider. Avery is known for her innovative leadership strategies and risk management expertise that have catapulted the company into the mainstream insurance market. \n",
|
||||
"\n",
|
||||
"- **2013 - 2015**: Senior Product Manager at Innovate Insurance Solutions \n",
|
||||
" Before launching Insurellm, Avery was a leading Senior Product Manager at Innovate Insurance Solutions, where she developed groundbreaking insurance products aimed at the tech sector.' metadata={'source': 'knowledge-base/employees/Avery Lancaster.md', 'doc_type': 'employees'}\n",
|
||||
"_________\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for chunk in chunks:\n",
|
||||
" if 'CEO' in chunk.page_content:\n",
|
||||
|
||||
3075
week5/day3.ipynb
3075
week5/day3.ipynb
File diff suppressed because one or more lines are too long
3089
week5/day4.5.ipynb
3089
week5/day4.5.ipynb
File diff suppressed because one or more lines are too long
3093
week5/day4.ipynb
3093
week5/day4.ipynb
File diff suppressed because one or more lines are too long
3183
week5/day5.ipynb
3183
week5/day5.ipynb
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user