Skip to content

Commit

Permalink
2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
anyihao committed Jan 9, 2025
1 parent eafd5d8 commit b14251a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
<dependency>
<groupId>com.tencent.tcvectordb</groupId>
<artifactId>vectordatabase-sdk-java</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</dependency>
```

- Gradle/Grails

```gradle
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.1.2'
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.1.3'
```

### Examples
Expand Down
4 changes: 2 additions & 2 deletions tcvectordb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
<dependency>
<groupId>com.tencent.tcvectordb</groupId>
<artifactId>vectordatabase-sdk-java</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
</dependency>
```

- Gradle/Grails

```gradle
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.1.2'
compile 'com.tencent.tcvectordb:vectordatabase-sdk-java:2.1.3'
```

### Examples
Expand Down
2 changes: 1 addition & 1 deletion tcvectordb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.tencent.tcvectordb</groupId>
<artifactId>vectordatabase-sdk-java</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
<packaging>jar</packaging>

<name>vectordatabase-sdk-java</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1124,9 +1124,7 @@ private Olama.Document convertDocumentJSON2OlamaDoc(JSONObject document) {

private static Document convertDocument(Olama.Document document) {
Document.Builder builder = Document.newBuilder().withId(document.getId());
if (document.getScore()>0){
builder.withScore(Double.valueOf(document.getScore()));
}
builder.withScore(Double.valueOf(document.getScore()));
if (document.getVectorCount()>0){
builder.withVector(document.getVectorList().stream().map(ele->ele.doubleValue()).collect(Collectors.toList()));
}
Expand Down

0 comments on commit b14251a

Please sign in to comment.