pinecone-1.0.0: Servant bindings to Pinecone
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pinecone.Rerank

Description

Rerank

Synopsis

Main types

data RerankResults Source #

Rerank documents for the given query

Instances

Instances details
FromJSON RerankResults Source # 
Instance details

Defined in Pinecone.Rerank

ToJSON RerankResults Source # 
Instance details

Defined in Pinecone.Rerank

Generic RerankResults Source # 
Instance details

Defined in Pinecone.Rerank

Associated Types

type Rep RerankResults :: Type -> Type #

Show RerankResults Source # 
Instance details

Defined in Pinecone.Rerank

Eq RerankResults Source # 
Instance details

Defined in Pinecone.Rerank

type Rep RerankResults Source # 
Instance details

Defined in Pinecone.Rerank

data Documents Source #

The result of a reranking request.

Constructors

Documents 

Fields

Instances

Instances details
FromJSON Documents Source # 
Instance details

Defined in Pinecone.Rerank

ToJSON Documents Source # 
Instance details

Defined in Pinecone.Rerank

Generic Documents Source # 
Instance details

Defined in Pinecone.Rerank

Associated Types

type Rep Documents :: Type -> Type #

Show Documents Source # 
Instance details

Defined in Pinecone.Rerank

Eq Documents Source # 
Instance details

Defined in Pinecone.Rerank

type Rep Documents Source # 
Instance details

Defined in Pinecone.Rerank

type Rep Documents = D1 ('MetaData "Documents" "Pinecone.Rerank" "pinecone-1.0.0-Ex4c0YruToKASgnObHGBW7" 'False) (C1 ('MetaCons "Documents" 'PrefixI 'True) (S1 ('MetaSel ('Just "model") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector Document)) :*: S1 ('MetaSel ('Just "usage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Usage))))

Other types

data Document Source #

A ranked document with a relevance score and an index position.

Constructors

Document 

Instances

Instances details
FromJSON Document Source # 
Instance details

Defined in Pinecone.Rerank

ToJSON Document Source # 
Instance details

Defined in Pinecone.Rerank

Generic Document Source # 
Instance details

Defined in Pinecone.Rerank

Associated Types

type Rep Document :: Type -> Type #

Methods

from :: Document -> Rep Document x #

to :: Rep Document x -> Document #

Show Document Source # 
Instance details

Defined in Pinecone.Rerank

Eq Document Source # 
Instance details

Defined in Pinecone.Rerank

type Rep Document Source # 
Instance details

Defined in Pinecone.Rerank

type Rep Document = D1 ('MetaData "Document" "Pinecone.Rerank" "pinecone-1.0.0-Ex4c0YruToKASgnObHGBW7" 'False) (C1 ('MetaCons "Document" 'PrefixI 'True) (S1 ('MetaSel ('Just "index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Record)))))

data Usage Source #

Usage statistics for the model inference.

Constructors

Usage 

Instances

Instances details
FromJSON Usage Source # 
Instance details

Defined in Pinecone.Rerank

ToJSON Usage Source # 
Instance details

Defined in Pinecone.Rerank

Generic Usage Source # 
Instance details

Defined in Pinecone.Rerank

Associated Types

type Rep Usage :: Type -> Type #

Methods

from :: Usage -> Rep Usage x #

to :: Rep Usage x -> Usage #

Show Usage Source # 
Instance details

Defined in Pinecone.Rerank

Methods

showsPrec :: Int -> Usage -> ShowS #

show :: Usage -> String #

showList :: [Usage] -> ShowS #

Eq Usage Source # 
Instance details

Defined in Pinecone.Rerank

Methods

(==) :: Usage -> Usage -> Bool #

(/=) :: Usage -> Usage -> Bool #

type Rep Usage Source # 
Instance details

Defined in Pinecone.Rerank

type Rep Usage = D1 ('MetaData "Usage" "Pinecone.Rerank" "pinecone-1.0.0-Ex4c0YruToKASgnObHGBW7" 'False) (C1 ('MetaCons "Usage" 'PrefixI 'True) (S1 ('MetaSel ('Just "rerank_units") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))

Servant

type API = "rerank" :> (ReqBody '[JSON] RerankResults :> Post '[JSON] Documents) Source #

Servant API