v1.2.0 Release
Added: apiException as the cause to HttpErrorMapper.mapHttpStatusError to facilitate easier debugging
When a request fails before sending or receiving an HTTP response, the exception cause is now considered. Previously, the client would return an empty error message in such cases.
Added: list vector IDs with pagination token and limit but without prefix
We have added the ability to list vector IDs with pagination token and limit but without prefix. Until now, the users had to use either of the following methods in order to utilize pagination token i.e. they must use it with prefix:
- list(String namespace, String prefix, String paginationToken)
- list(String namespace, String prefix, String paginationToken, int limit)
Example
The following demonstrates how to use the list endpoint with limit and pagination token to get vector IDs from a specific namespace.
import io.pinecone.clients.Index;
import io.pinecone.clients.Pinecone;
import io.pinecone.proto.ListResponse;
...
Pinecone pinecone = new Pinecone.Builder(System.getenv("PINECONE_API_KEY")).build();
String indexName = "example-index";
Index index = pinecone.getIndexConnection(indexName);
// get the pagination token
String paginationToken = index.list("example-namespace", 3).getPagination().getNext();
// get vectors with limit 3 with the paginationToken obtained from the previous step
ListResponse listResponse = index.list("example-namespace", 3, paginationToken);
What's Changed
- Fix
generateJavadoc
errors so we can run in CI by @austin-denoble in #128 - Added ApiException as a cause to mapHttpStatusError by @kkashkovskii in #127
- Add additional list functions to reach parity with RESTful list requests #130 by @rasharab in #133
- Prep for v1.2.0 release by @rohanshah18 in #131
New Contributors
- @kkashkovskii made their first contribution in #127
- @rasharab made their first contribution in #133
Full Changelog: v1.1.0...v1.2.0