Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
01aafd3
Bedrock
rogervinas Apr 16, 2025
612abd6
McpTestServer
rogervinas Apr 16, 2025
6223587
Merge branch 'chat-mcp-server-test' into bedrock
rogervinas Apr 16, 2025
a7010c2
Configure booking tool
rogervinas Apr 16, 2025
0ca6020
Merge branch 'chat-mcp-server-test' into bedrock
rogervinas Apr 16, 2025
af1f69b
Merge branch 'main' into bedrock
rogervinas Apr 16, 2025
a73e8b9
Merge branch 'main' into bedrock
rogervinas Apr 17, 2025
199e6d6
Merge branch 'main' into bedrock
rogervinas Apr 17, 2025
80a4561
Merge branch 'main' into bedrock
rogervinas Apr 22, 2025
38247bd
Merge branch 'main' into bedrock
rogervinas Apr 23, 2025
d10d377
Modify diagram
rogervinas Apr 24, 2025
23181e3
Merge branch 'main' into bedrock
rogervinas Apr 24, 2025
1f4a672
Merge branch 'main' into bedrock
rogervinas Apr 24, 2025
1d307c4
Merge branch 'main' into bedrock
rogervinas Apr 24, 2025
93dbc51
Merge branch 'main' into bedrock
rogervinas Apr 24, 2025
5f60e0a
Merge branch 'main' into bedrock
rogervinas Apr 28, 2025
ab4b8bc
Merge branch 'main' into bedrock
rogervinas May 6, 2025
d8079cc
Merge branch 'main' into bedrock
rogervinas May 8, 2025
601f7c6
Fix configuration
rogervinas May 8, 2025
7aa6f8b
Fix remote tool
rogervinas May 8, 2025
f9d063d
Fix README
rogervinas May 8, 2025
9980e26
Test about tools
rogervinas May 8, 2025
764bead
Add info
rogervinas May 8, 2025
2054a47
Disable test on CI
rogervinas May 8, 2025
1058de5
Merge branch 'fix-tool' into bedrock
rogervinas May 8, 2025
8f549d9
Merge branch 'main' into bedrock
rogervinas May 8, 2025
8c351f9
Merge branch 'main' into bedrock
rogervinas May 8, 2025
8ba5724
Merge branch 'main' into bedrock
rogervinas May 9, 2025
524fb99
Merge branch 'main' into bedrock
rogervinas May 19, 2025
8e1f3bb
Merge branch 'main' into bedrock
rogervinas Jun 23, 2025
a841291
Merge branch 'main' into bedrock
rogervinas Jul 14, 2025
35dcd2c
Merge branch 'main' into bedrock
rogervinas Aug 19, 2025
9bdcf71
Merge branch 'main' into bedrock
rogervinas Sep 4, 2025
34c8e46
Merge branch 'main' into bedrock
rogervinas Oct 1, 2025
43bf141
Merge branch 'main' into bedrock
rogervinas Oct 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .doc/diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions .github/workflows/ci-chat-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: actions/checkout@v5

- name: Ollama cache
if: false # ollama disabled in this branch
uses: actions/cache@v4
with:
path: ./chat-server/.ollama
Expand All @@ -42,4 +43,5 @@ jobs:
run: ./gradlew build --no-daemon --info

- name: Ollama cache permissions
if: false # ollama disabled in this branch
run: sudo chown -R $USER:$USER ./chat-server/.ollama
6 changes: 3 additions & 3 deletions chat-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ dependencies {
implementation("org.springframework.ai:spring-ai-advisors-vector-store")

// ollama
implementation("org.springframework.ai:spring-ai-starter-model-ollama")
// implementation("org.springframework.ai:spring-ai-starter-model-ollama")

// bedrock
// implementation("org.springframework.ai:spring-ai-starter-model-bedrock")
// implementation("org.springframework.ai:spring-ai-starter-model-bedrock-converse")
implementation("org.springframework.ai:spring-ai-starter-model-bedrock")
implementation("org.springframework.ai:spring-ai-starter-model-bedrock-converse")

implementation("org.springframework.ai:spring-ai-starter-vector-store-pgvector")
runtimeOnly("org.postgresql:postgresql")
Expand Down
2 changes: 2 additions & 0 deletions chat-server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:

ollama:
image: ollama/ollama:0.12.3
profiles:
- disabled # ollama disabled in this branch
volumes:
- ./.ollama:/root/.ollama
ports:
Expand Down
21 changes: 21 additions & 0 deletions chat-server/src/main/resources/application-bedrock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
spring:
ai:
model:
embedding: "bedrock-cohere"
chat: "bedrock-converse"
bedrock:
aws:
access-key: "${AWS_ACCESS_KEY_ID}"
secret-key: "${AWS_SECRET_ACCESS_KEY}"
region: "${AWS_REGION:eu-central-1}"
converse:
chat:
options:
model: "${AWS_BEDROCK_CHAT_MODEL}"
cohere:
embedding:
model: "${AWS_BEDROCK_EMBEDDING_MODEL}"
vectorstore:
pgvector:
dimensions: 1024
initialize-schema: true
2 changes: 1 addition & 1 deletion chat-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
profiles:
active: "ollama"
active: "bedrock"
application:
name: chat-server
datasource:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ import java.util.UUID


@SpringBootTest(webEnvironment = RANDOM_PORT)
@ActiveProfiles("test", "ollama")
@ActiveProfiles("test", "bedrock")
@TestMethodOrder(MethodOrderer.OrderAnnotation::class)
@Testcontainers
@DisabledIfCI
class ChatServerApplicationTest {

companion object {
Expand All @@ -47,7 +48,7 @@ class ChatServerApplicationTest {
val container = ComposeContainer(File("docker-compose.yml"))
.withLocalCompose(true)
.withExposedService("vectordb", 5432, forLogMessage(".*database system is ready to accept connections.*", 1))
.withExposedService("ollama", 11434, forLogMessage(".*inference compute.*", 1))
// .withExposedService("ollama", 11434, forLogMessage(".*inference compute.*", 1))
}

@Autowired
Expand Down