Interface RerankInput

RerankInput represents the input to generate a rerank.

interface RerankInput {
    documents: string[];
    model: string;
    query: string;
    returnDocuments: boolean;
}

Properties

documents: string[]

documents represent the documents to rank.

model: string

model represents the model to use.

query: string

query represents the content to rank against.

returnDocuments: boolean

returnDocuments determines to return the document in the result.