Skip to content

v1.2.0 Release

Compare
Choose a tag to compare
@rohanshah18 rohanshah18 released this 24 May 18:43
· 25 commits to main since this release
e01dac4

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:

  1. list(String namespace, String prefix, String paginationToken)
  2. 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

New Contributors

Full Changelog: v1.1.0...v1.2.0