Package com.hw.pinecone
Class IndexClient
java.lang.Object
com.hw.pinecone.IndexClient
- Author:
- HamaWhite
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(DeleteRequest request) The Delete operation deletes vectors, by id, from a single namespace.The DescribeIndexStats operation returns statistics about the index's contents, including the vector count per namespace and the number of dimensions.fetch
(FetchRequest request) The Fetch operation looks up and returns vectors, by ID, from a single namespace.query
(QueryRequest request) The Query operation searches a namespace, using a query vector.upsert
(UpsertRequest request) The Upsert operation writes vectors into a namespace.
-
Constructor Details
-
IndexClient
-
-
Method Details
-
describeIndexStats
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
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
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
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
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
-