Extracts the top-k documents from a RetrieveCommandOutput object.
getRetrieverDocs(response: RetrieveCommandOutput, pageSize: number): Document<Record<string, any>>[]| Name | Type | Description |
|---|---|---|
response* | RetrieveCommandOutput | The RetrieveCommandOutput object to extract the documents from. |
pageSize* | number | The number of documents to extract. |