diff --git a/demooutput/Output.md b/demooutput/Output.md new file mode 100644 index 0000000..44a0c91 --- /dev/null +++ b/demooutput/Output.md @@ -0,0 +1,17 @@ +# Vacme Supportbot Notizen + +## Technologie +Quarkus mit LangChain4j +OpenAI API +EasyRag mit OCR + +## Demo +Ich habe einn Screenshot gemacht, um die Funktionsweise zu demonstrieren. +![Screenshot](./img.png) + +## Findings + +Das Beispiel war in ca 1h umsetzbar aber basuiert stark auf dem Quarkus LangChain4j Workshop. +Ich war erstaunt, dass auch die Bilder aus der Website in die Beschreibung einfliessen +Ich habe noch nicht geprüft ob die Anweisungen bis ins Detail stimmen. +Die Formatierung der Ausgabe ist nicht optimal, aber ich habe keine Zeit mehr um das zu verbessern. diff --git a/demooutput/img.png b/demooutput/img.png new file mode 100644 index 0000000..a78be5c Binary files /dev/null and b/demooutput/img.png differ diff --git a/src/main/java/dev/langchain4j/quarkus/workshop/CustomerSupportAgent.java b/src/main/java/dev/langchain4j/quarkus/workshop/CustomerSupportAgent.java index edb9edb..8d0e996 100644 --- a/src/main/java/dev/langchain4j/quarkus/workshop/CustomerSupportAgent.java +++ b/src/main/java/dev/langchain4j/quarkus/workshop/CustomerSupportAgent.java @@ -10,9 +10,9 @@ import jakarta.enterprise.context.SessionScoped; public interface CustomerSupportAgent { @SystemMessage(""" - You are a customer support agent of a car rental company 'Miles of Smiles'. + You are a customer support agent of the vaccination application 'vacme'. You are friendly, polite and concise. - If the question is unrelated to car rental, you should politely redirect the customer to the right department. + If the question is unrelated to the login process or the usage of the vacme page, you should politely redirect the customer to the support email. """) Multi chat(String userMessage); } diff --git a/src/main/java/dev/langchain4j/quarkus/workshop/CustomerSupportAgentWebSocket.java b/src/main/java/dev/langchain4j/quarkus/workshop/CustomerSupportAgentWebSocket.java index 1fb2a7b..7f28a0e 100644 --- a/src/main/java/dev/langchain4j/quarkus/workshop/CustomerSupportAgentWebSocket.java +++ b/src/main/java/dev/langchain4j/quarkus/workshop/CustomerSupportAgentWebSocket.java @@ -16,7 +16,7 @@ public class CustomerSupportAgentWebSocket { @OnOpen public String onOpen() { - return "Welcome to Miles of Smiles! How can I help you today?"; + return "Willkommen beim Vacme Support! Wie kann ich Ihnen Heute helfen?"; } @OnTextMessage diff --git a/src/main/resources/META-INF/resources/components/demo-title.js b/src/main/resources/META-INF/resources/components/demo-title.js index 7b9c753..4d5d192 100644 --- a/src/main/resources/META-INF/resources/components/demo-title.js +++ b/src/main/resources/META-INF/resources/components/demo-title.js @@ -48,10 +48,10 @@ export class DemoTitle extends LitElement { render() { return html`
-

Miles of Smiles

+

Vacme Support Agent

-

Welcome to Miles of Smiles!

+

Welcome to Vacme Support Agent!

Please click the button on the bottom right to start the conversation with an LLM-powered customer support agent.

diff --git a/src/main/resources/META-INF/resources/index.html b/src/main/resources/META-INF/resources/index.html index 5b126fa..9eb1b64 100644 --- a/src/main/resources/META-INF/resources/index.html +++ b/src/main/resources/META-INF/resources/index.html @@ -16,12 +16,12 @@ - Miles of Smiles + Vacme Support Agent