44
55``` bash
66mkdir spring-ai-demo
7- cd spring-ai-demo/
7+ code spring-ai-demo/
8+ ```
9+
10+ ``` bash
811git clone https://github.com/aws-samples/java-on-aws.git ./java-on-aws
912export SOURCES_FOLDER=$( pwd) /java-on-aws/samples/spring-ai
1013export AWS_REGION=us-east-1
@@ -33,11 +36,12 @@ $SOURCES_FOLDER/demo-scripts/02-add-api-ui.sh
3336
3437``` bash
3538export AWS_REGION=us-east-1
36- cd spring-ai-demo/ assistant/
39+ cd assistant/
3740./mvnw spring-boot:run
3841```
3942
4043> What is my name?
44+
4145> My name is ...
4246
4347## Add Memory
@@ -51,7 +55,7 @@ $SOURCES_FOLDER/demo-scripts/03-add-memory.sh
5155> In the new terminal
5256
5357``` bash
54- cd spring-ai-demo/ database/
58+ cd database/
5559./start-postgres.sh
5660```
5761
@@ -62,6 +66,7 @@ cd spring-ai-demo/database/
6266```
6367
6468> my name is ...
69+
6570> What is my name?
6671
6772> What is our travel and expenses policy?
@@ -92,7 +97,7 @@ curl -X POST \
9297
9398> What is our travel and expenses policy?
9499
95- > What is the date next monday
100+ > What is the date today?
96101
97102## Add Tools
98103
@@ -108,11 +113,11 @@ $SOURCES_FOLDER/demo-scripts/05-add-tools.sh
108113./mvnw spring-boot:run
109114```
110115
111- > What is the date next monday
116+ > What is the date today?
112117
113118> What is the weather in Paris next Monday?
114119
115- ## Add Memory
120+ ## Add MCP
116121
117122> In the main terminal:
118123
@@ -123,14 +128,14 @@ $SOURCES_FOLDER/demo-scripts/06-add-mcp.sh
123128> In the new terminal
124129
125130``` bash
126- cd spring-ai-demo/ travel/
131+ cd travel/
127132./start-postgres.sh
128133```
129134
130135> In the new terminal (optional):
131136
132137``` bash
133- cd spring-ai-demo/ backoffice/
138+ cd backoffice/
134139./start-postgres.sh
135140```
136141
@@ -140,15 +145,14 @@ cd spring-ai-demo/backoffice/
140145./mvnw spring-boot:run
141146```
142147
143- > my name is ...
144- > What is my name?
145-
146- > What is our travel and expenses policy?
147-
148148> What is the weather in Paris next Monday?
149149
150150> Could you please book me a flight from London to Paris and back, from next Monday to next Friday?
151+
151152> I would take BA flights
153+
152154> John Doe, john@example.com , 1, 1
155+
153156> Please book me accommodation
157+
154158> Could you please give me a summary of travel?
0 commit comments