File tree Expand file tree Collapse file tree 10 files changed +86
-2
lines changed
src/main/java/com/baeldung Expand file tree Collapse file tree 10 files changed +86
-2
lines changed Original file line number Diff line number Diff line change 117
117
</dependency >
118
118
</dependencies >
119
119
120
+ <profiles >
121
+ <profile >
122
+ <id >chromadb</id >
123
+ <activation >
124
+ <activeByDefault >true</activeByDefault >
125
+ </activation >
126
+ <properties >
127
+ <spring .boot.mainclass>com.baeldung.springai.chromadb.Application</spring .boot.mainclass>
128
+ </properties >
129
+ </profile >
130
+ <profile >
131
+ <id >assistant</id >
132
+ <properties >
133
+ <spring .boot.mainclass>com.baeldung.spring.ai.om.OrderManagementApplication</spring .boot.mainclass>
134
+ </properties >
135
+ </profile >
136
+ <profile >
137
+ <id >anthropic</id >
138
+ <properties >
139
+ <spring .boot.mainclass>com.baeldung.springai.anthropic.Application</spring .boot.mainclass>
140
+ </properties >
141
+ </profile >
142
+ <profile >
143
+ <id >deepseek</id >
144
+ <properties >
145
+ <spring .boot.mainclass>com.baeldung.springai.deepseek.Application</spring .boot.mainclass>
146
+ </properties >
147
+ </profile >
148
+ <profile >
149
+ <id >evaluator</id >
150
+ <properties >
151
+ <spring .boot.mainclass>com.baeldung.springai.evaluator.Application</spring .boot.mainclass>
152
+ </properties >
153
+ </profile >
154
+ <profile >
155
+ <id >hugging-face</id >
156
+ <properties >
157
+ <spring .boot.mainclass>com.baeldung.springai.huggingface.Application</spring .boot.mainclass>
158
+ </properties >
159
+ </profile >
160
+ <profile >
161
+ <id >mcp-server</id >
162
+ <properties >
163
+ <spring .boot.mainclass>com.baeldung.springai.mcp.server.ServerApplication</spring .boot.mainclass>
164
+ </properties >
165
+ </profile >
166
+ <profile >
167
+ <id >mcp-client</id >
168
+ <properties >
169
+ <spring .boot.mainclass>com.baeldung.springai.mcp.client.ClientApplication</spring .boot.mainclass>
170
+ </properties >
171
+ </profile >
172
+ <profile >
173
+ <id >amazon-nova</id >
174
+ <properties >
175
+ <spring .boot.mainclass>com.baeldung.springai.nova.Application</spring .boot.mainclass>
176
+ </properties >
177
+ </profile >
178
+ <profile >
179
+ <id >pgvector</id >
180
+ <properties >
181
+ <spring .boot.mainclass>com.baeldung.springai.semanticsearch.Application</spring .boot.mainclass>
182
+ </properties >
183
+ </profile >
184
+ </profiles >
185
+
120
186
<build >
121
187
<plugins >
122
188
<plugin >
123
189
<groupId >org.springframework.boot</groupId >
124
190
<artifactId >spring-boot-maven-plugin</artifactId >
125
191
<configuration >
126
- <mainClass >com.baeldung.springai.chromadb.Application </mainClass >
192
+ <mainClass >${spring.boot.mainclass} </mainClass >
127
193
</configuration >
128
194
</plugin >
129
195
<plugin >
Original file line number Diff line number Diff line change 4
4
import org .springframework .ai .autoconfigure .bedrock .converse .BedrockConverseProxyChatAutoConfiguration ;
5
5
import org .springframework .ai .autoconfigure .ollama .OllamaAutoConfiguration ;
6
6
import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
7
8
import org .springframework .boot .SpringApplication ;
8
9
import org .springframework .boot .autoconfigure .SpringBootApplication ;
9
10
import org .springframework .context .annotation .PropertySource ;
16
17
@ SpringBootApplication (exclude = {
17
18
OllamaAutoConfiguration .class ,
18
19
AnthropicAutoConfiguration .class ,
20
+ PgVectorStoreAutoConfiguration .class ,
19
21
ChromaVectorStoreAutoConfiguration .class ,
20
22
BedrockConverseProxyChatAutoConfiguration .class
21
23
})
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
4
4
import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
5
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
5
6
import org .springframework .boot .SpringApplication ;
6
7
import org .springframework .boot .autoconfigure .SpringBootApplication ;
7
8
import org .springframework .context .annotation .PropertySource ;
13
14
*/
14
15
@ SpringBootApplication (exclude = {
15
16
OpenAiAutoConfiguration .class ,
17
+ PgVectorStoreAutoConfiguration .class ,
16
18
ChromaVectorStoreAutoConfiguration .class
17
19
})
18
20
@ PropertySource ("classpath:application-anthropic.properties" )
Original file line number Diff line number Diff line change 1
1
package com .baeldung .springai .chromadb ;
2
2
3
3
import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
4
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
4
5
import org .springframework .boot .SpringApplication ;
5
6
import org .springframework .boot .autoconfigure .SpringBootApplication ;
6
7
import org .springframework .context .annotation .PropertySource ;
11
12
* only needed by other articles in the shared codebase.
12
13
*/
13
14
@ SpringBootApplication (exclude = {
14
- OpenAiAutoConfiguration .class
15
+ OpenAiAutoConfiguration .class ,
16
+ PgVectorStoreAutoConfiguration .class
15
17
})
16
18
@ PropertySource ("classpath:application-chromadb.properties" )
17
19
public class Application {
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .ai .autoconfigure .anthropic .AnthropicAutoConfiguration ;
4
4
import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
5
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
5
6
import org .springframework .boot .SpringApplication ;
6
7
import org .springframework .boot .autoconfigure .SpringBootApplication ;
7
8
import org .springframework .context .annotation .PropertySource ;
13
14
*/
14
15
@ SpringBootApplication (exclude = {
15
16
AnthropicAutoConfiguration .class ,
17
+ PgVectorStoreAutoConfiguration .class ,
16
18
ChromaVectorStoreAutoConfiguration .class
17
19
})
18
20
@ PropertySource ("classpath:application-deepseek.properties" )
Original file line number Diff line number Diff line change 4
4
import org .springframework .ai .autoconfigure .bedrock .converse .BedrockConverseProxyChatAutoConfiguration ;
5
5
import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
6
6
import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
7
8
import org .springframework .boot .SpringApplication ;
8
9
import org .springframework .boot .autoconfigure .SpringBootApplication ;
9
10
import org .springframework .context .annotation .PropertySource ;
16
17
@ SpringBootApplication (exclude = {
17
18
OpenAiAutoConfiguration .class ,
18
19
AnthropicAutoConfiguration .class ,
20
+ PgVectorStoreAutoConfiguration .class ,
19
21
ChromaVectorStoreAutoConfiguration .class ,
20
22
BedrockConverseProxyChatAutoConfiguration .class
21
23
})
Original file line number Diff line number Diff line change 4
4
import org .springframework .ai .autoconfigure .bedrock .converse .BedrockConverseProxyChatAutoConfiguration ;
5
5
import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
6
6
import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
7
8
import org .springframework .boot .SpringApplication ;
8
9
import org .springframework .boot .autoconfigure .SpringBootApplication ;
9
10
import org .springframework .context .annotation .PropertySource ;
16
17
@ SpringBootApplication (exclude = {
17
18
OpenAiAutoConfiguration .class ,
18
19
AnthropicAutoConfiguration .class ,
20
+ PgVectorStoreAutoConfiguration .class ,
19
21
ChromaVectorStoreAutoConfiguration .class ,
20
22
BedrockConverseProxyChatAutoConfiguration .class
21
23
})
Original file line number Diff line number Diff line change 4
4
import org .springframework .ai .autoconfigure .ollama .OllamaAutoConfiguration ;
5
5
import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
6
6
import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
7
8
import org .springframework .boot .SpringApplication ;
8
9
import org .springframework .boot .autoconfigure .SpringBootApplication ;
9
10
import org .springframework .context .annotation .PropertySource ;
16
17
@ SpringBootApplication (exclude = {
17
18
OllamaAutoConfiguration .class ,
18
19
OpenAiAutoConfiguration .class ,
20
+ PgVectorStoreAutoConfiguration .class ,
19
21
ChromaVectorStoreAutoConfiguration .class ,
20
22
BedrockConverseProxyChatAutoConfiguration .class
21
23
})
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
4
4
import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
5
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
5
6
import org .springframework .boot .SpringApplication ;
6
7
import org .springframework .boot .autoconfigure .SpringBootApplication ;
7
8
import org .springframework .context .annotation .PropertySource ;
13
14
*/
14
15
@ SpringBootApplication (exclude = {
15
16
OpenAiAutoConfiguration .class ,
17
+ PgVectorStoreAutoConfiguration .class ,
16
18
ChromaVectorStoreAutoConfiguration .class
17
19
})
18
20
@ PropertySource ("classpath:application-mcp-server.properties" )
Original file line number Diff line number Diff line change 4
4
import org .springframework .ai .autoconfigure .ollama .OllamaAutoConfiguration ;
5
5
import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
6
6
import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7
+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
7
8
import org .springframework .boot .SpringApplication ;
8
9
import org .springframework .boot .autoconfigure .SpringBootApplication ;
9
10
import org .springframework .context .annotation .PropertySource ;
17
18
OpenAiAutoConfiguration .class ,
18
19
OllamaAutoConfiguration .class ,
19
20
AnthropicAutoConfiguration .class ,
21
+ PgVectorStoreAutoConfiguration .class ,
20
22
ChromaVectorStoreAutoConfiguration .class
21
23
})
22
24
@ PropertySource ("classpath:application-nova.properties" )
You can’t perform that action at this time.
0 commit comments