v1.1.0 Release
Added: List vector IDs
We have added the ability to list vector IDs as a part of data plane operations. By default, the list returns up to 100 IDs at a time by default in sorted order. If the limit parameter is set, list returns up to that number of IDs instead. The list operation can be called using any following methods:
- list()
- list(String namespace)
- list(String namespace, int limit)
- list(String namespace, String prefix)
- list(String namespace, String prefix, int limit)
- list(String namespace, String prefix, String paginationToken)
- list(String namespace, String prefix, String paginationToken, int limit)
Briefly, the parameters are explained below:
- prefix – The prefix with which vector IDs must start to be included in the response.
- paginationToken – The token to paginate through the list of vector IDs.
- limit – The maximum number of vector IDs you want to retrieve.
- namespace – The namespace to list vector IDs from.
Example
The following demonstrates how to use the list endpoint to get vector IDs from a specific namespace, filtered by a given prefix.
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);
ListResponse listResponse = index.list("example-namespace", "prefix-");
What's Changed
- Adds v1-migration.md by @ssmith-pc in #112
- Update upsert example by @rohanshah18 in #113
- Add list endpoint by @aulorbe in #115
- Refactor data plane tests to use
TestResourcesManager
, clean up lengthyThead.sleep()
calls, general clean up by @austin-denoble in #99 - Add new
build-and-publish-docs.yml
GitHub Workflow by @austin-denoble in #116 - Remove serverless public preview warning by @austin-denoble in #121
- Fix
setup-gradle
step inbuild-docs
action by @austin-denoble in #123 - Use correct input for
gradle-version
by @austin-denoble in #125 - Update changelogs, README, and SDK version for v1.1 release by @rohanshah18 in #124
Full Changelog: v1.0.0...v1.1.0