pinecone.data.features.inference.models.rerank_result

 1from pinecone.core.openapi.inference.models import RerankResult as OpenAPIRerankResult
 2
 3
 4class RerankResult:
 5    """
 6    A wrapper around OpenAPIRerankResult.
 7    """
 8
 9    def __init__(self, rerank_result: OpenAPIRerankResult):
10        self.rerank_result = rerank_result
11
12    def __str__(self):
13        return str(self.rerank_result)
14
15    def __repr__(self):
16        return repr(self.rerank_result)
17
18    def __getattr__(self, attr):
19        return getattr(self.rerank_result, attr)
class RerankResult:
 5class RerankResult:
 6    """
 7    A wrapper around OpenAPIRerankResult.
 8    """
 9
10    def __init__(self, rerank_result: OpenAPIRerankResult):
11        self.rerank_result = rerank_result
12
13    def __str__(self):
14        return str(self.rerank_result)
15
16    def __repr__(self):
17        return repr(self.rerank_result)
18
19    def __getattr__(self, attr):
20        return getattr(self.rerank_result, attr)

A wrapper around OpenAPIRerankResult.

RerankResult( rerank_result: pinecone.core.openapi.inference.model.rerank_result.RerankResult)
10    def __init__(self, rerank_result: OpenAPIRerankResult):
11        self.rerank_result = rerank_result
rerank_result