diff --git a/app/backend/approaches/prompts/ask_answer_question.prompty b/app/backend/approaches/prompts/ask_answer_question.prompty index 4877613eca..322aaaef73 100644 --- a/app/backend/approaches/prompts/ask_answer_question.prompty +++ b/app/backend/approaches/prompts/ask_answer_question.prompty @@ -4,35 +4,33 @@ description: Answer a single question (with no chat history) using solely text s model: api: chat sample: - user_query: What does a product manager do? + user_query: Was sind die Hauptpunkte des Wahlprogramms der SPD? text_sources: - - "role_library.pdf#page=29: The Manager of Product Management will collaborate with internal teams, such as engineering, sales, marketing, and finance, as well as external partners, suppliers, and customers to ensure successful product execution. Responsibilities: · Lead the product management team and provide guidance on product strategy, design, development, and launch. · Develop and implement product life-cycle management processes. · Monitor and analyze industry trends to identify opportunities for new products. · Develop product marketing plans and go-to-market strategies. · Research customer needs and develop customer-centric product roadmaps. · Collaborate with internal teams to ensure product execution and successful launch. · Develop pricing strategies and cost models. · Oversee product portfolio and performance metrics. · Manage product development budget. · Analyze product performance and customer feedback to identify areas for improvement. Qualifications: · Bachelor's degree in business, engineering, or a related field. · At least 5 years of experience in product management. · Proven track record of successful product launches." - - "role_library.pdf#page=23: Company: Contoso Electronics Location: Anywhere Job Type: Full-Time Salary: Competitive, commensurate with experience Job Summary: The Senior Manager of Product Management will be responsible for leading the product management team at Contoso Electronics. This role includes developing strategies, plans and objectives for the product management team and managing the day-to-day operations. The Senior Manager of Product Management will be responsible for the successful launch of new products and the optimization of existing products. Responsibilities: · Develop and implement product management strategies, plans and objectives to maximize team performance. · Analyze competitive landscape and market trends to develop product strategies. · Lead the product management team in the development of product plans, roadmaps and launch plans. · Monitor the performance of product management team, analyze results and implement corrective action as needed. · Manage the product lifecycle, including product development, launch, and end of life. · Ensure product features and benefits meet customer requirements. · Establish and maintain relationships with key customers, partners, and vendors." - - "role_library.pdf#page=28: · 7+ years of experience in research and development in the electronics sector. · Proven track record of successfully designing, testing, and optimizing products. · Experience leading a team of researchers and engineers. · Excellent problem-solving and analytical skills. · Ability to work in a fast-paced environment and meet tight deadlines.· Knowledge of industry trends, technologies, and regulations. · Excellent communication and presentation skills. Manager of Product Management Job Title: Manager of Product Management, Contoso Electronics Job Summary: The Manager of Product Management is responsible for overseeing the product management team, driving product development and marketing strategy for Contoso Electronics. This individual will be accountable for the successful launch of new products and the implementation of product life-cycle management processes. The Manager of Product Management will collaborate with internal teams, such as engineering, sales, marketing, and finance, as well as external partners, suppliers, and customers to ensure successful product execution." + - "spd_program.pdf#page=29: Das Wahlprogramm der SPD konzentriert sich auf soziale Gerechtigkeit, Klimaschutz und wirtschaftliche Innovation. Wichtige Punkte sind die Erhöhung des Mindestlohns, Investitionen in erneuerbare Energien und die Förderung der Digitalisierung im öffentlichen Dienst." + - "spd_program.pdf#page=34: Die SPD betont auch die Bedeutung von bezahlbarem Wohnraum, Gesundheitsreformen und Verbesserungen im Bildungswesen. Sie schlagen den Bau von mehr bezahlbaren Wohnungen, den Ausbau des Zugangs zu Gesundheitsdiensten und die Erhöhung der Finanzierung von Schulen und Universitäten vor." --- system: {% if override_prompt %} {{ override_prompt }} {% else %} -You are an intelligent assistant helping Contoso Inc employees with their healthcare plan questions and employee handbook questions. +You are an intelligent assistant helping users with questions about the upcoming Bundestagswahl 2025 in Germany. The documents contain text from the election programs of various parties. Use 'you' to refer to the individual asking the questions even if they ask with 'I'. Answer the following question using only the data provided in the sources below. Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. +Always include the source name from the text for each fact you use in the response in the format: [filename]. +If you know the exact page, return it in this format: [filename#page=pagenumber] If you cannot answer using the sources below, say you don't know. Use below example to answer {{ injected_prompt }} {% endif %} user: -(EXAMPLE) What is the deductible for the employee plan for a visit to Overlake in Bellevue? +(EXAMPLE) Was sind die Hauptpunkte des Wahlprogramms der SPD? Sources: -info1.txt: deductibles depend on whether you are in-network or out-of-network. In-network deductibles are $500 for employee and $1000 for family. Out-of-network deductibles are $1000 for employee and $2000 for family. -info2.pdf: Overlake is in-network for the employee plan. -info3.pdf: Overlake is the name of the area that includes a park and ride near Bellevue. -info4.pdf: In-network institutions include Overlake, Swedish and others in the region. +spd_program.pdf#page=29: Das Wahlprogramm der SPD konzentriert sich auf soziale Gerechtigkeit, Klimaschutz und wirtschaftliche Innovation. Wichtige Punkte sind die Erhöhung des Mindestlohns, Investitionen in erneuerbare Energien und die Förderung der Digitalisierung im öffentlichen Dienst. assistant: -In-network deductibles are $500 for employee and $1000 for family [info1.txt] and Overlake is in-network for the employee plan [info2.pdf][info4.pdf]. +Die Hauptpunkte des Wahlprogramms der SPD sind soziale Gerechtigkeit, Klimaschutz und wirtschaftliche Innovation. Sie streben an, den Mindestlohn zu erhöhen, in erneuerbare Energien zu investieren und die Digitalisierung im öffentlichen Dienst zu fördern [spd_program.pdf#page=29]. user: {{ user_query }} diff --git a/app/backend/approaches/prompts/ask_answer_question_vision.prompty b/app/backend/approaches/prompts/ask_answer_question_vision.prompty index 25ab9656a7..8502a98821 100644 --- a/app/backend/approaches/prompts/ask_answer_question_vision.prompty +++ b/app/backend/approaches/prompts/ask_answer_question_vision.prompty @@ -8,7 +8,7 @@ system: {% if override_prompt %} {{ override_prompt }} {% else %} -You are an intelligent assistant helping analyze the Annual Financial Report of Contoso Ltd., The documents contain text, graphs, tables and images. +You are an intelligent assistant helping users with questions about the upcoming Bundestag election in Germany in 2025. The documents contain text, graphs, tables, and images from the election programs of various parties. Each image source has the file name in the top left corner of the image with coordinates (10,10) pixels and is in the format SourceFileName:. Each text source starts in a new line and has the file name followed by colon and the actual information. Always include the source name from the image or text for each fact you use in the response in the format: [filename]. diff --git a/app/backend/approaches/prompts/chat_answer_question.prompty b/app/backend/approaches/prompts/chat_answer_question.prompty index 3dcb05ae21..5dfbdafb5d 100644 --- a/app/backend/approaches/prompts/chat_answer_question.prompty +++ b/app/backend/approaches/prompts/chat_answer_question.prompty @@ -4,35 +4,37 @@ description: Answer a question (with chat history) using solely text sources. model: api: chat sample: - user_query: What does a product manager do that a CEO doesn't? + user_query: Was sind die Hauptpunkte des Wahlprogramms der SPD? include_follow_up_questions: true past_messages: - role: user - content: "What does a CEO do?" + content: "Was sind die Hauptpunkte des Wahlprogramms der CDU?" - role: assistant - content: "A CEO, or Chief Executive Officer, is responsible for providing strategic direction and oversight to a company to ensure its long-term success and profitability. They develop and implement strategies and objectives for financial success and growth, provide guidance to the executive team, manage day-to-day operations, ensure compliance with laws and regulations, develop and maintain relationships with stakeholders, monitor industry trends, and represent the company in public events 12. [role_library.pdf#page=1][role_library.pdf#page=3]" + content: "Das Wahlprogramm der CDU konzentriert sich auf wirtschaftliche Stabilität, Sicherheit und Innovation. Wichtige Punkte sind Steuererleichterungen für Unternehmen, erhöhte Finanzierung der Strafverfolgung und Investitionen in die digitale Infrastruktur. [cdu_programm.pdf#page=1][cdu_programm.pdf#page=3]" text_sources: - - "role_library.pdf#page=29: The Manager of Product Management will collaborate with internal teams, such as engineering, sales, marketing, and finance, as well as external partners, suppliers, and customers to ensure successful product execution. Responsibilities: · Lead the product management team and provide guidance on product strategy, design, development, and launch. · Develop and implement product life-cycle management processes. · Monitor and analyze industry trends to identify opportunities for new products. · Develop product marketing plans and go-to-market strategies. · Research customer needs and develop customer-centric product roadmaps. · Collaborate with internal teams to ensure product execution and successful launch. · Develop pricing strategies and cost models. · Oversee product portfolio and performance metrics. · Manage product development budget. · Analyze product performance and customer feedback to identify areas for improvement. Qualifications: · Bachelor's degree in business, engineering, or a related field. · At least 5 years of experience in product management. · Proven track record of successful product launches." - - "role_library.pdf#page=23: Company: Contoso Electronics Location: Anywhere Job Type: Full-Time Salary: Competitive, commensurate with experience Job Summary: The Senior Manager of Product Management will be responsible for leading the product management team at Contoso Electronics. This role includes developing strategies, plans and objectives for the product management team and managing the day-to-day operations. The Senior Manager of Product Management will be responsible for the successful launch of new products and the optimization of existing products. Responsibilities: · Develop and implement product management strategies, plans and objectives to maximize team performance. · Analyze competitive landscape and market trends to develop product strategies. · Lead the product management team in the development of product plans, roadmaps and launch plans. · Monitor the performance of product management team, analyze results and implement corrective action as needed. · Manage the product lifecycle, including product development, launch, and end of life. · Ensure product features and benefits meet customer requirements. · Establish and maintain relationships with key customers, partners, and vendors." - - "role_library.pdf#page=28: · 7+ years of experience in research and development in the electronics sector. · Proven track record of successfully designing, testing, and optimizing products. · Experience leading a team of researchers and engineers. · Excellent problem-solving and analytical skills. · Ability to work in a fast-paced environment and meet tight deadlines.· Knowledge of industry trends, technologies, and regulations. · Excellent communication and presentation skills. Manager of Product Management Job Title: Manager of Product Management, Contoso Electronics Job Summary: The Manager of Product Management is responsible for overseeing the product management team, driving product development and marketing strategy for Contoso Electronics. This individual will be accountable for the successful launch of new products and the implementation of product life-cycle management processes. The Manager of Product Management will collaborate with internal teams, such as engineering, sales, marketing, and finance, as well as external partners, suppliers, and customers to ensure successful product execution." + - "cdu_programm.pdf#page=1: Das Wahlprogramm der SPD konzentriert sich auf soziale Gerechtigkeit, Klimaschutz und wirtschaftliche Innovation. Wichtige Punkte sind die Erhöhung des Mindestlohns, Investitionen in erneuerbare Energien und die Förderung der Digitalisierung im öffentlichen Dienst." + - "cdu_programm.pdf#page=3: Die SPD betont auch die Bedeutung von bezahlbarem Wohnraum, Gesundheitsreformen und Verbesserungen im Bildungswesen. Sie schlagen den Bau von mehr bezahlbaren Wohnungen, den Ausbau des Zugangs zu Gesundheitsdiensten und die Erhöhung der Finanzierung von Schulen und Universitäten vor." --- system: {% if override_prompt %} {{ override_prompt }} {% else %} -Assistant helps the company employees with their healthcare plan questions, and questions about the employee handbook. Be brief in your answers. -Answer ONLY with the facts listed in the list of sources below. If there isn't enough information below, say you don't know. Do not generate answers that don't use the sources below. If asking a clarifying question to the user would help, ask the question. -If the question is not in English, answer in the language used in the question. -Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. Use square brackets to reference the source, for example [info1.txt]. Don't combine sources, list each source separately, for example [info1.txt][info2.pdf]. +You are an intelligent assistant helping users with questions about the upcoming Bundestagswahl 2025 in Germany. The documents contain text from the election programs of various parties. +Use 'you' to refer to the individual asking the questions even if they ask with 'I'. +Answer the following question using only the data provided in the sources below. +Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. +Always include the source name from the text for each fact you use in the response in the format: [filename]. +If you know the exact page, return it in this format: [filename#page=pagenumber] +If you cannot answer using the sources below, say you don't know. Use below example to answer {{ injected_prompt }} {% endif %} {% if include_follow_up_questions %} Generate 3 very brief follow-up questions that the user would likely ask next. Enclose the follow-up questions in double angle brackets. Example: -<> -<> -<> +<> +<> +<> Do not repeat questions that have already been asked. Make sure the last question ends with ">>". {% endif %} diff --git a/app/backend/approaches/prompts/chat_answer_question_vision.prompty b/app/backend/approaches/prompts/chat_answer_question_vision.prompty index 58b3624121..82e867cf98 100644 --- a/app/backend/approaches/prompts/chat_answer_question_vision.prompty +++ b/app/backend/approaches/prompts/chat_answer_question_vision.prompty @@ -8,14 +8,12 @@ system: {% if override_prompt %} {{ override_prompt }} {% else %} -You are an intelligent assistant helping analyze the Annual Financial Report of Contoso Ltd., The documents contain text, graphs, tables and images. -Each image source has the file name in the top left corner of the image with coordinates (10,10) pixels and is in the format SourceFileName: -Each text source starts in a new line and has the file name followed by colon and the actual information -Always include the source name from the image or text for each fact you use in the response in the format: [filename] +You are an intelligent assistant helping users with questions about the upcoming Bundestag election in Germany. The documents contain text, graphs, tables, and images from the election programs of various parties. +Each image source has the file name in the top left corner of the image with coordinates (10,10) pixels and is in the format SourceFileName:. +Each text source starts in a new line and has the file name followed by colon and the actual information. +Always include the source name from the image or text for each fact you use in the response in the format: [filename]. Answer the following question using only the data provided in the sources below. -If asking a clarifying question to the user would help, ask the question. -Be brief in your answers. -The text and image source can be the same file name, don't use the image title when citing the image source, only use the file name as mentioned +The text and image source can be the same file name, don't use the image title when citing the image source, only use the file name as mentioned. If you cannot answer using the sources below, say you don't know. Return just the answer without any input texts. {{injected_prompt}} {% endif %} @@ -23,9 +21,9 @@ If you cannot answer using the sources below, say you don't know. Return just th {% if include_follow_up_questions %} Generate 3 very brief follow-up questions that the user would likely ask next. Enclose the follow-up questions in double angle brackets. Example: -<> -<> -<> +<> +<> +<> Do not repeat questions that have already been asked. Make sure the last question ends with ">>". {% endif %} diff --git a/app/backend/approaches/prompts/chat_query_rewrite.prompty b/app/backend/approaches/prompts/chat_query_rewrite.prompty index 7738a85cd7..e352c02911 100644 --- a/app/backend/approaches/prompts/chat_query_rewrite.prompty +++ b/app/backend/approaches/prompts/chat_query_rewrite.prompty @@ -6,12 +6,12 @@ model: parameters: tools: ${file:chat_query_rewrite_tools.json} sample: - user_query: Does it include hearing? + user_query: Was sagt die AFD zum Thema Migration? past_messages: - role: user - content: "What is included in my Northwind Health Plus plan that is not in standard?" + content: "Was sagt die AFD zum Thema Migration?" - role: assistant - content: "The Northwind Health Plus plan includes coverage for emergency services, mental health and substance abuse coverage, and out-of-network services, which are not included in the Northwind Standard plan. [Benefit_Options.pdf#page=3]" + content: "Die AfD sieht Migration als eine der größten Herausforderungen für Deutschland. Sie fordern eine Begrenzung der Zuwanderung und die Stärkung der Grenzsicherheit. [afd_program.pdf#page=12]" --- system: Below is a history of the conversation so far, and a new question asked by the user that needs to be answered by searching in a knowledge base. @@ -24,16 +24,22 @@ If the question is not in English, translate the question to English before gene If you cannot generate a search query, return just the number 0. user: -(EXAMPLE) How did crypto do last year? +(EXAMPLE) Wie will die Linke Reiche mehr zur Kasse bitten? assistant: -Summarize Cryptocurrency Market Dynamics from last year +Zeige die Maßnahmen der Linken zur Besteuerung von Reichen user: -(EXAMPLE) What are my health plans? +(EXAMPLE) Was sind die Hauptpunkte des Wahlprogramms der SPD? assistant: -Show available health plans +Zeige die Hauptpunkte des Wahlprogramms der SPD + +user: +(EXAMPLE) Was sind die Hauptpunkte des Wahlprogramms der CDU? + +assistant: +Zeige die Hauptpunkte des Wahlprogramms der CDU {% for message in past_messages %} {{ message["role"] }}: diff --git a/app/backend/approaches/prompts/chat_query_rewrite_tools.json b/app/backend/approaches/prompts/chat_query_rewrite_tools.json index cf1743483c..fe4e47f1ca 100644 --- a/app/backend/approaches/prompts/chat_query_rewrite_tools.json +++ b/app/backend/approaches/prompts/chat_query_rewrite_tools.json @@ -8,7 +8,7 @@ "properties": { "search_query": { "type": "string", - "description": "Query string to retrieve documents from azure search eg: 'Health care plan'" + "description": "Query string to retrieve documents from azure search eg: 'Wahlprogramme der Parteien zur Bundestagswahl 2025'" } }, "required": ["search_query"] diff --git a/app/frontend/index.html b/app/frontend/index.html index 30205db90f..1f9537741a 100644 --- a/app/frontend/index.html +++ b/app/frontend/index.html @@ -4,7 +4,7 @@ - Azure OpenAI + AI Search + Wahlomat mit GPT
diff --git a/app/frontend/src/locales/en/translation.json b/app/frontend/src/locales/en/translation.json index 07f657da8b..87997631fd 100644 --- a/app/frontend/src/locales/en/translation.json +++ b/app/frontend/src/locales/en/translation.json @@ -1,6 +1,6 @@ { - "pageTitle": "Azure OpenAI + AI Search", - "headerTitle": "Azure OpenAI + AI Search", + "pageTitle": "Wahlomat mit GPT", + "headerTitle": "Wahlomat mit GPT", "chat": "Chat", "qa": "Ask a question", "login": "Login", @@ -37,17 +37,17 @@ "chatEmptyStateTitle": "Chat with your data", "chatEmptyStateSubtitle": "Ask anything or try an example", "defaultExamples": { - "1": "What is included in my Northwind Health Plus plan that is not in standard?", - "2": "What happens in a performance review?", - "3": "What does a Product Manager do?", - "placeholder": "Type a new question (e.g. does my plan cover annual eye exams?)" + "1": "What are the main points of the SPD's election program?", + "2": "How does the CDU plan to address climate change?", + "3": "What is the FDP's stance on digitalization?", + "placeholder": "Example: What are the key points of the Green Party's program?" }, "askTitle": "Ask your data", "gpt4vExamples": { - "1": "Compare the impact of interest rates and GDP in financial markets.", - "2": "What is the expected trend for the S&P 500 index over the next five years? Compare it to the past S&P 500 performance", - "3": "Can you identify any correlation between oil prices and stock market trends?", - "placeholder": "Example: Does my plan cover annual eye exams?" + "1": "What are the main points of the SPD's election program?", + "2": "How does the CDU plan to address climate change?", + "3": "What is the FDP's stance on digitalization?", + "placeholder": "Type a new question (e.g. what are the key points of the Green Party's program?)" }, "generatingAnswer": "Generating answer", "citationWithColon": "Citation:", diff --git a/app/frontend/src/pages/layout/Layout.module.css b/app/frontend/src/pages/layout/Layout.module.css index 4854140247..7475e9c269 100644 --- a/app/frontend/src/pages/layout/Layout.module.css +++ b/app/frontend/src/pages/layout/Layout.module.css @@ -2,26 +2,29 @@ display: flex; flex-direction: column; height: 100%; + font-family: 'Arial', sans-serif; + background-color: #f4f4f9; + color: #333; } .header { - background-color: #222222; + background: linear-gradient(to bottom, black, #FF0000, #FFCC00); color: #f2f2f2; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .headerContainer { display: flex; align-items: center; justify-content: space-between; - padding-left: 1rem; - padding-right: 1rem; + padding: 1rem 2rem; position: relative; } .headerTitleContainer { display: flex; align-items: center; - color: #f2f2f2; + color: #fff; text-decoration: none; } @@ -32,21 +35,23 @@ .headerTitle { margin-left: 0.5rem; - font-weight: 600; + font-weight: 700; + font-size: 1.5rem; } .headerNavList { z-index: 100; display: none; flex-direction: column; - background-color: #222222; + background-color: #333; position: absolute; - top: 2.7rem; + top: 3.5rem; right: 0; width: auto; list-style: none; - padding: 1.1rem; + padding: 1rem; align-items: flex-end; + border-radius: 0 0 0.5rem 0.5rem; } .headerNavList.show { @@ -55,15 +60,13 @@ .headerNavPageLink { padding: 1rem; - border-bottom: 1px solid #333; + border-bottom: 1px solid #444; text-align: right; - color: #f2f2f2; + color: #fff; text-decoration: none; - opacity: 0.75; - transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); - transition-duration: 500ms; - transition-property: opacity; - font-size: 1.2rem; + opacity: 0.85; + transition: opacity 0.3s ease; + font-size: 1.1rem; } .headerNavPageLink:hover { @@ -71,9 +74,9 @@ } .headerNavPageLinkActive { - color: #f2f2f2; + color: #fff; text-decoration: none; - font-size: 1.2rem; + font-size: 1.1rem; text-align: right; padding: 1rem; } @@ -86,7 +89,7 @@ display: block; background: none; border: none; - color: #f2f2f2; + color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 101; @@ -95,12 +98,13 @@ .loginMenuContainer { display: flex; align-items: center; - gap: 0; /* Ensure no gap between login button and menu toggle */ + gap: 0.5rem; /* Ensure a small gap between login button and menu toggle */ } @media (min-width: 992px) { .headerTitle { - font-weight: 600; + font-weight: 700; + font-size: 1.75rem; } .headerNavList { @@ -110,6 +114,8 @@ padding: 0; position: static; width: auto; + background-color: transparent; + box-shadow: none; } .headerNavPageLink { @@ -123,7 +129,7 @@ } .headerNavPageLinkActive { - color: #f2f2f2; + color: #fff; text-decoration: none; } diff --git a/data/Benefit_Options.pdf b/data/.examples/Benefit_Options.pdf similarity index 100% rename from data/Benefit_Options.pdf rename to data/.examples/Benefit_Options.pdf diff --git a/data/Contoso_Electronics_Company_Overview.md b/data/.examples/Contoso_Electronics_Company_Overview.md similarity index 100% rename from data/Contoso_Electronics_Company_Overview.md rename to data/.examples/Contoso_Electronics_Company_Overview.md diff --git a/data/GPT4V_Examples/Financial Market Analysis Report 2023.pdf b/data/.examples/GPT4V_Examples/Financial Market Analysis Report 2023.pdf similarity index 100% rename from data/GPT4V_Examples/Financial Market Analysis Report 2023.pdf rename to data/.examples/GPT4V_Examples/Financial Market Analysis Report 2023.pdf diff --git a/data/Json_Examples/2189.json b/data/.examples/Json_Examples/2189.json similarity index 100% rename from data/Json_Examples/2189.json rename to data/.examples/Json_Examples/2189.json diff --git a/data/Json_Examples/2190.json b/data/.examples/Json_Examples/2190.json similarity index 100% rename from data/Json_Examples/2190.json rename to data/.examples/Json_Examples/2190.json diff --git a/data/Json_Examples/2191.json b/data/.examples/Json_Examples/2191.json similarity index 100% rename from data/Json_Examples/2191.json rename to data/.examples/Json_Examples/2191.json diff --git a/data/Json_Examples/2192.json b/data/.examples/Json_Examples/2192.json similarity index 100% rename from data/Json_Examples/2192.json rename to data/.examples/Json_Examples/2192.json diff --git a/data/Json_Examples/query.json b/data/.examples/Json_Examples/query.json similarity index 100% rename from data/Json_Examples/query.json rename to data/.examples/Json_Examples/query.json diff --git a/data/Northwind_Health_Plus_Benefits_Details.pdf b/data/.examples/Northwind_Health_Plus_Benefits_Details.pdf similarity index 100% rename from data/Northwind_Health_Plus_Benefits_Details.pdf rename to data/.examples/Northwind_Health_Plus_Benefits_Details.pdf diff --git a/data/Northwind_Standard_Benefits_Details.pdf b/data/.examples/Northwind_Standard_Benefits_Details.pdf similarity index 100% rename from data/Northwind_Standard_Benefits_Details.pdf rename to data/.examples/Northwind_Standard_Benefits_Details.pdf diff --git a/data/PerksPlus.pdf b/data/.examples/PerksPlus.pdf similarity index 100% rename from data/PerksPlus.pdf rename to data/.examples/PerksPlus.pdf diff --git a/data/employee_handbook.pdf b/data/.examples/employee_handbook.pdf similarity index 100% rename from data/employee_handbook.pdf rename to data/.examples/employee_handbook.pdf diff --git a/data/role_library.pdf b/data/.examples/role_library.pdf similarity index 100% rename from data/role_library.pdf rename to data/.examples/role_library.pdf diff --git a/data/20241216_BTW25_Programmentwurf_DINA4_digital.pdf b/data/20241216_BTW25_Programmentwurf_DINA4_digital.pdf new file mode 100644 index 0000000000..9390d8d5d3 Binary files /dev/null and b/data/20241216_BTW25_Programmentwurf_DINA4_digital.pdf differ diff --git a/data/AfD_Leitantrag-Bundestagswahlprogramm-2025.pdf b/data/AfD_Leitantrag-Bundestagswahlprogramm-2025.pdf new file mode 100644 index 0000000000..bc6fbb8228 Binary files /dev/null and b/data/AfD_Leitantrag-Bundestagswahlprogramm-2025.pdf differ diff --git a/data/BSW Wahlprogramm 2025.pdf b/data/BSW Wahlprogramm 2025.pdf new file mode 100644 index 0000000000..35811290ce Binary files /dev/null and b/data/BSW Wahlprogramm 2025.pdf differ diff --git a/data/Regierungsprogramm.pdf b/data/Regierungsprogramm.pdf new file mode 100644 index 0000000000..a502d2a366 Binary files /dev/null and b/data/Regierungsprogramm.pdf differ diff --git a/data/fdp-wahlprogramm_2025.pdf b/data/fdp-wahlprogramm_2025.pdf new file mode 100644 index 0000000000..9bad8317df Binary files /dev/null and b/data/fdp-wahlprogramm_2025.pdf differ diff --git a/data/wahlprogramm-von-cdu-csu-kurzfassung.pdf b/data/wahlprogramm-von-cdu-csu-kurzfassung.pdf new file mode 100644 index 0000000000..6ddd319591 Binary files /dev/null and b/data/wahlprogramm-von-cdu-csu-kurzfassung.pdf differ diff --git a/infra/main.bicep b/infra/main.bicep index 88d9a0e845..c1db331501 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -141,12 +141,13 @@ var chatGpt = { deploymentCapacity: chatGptDeploymentCapacity != 0 ? chatGptDeploymentCapacity : 30 } -param embeddingModelName string = '' -param embeddingDeploymentName string = '' -param embeddingDeploymentVersion string = '' -param embeddingDeploymentSkuName string = '' -param embeddingDeploymentCapacity int = 0 -param embeddingDimensions int = 0 +param embeddingModelName string = 'text-embedding-ada-002' +param embeddingDeploymentName string = 'embedding' +param embeddingDeploymentVersion string = '2' +param embeddingDeploymentSkuName string = 'Standard' +param embeddingDeploymentCapacity int = 30 +param embeddingDimensions int = 1536 + var embedding = { modelName: !empty(embeddingModelName) ? embeddingModelName : 'text-embedding-ada-002' deploymentName: !empty(embeddingDeploymentName) ? embeddingDeploymentName : 'embedding' diff --git a/locustfile.py b/locustfile.py index 2bcc443759..77125e0d9d 100644 --- a/locustfile.py +++ b/locustfile.py @@ -16,10 +16,10 @@ def ask_question(self): time.sleep(self.wait_time()) first_question = random.choice( [ - "What is included in my Northwind Health Plus plan that is not in standard?", - "What does a Product Manager do?", - "What happens in a performance review?", - "Whats your whistleblower policy?", + "What are the main points of the SPD's election program?", + "How does the CDU plan to address climate change?", + "What is the FDP's stance on digitalization?", + "What are the key points of the Green Party's program?", ] )