Returns an ordered list of documents ordered by their relevance to the provided query.
rerank(
documents: string | DocumentInterface<Record<string, any>> | Record<string, string>[],
query: string,
options: __type
): Promise<__type[]>| Name | Type | Description |
|---|---|---|
documents* | string | DocumentInterface<Record<string, any>> | Record<string, string>[] | A list of documents as strings, DocumentInterfaces or objects with a |
query* | string | The query to use for reranking the documents. |
options | __type |