Skip to content

Commit d4ed79c

Browse files
committed
test
1 parent 8e328b7 commit d4ed79c

File tree

6 files changed

+13
-21
lines changed

6 files changed

+13
-21
lines changed

astra-db-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.datastax.astra</groupId>
1010
<artifactId>astra-db-java-parent</artifactId>
11-
<version>1.4.6-SNAPSHOT</version>
11+
<version>1.4.6</version>
1212
</parent>
1313

1414
<properties>

examples/pom.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
53

64
<modelVersion>4.0.0</modelVersion>
75
<artifactId>astra-db-java-examples</artifactId>
@@ -10,7 +8,7 @@
108
<parent>
119
<groupId>com.datastax.astra</groupId>
1210
<artifactId>astra-db-java-parent</artifactId>
13-
<version>1.4.6-SNAPSHOT</version>
11+
<version>1.4.6</version>
1412
</parent>
1513

1614
<dependencies>

langchain4j-astradb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.datastax.astra</groupId>
1010
<artifactId>astra-db-java-parent</artifactId>
11-
<version>1.4.6-SNAPSHOT</version>
11+
<version>1.4.6</version>
1212
</parent>
1313

1414
<properties>

langchain4j-astradb/src/test/java/dev/langchain4j/store/embedding/astradb/AstraDbEmbeddingStoreIT.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void testAddEmbeddingAndFindRelevant() {
138138
* OVERRIDING FROM DEFAULT TEST AS THE UUID are ENCODED AS {"$uuid":"value"} in ASTRA
139139
*/
140140
@Test
141-
void should_add_embedding_with_segment_with_metadata() {
141+
void should_add_embedding_with_segment_with_metadata() throws InterruptedException {
142142

143143
Metadata metadata = createMetadata();
144144

@@ -148,15 +148,11 @@ void should_add_embedding_with_segment_with_metadata() {
148148
String id = embeddingStore().add(embedding, segment);
149149
assertThat(id).isNotBlank();
150150

151-
{
152-
// Not returned.
153-
TextSegment altSegment = TextSegment.from("hello?");
154-
Embedding altEmbedding = embeddingModel().embed(altSegment.text()).content();
155-
embeddingStore().add(altEmbedding, altSegment);
156-
}
157-
158-
awaitUntilPersisted();
151+
TextSegment altSegment = TextSegment.from("hello?");
152+
Embedding altEmbedding = embeddingModel().embed(altSegment.text()).content();
153+
embeddingStore().add(altEmbedding, altSegment);
159154

155+
Thread.sleep(1000);
160156
List<EmbeddingMatch<TextSegment>> relevant = embeddingStore().findRelevant(embedding, 1);
161157
assertThat(relevant).hasSize(1);
162158

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.datastax.astra</groupId>
55
<artifactId>astra-db-java-parent</artifactId>
66
<name>Data API Client</name>
7-
<version>1.4.6-SNAPSHOT</version>
7+
<version>1.4.6</version>
88
<packaging>pom</packaging>
99
<url>https://github.com/datastax/astra-db-java</url>
1010
<inceptionYear>2024</inceptionYear>
@@ -329,7 +329,7 @@
329329
<connection>scm:git:[email protected]:datastax/astra-db-java.git</connection>
330330
<developerConnection>scm:git:[email protected]:datastax/astra-db-java.git</developerConnection>
331331
<url>https://github.com/datastax/astra-db-java</url>
332-
<tag>1.0.0-beta1</tag>
332+
<tag>1.4.6</tag>
333333
</scm>
334334

335335
<developers>

tools/pom.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
53

64
<modelVersion>4.0.0</modelVersion>
75
<artifactId>astra-db-java-tools</artifactId>
@@ -10,7 +8,7 @@
108
<parent>
119
<groupId>com.datastax.astra</groupId>
1210
<artifactId>astra-db-java-parent</artifactId>
13-
<version>1.4.6-SNAPSHOT</version>
11+
<version>1.4.6</version>
1412
</parent>
1513

1614
<dependencies>

0 commit comments

Comments
 (0)