Class IndexClient

java.lang.Object
com.hw.pinecone.IndexClient

public class IndexClient extends Object
Author:
HamaWhite
  • Constructor Details

  • Method Details

    • describeIndexStats

      public DescribeIndexStatsResponse describeIndexStats(DescribeIndexStatsRequest request)
      The DescribeIndexStats operation returns statistics about the index's contents, including the vector count per namespace and the number of dimensions.
      Parameters:
      request - the request object for describing index statistics
      Returns:
      a DescribeIndexStatsResponse with index statistics
    • query

      public QueryResponse query(QueryRequest request)
      The Query operation searches a namespace, using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores.
      Parameters:
      request - the QueryRequest containing the query vector and other parameters
      Returns:
      a QueryResponse with the results of the query operation
    • delete

      public void delete(DeleteRequest request)
      The Delete operation deletes vectors, by id, from a single namespace. You can delete items by their id, from a single namespace.
      Parameters:
      request - the DeleteRequest containing the ids to delete
    • fetch

      public FetchResponse fetch(FetchRequest request)
      The Fetch operation looks up and returns vectors, by ID, from a single namespace. The returned vectors include the vector data and/or metadata.
      Parameters:
      request - the FetchRequest object containing the parameters for the fetch operation
      Returns:
      a FetchResponse containing the fetched vectors
    • upsert

      public UpsertResponse upsert(UpsertRequest request)
      The Upsert operation writes vectors into a namespace. If a new value is upsert for an existing vector id, it will overwrite the previous value.
      Parameters:
      request - the UpsertRequest containing the vectors to be upsert
      Returns:
      an UpsertResponse indicating the result of the upsert operation