Skip to content

Commit 5391dac

Browse files
committed
Update to Spring AI 1.1
1 parent 71f5fca commit 5391dac

File tree

4 files changed

+29
-17
lines changed

4 files changed

+29
-17
lines changed

.github/workflows/maven.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Maven
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v5
18+
with:
19+
java-version: '21'
20+
distribution: 'corretto'
21+
cache: maven
22+
- name: Build with Maven
23+
run: mvn -B package --file pom.xml

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# pgvector Spring AI sample
22

3+
See the [article](https://javaaidev.com/docs/rag/spring-ai/vector-stores/pgvector) for more details about using [pgvector](https://github.com/pgvector/pgvector) with Spring AI.

pom.xml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,17 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.5.4</version>
9+
<version>3.5.7</version>
1010
<relativePath/>
1111
</parent>
1212
<groupId>io.github.javaaidev</groupId>
1313
<artifactId>pgvector-sample</artifactId>
14-
<version>0.0.1-SNAPSHOT</version>
14+
<version>0.1.0</version>
1515
<name>pgvector Spring AI sample</name>
16-
<url/>
17-
<licenses>
18-
<license/>
19-
</licenses>
20-
<developers>
21-
<developer/>
22-
</developers>
23-
<scm>
24-
<connection/>
25-
<developerConnection/>
26-
<tag/>
27-
<url/>
28-
</scm>
16+
<url>https://github.com/JavaAIDev/pgvector-sample</url>
2917
<properties>
3018
<java.version>21</java.version>
31-
<spring-ai.version>1.0.0</spring-ai.version>
19+
<spring-ai.version>1.1.0</spring-ai.version>
3220
</properties>
3321
<dependencies>
3422
<dependency>

src/main/resources/application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ spring:
55
api-key: ${OPENAI_API_KEY:demo}
66
chat:
77
options:
8-
model: gpt-4.1-mini
8+
model: gpt-4.1-nano
99
temperature: 0.0
1010
embedding:
1111
options:

0 commit comments

Comments
 (0)