Skip to content

Commit e9698b7

Browse files
committed
minor fixes
1 parent 25abb84 commit e9698b7

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed
61.4 KB
Loading
-22.6 KB
Loading

content/modules/ROOT/pages/module-devhub.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Run the following command in the VS Code terminal to start Quarkus Dev Mode.
6767
./mvnw clean quarkus:dev
6868
----
6969

70-
The output should look similar to the following.
70+
The output should look similar to the following (wait for the ASCII art!):
7171

7272
[.console-output]
7373
[source,bash]

content/modules/ROOT/pages/module-model-testing.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ There are a three things to take note of in this JSON file.
6262

6363
== The initial set of tests
6464

65-
We have included an initial set of tests which should pass when run against the *Parasol Chat* model.
65+
We have included an initial set of tests which should pass when run against the *Parasol Chat* model.
6666

6767
For each of these tests we're provided an expected response, so for example, when we ask the question: *"In one sentence, who founded Parasol Insurance?"* we should get a response similar to: *"Parasol Insurance was founded in 1936 by James Falkner and James Labocki."*
6868

@@ -107,7 +107,7 @@ The output should be similar to the following.
107107
[.console-output]
108108
[source,bash]
109109
----
110-
npm WARN skipping integrity check for git dependency ssh://[email protected]/kenlimmj/rouge.git
110+
npm WARN skipping integrity check for git dependency ssh://[email protected]/kenlimmj/rouge.git
111111
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
112112
npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
113113
@@ -142,7 +142,7 @@ When the test run is complete you should see.
142142

143143
image::model-testing/run-complete.png[run complete, 800]
144144

145-
Both of the tests should have passed successfully.
145+
Both of the tests should have passed successfully.
146146

147147
== Failing the tests
148148

@@ -152,7 +152,7 @@ As we discussed above, one of our tests is testing responses to the question: *"
152152

153153
To answer this question our model has been trained with knowledge about the history of Parasol Insurance.
154154

155-
Let's change the model our tests are performed against to an untrained model (*merlinite-7b-lab*). To do this, open the `.vscode/settings.json` file to `replace` the contents with:
155+
Let's change the model our tests are performed against to an untrained model (*granite-30-8b-instruct*). To do this, open the `.vscode/settings.json` file to `replace` the contents with:
156156

157157
[.console-input]
158158
[source,json,subs="+attributes,macros+"]
@@ -169,7 +169,7 @@ Let's change the model our tests are performed against to an untrained model (*m
169169
}
170170
----
171171

172-
Go back to the `Testing` panel. Then, click on the `Run Tests` to run the tests again.
172+
Go back to the `Testing` panel. Then, click on the `Run Tests` to run the tests again.
173173

174174
image::model-testing/run-tests.png[run tests]
175175

content/modules/ROOT/pages/module-private-docs.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ You should notice that the chatbot can answer these questions based on the claim
149149

150150
image::private-docs/chat-policies-unknown.png[Chatbot questions about policies]
151151

152-
The answer you will get back might be different from the one in the screenshot above, but you'll likely observe that the chatbot struggles with this question, as it doesn't have access to Parasol's specific policies, *in particular the 6 month policy term limit*. It might even respond with an incorrect decision! If only there was a way to automatically retrieve this information and provide it to the chatbot.
152+
The answer you will get back might be different from the one in the screenshot above, but you'll likely observe that the chatbot struggles with this question, as it doesn't have access to Parasol's specific policies, *in particular the 6 month policy term limit*. It might even respond with an incorrect decision, but sound very authoritative when doing so:
153+
154+
image::private-docs/chat-response-hlcn.png[Chatbot halluncination]
155+
156+
If only there was a way to automatically retrieve this information and provide it to the chatbot so that answers were more accurate!
153157

154158
== Embedding Documents with RAG
155159

@@ -314,7 +318,7 @@ import io.quarkiverse.langchain4j.ToolBox;
314318
----
315319
====
316320

317-
By doing this we have now registered the `NotificationService` file as class that contains one or more `@Tool` annotated methods. These methods become available to the LLM to be called.
321+
By doing this we have now registered the `NotificationService` file as a class that contains one or more `@Tool` annotated methods. These methods become available to the LLM to be called.
318322

319323
=== Convert chat from streaming to synchronous
320324

content/modules/ROOT/pages/module-prompt.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ their inquiry and lets them know we are concerned about their health and safety.
569569
Email addresses are MUST be provided and are ALWAYS one of the 4 addresses
570570
provided in this system prompt..
571571
572-
Emails informing Parasol Insurance of a new accident or discuss filing a new
573-
claim are always classified as NEW CLAIMS and forwarded to [email protected].
572+
Emails informing Parasol Insurance of a new accident or discuss filing a new
573+
claim are always classified as NEW CLAIMS and forwarded to [email protected].
574574
575575
Emails that are asking for a status update, voicing concerns about taking too
576576
long to process, or providing additional details about an accident that were
@@ -605,14 +605,14 @@ You MUST ALWAYS respond only with JSON in one of the following ways:
605605
Here is an example response for a new claim:
606606
607607
Message: "I ran a stop light yesterday and hit another vehicle. Regards, John Doe"
608-
{ "address": "[email protected]", "subject": "Customer At-Fault in Multi-Vehicle Collision",
608+
{ "address": "[email protected]", "subject": "Customer At-Fault in Multi-Vehicle Collision",
609609
"message": "Dear John,
610-
610+
611611
We hope you and the other party are ok! Thank you for promptly informing us of the accident.
612-
612+
613613
I understand that you potentially were at fault in a collision with another vehicle as a result of running a stop light.
614614
615-
I'm forwarding your note to a team that can assist you with your claim.
615+
I'm forwarding your note to a team that can assist you with your claim.
616616
Please be prepared with any associated police reports and photographs. We look forward to supporting
617617
you through this process.
618618
@@ -638,7 +638,7 @@ Now, you'll notice that this does not look drastically different from before the
638638

639639
Open the `src/main/webui/src/app/components/EmailGenerate/EmailGenerate.tsx` typescript file for the Generate Email view.
640640

641-
At the top of the source file there is a data structured called EmailResponse. Add `address` of type `string` to the end of the list.
641+
At the top of the source file there is a data structure called `ResponseData`. Add `address` of type `string` to the end of the list.
642642

643643
[.console-input]
644644
[source,javascript,subs="attributes"]
@@ -651,7 +651,7 @@ image::prompt/email-generate-view-data-structure.png[Add "address" to EmailRespo
651651
Add the following html to the `email-response` div block:
652652

653653
[.console-input]
654-
[source,javascript,subs="+attributes,macros+"]
654+
[source,html,subs="+attributes,macros+"]
655655
----
656656
<div id="email-response-address" style={{ fontWeight: 'bold', fontFamily: 'Arial' }}>
657657
To: {response.address}

0 commit comments

Comments
 (0)