Skip to content

Commit eceab08

Browse files
author
Yuriy Bezsonov
committed
improve demo flow
1 parent 0cd1918 commit eceab08

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

samples/spring-ai/demo-scripts/02-add-api-ui.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ fi
105105

106106
echo "Files copied successfully."
107107

108+
cd assistant
108109
# Show git status
109110
echo ""
110111
echo "Git status:"
111112
git status
112113

113114
echo ""
114-
echo "Done!"
115+
echo Done!
116+
cd ..

samples/spring-ai/demo-scripts/demo-flow.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
55
```bash
66
mkdir spring-ai-demo
7-
cd spring-ai-demo/
7+
code spring-ai-demo/
8+
```
9+
10+
```bash
811
git clone https://github.com/aws-samples/java-on-aws.git ./java-on-aws
912
export SOURCES_FOLDER=$(pwd)/java-on-aws/samples/spring-ai
1013
export AWS_REGION=us-east-1
@@ -33,11 +36,12 @@ $SOURCES_FOLDER/demo-scripts/02-add-api-ui.sh
3336
3437
```bash
3538
export 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

Comments
 (0)