Skip to content

Commit 8b792f5

Browse files
author
Milder Hernandez Cagua
committed
Add PostgreSQL query provider and mapper
1 parent 473e9d1 commit 8b792f5

File tree

13 files changed

+752
-132
lines changed

13 files changed

+752
-132
lines changed

api-test/integration-tests/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@
7373
<version>8.0.33</version>
7474
<scope>test</scope>
7575
</dependency>
76+
<dependency>
77+
<groupId>org.postgresql</groupId>
78+
<artifactId>postgresql</artifactId>
79+
<version>42.7.2</version> <!-- Use the latest version -->
80+
</dependency>
7681

7782
<dependency>
7883
<groupId>org.testcontainers</groupId>
@@ -139,6 +144,31 @@
139144
</execution>
140145
</executions>
141146
</plugin>
147+
148+
<plugin>
149+
<groupId>io.fabric8</groupId>
150+
<artifactId>docker-maven-plugin</artifactId>
151+
<version>0.45.0</version> <!-- Use the latest version -->
152+
<executions>
153+
<execution>
154+
<id>build-image</id>
155+
<phase>package</phase>
156+
<goals>
157+
<goal>build</goal>
158+
</goals>
159+
</execution>
160+
</executions>
161+
<configuration>
162+
<images>
163+
<image>
164+
<name>pgvector:latest</name>
165+
<build>
166+
<dockerFile>${project.basedir}/api-test/integration-tests/src/test/java/com/microsoft/semantickernel/tests/jdbc/pgvector/Dockerfile</dockerFile>
167+
</build>
168+
</image>
169+
</images>
170+
</configuration>
171+
</plugin>
142172
</plugins>
143173
</build>
144174

api-test/integration-tests/src/test/java/com/microsoft/semantickernel/tests/connectors/memory/Hotel.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Hotel {
1818
@VectorStoreRecordVectorAttribute(dimensions = 3)
1919
private final List<Float> descriptionEmbedding;
2020
@VectorStoreRecordDataAttribute
21-
private final double rating;
21+
private double rating;
2222

2323
public Hotel() {
2424
this(null, null, 0, null, null, 0.0);
@@ -56,4 +56,8 @@ public List<Float> getDescriptionEmbedding() {
5656
public double getRating() {
5757
return rating;
5858
}
59+
60+
public void setRating(double rating) {
61+
this.rating = rating;
62+
}
5963
}

0 commit comments

Comments
 (0)