Skip to content

Commit dd5a37e

Browse files
authored
release: prepare v0.8.0 (#57)
* release: prepare v0.8.0 Bumps pom.xml/Version.java to 0.8.0 and adds release notes covering the four additive feature PRs (#53-#56): search, Nsql/NsqlGenerateSql, active-query management, and async queries. japicmp.oldVersion stays at 0.6.0 rather than bumping to 0.7.0: v0.7.0 was tagged and GitHub-released but its Maven Central publish never completed, so it isn't a resolvable dependency. See the pom.xml comment for detail. * docs: reflect that #54 (search) and #55 (nsql) have merged * docs: scope v0.8.0 to search + nsql only #53 (active queries) and #56 (async queries) will not merge for this release; remove them from the release notes' What's New and reflect that in Release status instead of listing them as still-pending dependencies. * Update release notes for v0.8.0 Removed release status section and notes on features not included in v0.8.0. * Update release notes for v0.8.0 Removed testing section from release notes for v0.8.0. * Update release notes for v0.8.0 Removed highlights section from release notes for v0.8.0. * Change japicmp.oldVersion from 0.6.0 to 0.7.0 Updated the old version for japicmp to 0.7.0.
1 parent dcd719d commit dd5a37e

3 files changed

Lines changed: 39 additions & 3 deletions

File tree

docs/release_notes/v0.8.0.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Spice Java SDK v0.8.0
2+
3+
## What's New
4+
5+
### 🔎 Search
6+
7+
`search()` finds documents similar to a piece of text via the runtime's `/v1/search` endpoint (vector, keyword, and hybrid search), for datasets with an embedding column and a loaded embedding model.
8+
9+
```java
10+
SearchResponse response = client.search(
11+
new SearchRequest("delayed flights to Seattle")
12+
.withDatasets(List.of("flight_reviews"))
13+
.withLimit(5));
14+
15+
for (SearchMatch match : response.getResults()) {
16+
System.out.println(match.getDataset() + ": " + match.getScore());
17+
}
18+
```
19+
20+
### 🗣️ Natural Language to SQL (Nsql)
21+
22+
`nsql()` translates a natural-language query into SQL via the runtime's configured LLM and runs it, returning the rows alongside the generated SQL. `nsqlGenerateSql()` generates the SQL without running it — inspect or edit it, or run it through `query()`/`queryWithParams()` for Arrow-typed results instead of `nsql()`'s decoded JSON rows.
23+
24+
```java
25+
NsqlResponse response = client.nsql(new NsqlRequest("how many trips were over 10 miles?"));
26+
System.out.println(response.getSql());
27+
System.out.println(response.getData());
28+
29+
String sql = client.nsqlGenerateSql(new NsqlRequest("how many trips were over 10 miles?"));
30+
```
31+
32+
## Compatibility
33+
34+
- Public API unchanged: both features are new methods; nothing existing was renamed, removed, or retyped.
35+
- No new dependencies.
36+

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>ai.spice</groupId>
55
<artifactId>spiceai</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.7.0</version>
7+
<version>0.8.0</version>
88
<name>Java Spice SDK</name>
99
<url>https://github.com/spiceai/spice-java/</url>
1010
<description>Spice provides a unified SQL query interface and portable runtime to locally materialize, accelerate, and query datasets from any database, data warehouse, or data lake.</description>
@@ -46,7 +46,7 @@
4646
<!-- The last published release, which the japicmp API-compatibility
4747
gate compares against. Bump when releasing; the publish workflow
4848
fails if this still equals the version being released. -->
49-
<japicmp.oldVersion>0.6.0</japicmp.oldVersion>
49+
<japicmp.oldVersion>0.7.0</japicmp.oldVersion>
5050
</properties>
5151
<dependencyManagement>
5252
<dependencies>

src/main/java/ai/spice/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public class Version {
3030
public static final String SPICE_JAVA_VERSION;
3131

3232
static {
33-
SPICE_JAVA_VERSION = "0.7.0";
33+
SPICE_JAVA_VERSION = "0.8.0";
3434
}
3535
}

0 commit comments

Comments
 (0)