Package com.hw.pinecone
Class IndexClient
java.lang.Object
com.hw.pinecone.IndexClient
- Author:
- HamaWhite
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe 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
-
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 upserted for an existing vector id, it will overwrite the previous value.- Parameters:
request- the UpsertRequest containing the vectors to be upserted- Returns:
- an UpsertResponse indicating the result of the upsert operation
-