Skip to content

Commit 3607a2b

Browse files
committed
feat: add run config
1 parent 5cc3077 commit 3607a2b

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.vscode/launch.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
6-
"configurations": [
6+
"configurations": [
77
{
88
"name": "Launch Java: Continuous Mode",
99
"type": "jdk",
1010
"request": "launch",
11-
"launchConfiguration": "Continuous Mode"
11+
"launchConfiguration": "Continuous Mode",
12+
},
13+
{
14+
"name": "Launch Java",
15+
"type": "jdk",
16+
"request": "launch",
17+
"mainClass": "ch.xxx.aidoclibchat.AidocumentlibrarychatApplication",
18+
"vmArgs": "-Dspring.profiles.active=ollama",
1219
}
1320
]
1421
}

backend/src/main/java/ch/xxx/aidoclibchat/adapter/repository/DocumentVSRepositoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private static class DocumentRowMapper implements RowMapper<Document> {
113113

114114
private static final String COLUMN_CONTENT = "content";
115115

116-
private ObjectMapper objectMapper;
116+
private final ObjectMapper objectMapper;
117117

118118
public DocumentRowMapper(ObjectMapper objectMapper) {
119119
this.objectMapper = objectMapper;

backend/src/main/resources/application-ollama.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spring.ai.embedding.transformer.tokenizer.uri=https://huggingface.co/mixedbread-
2828

2929
# image processing
3030
# best model for vision currently
31-
spring.ai.ollama.chat.options.model=llama3.2-vision:11b
31+
spring.ai.ollama.chat.options.model=llama3.2-vision
3232
#spring.ai.ollama.chat.options.num-thread=8
3333
#spring.ai.ollama.chat.options.keep_alive=1s
3434

0 commit comments

Comments
 (0)