Type alias TableFindAndRerankOptions

TableFindAndRerankOptions: GenericFindAndRerankOptions
Overview

The options for a findAndRerank command on a Table.

Example

const results = await table.findAndRerank({
category: 'books',
}, {
sort: { $hybrid: { vector: 'fantasy novels', text: 'dragons' } },
limit: 5,
timeout: 10000,
});

Builder Methods

You can also use fluent builder methods on the cursor:

Example

const cursor = table.findAndRerank({ category: 'books' })
.sort({ $hybrid: { vector: 'fantasy novels', text: 'dragons' } })
.limit(5)
.includeScores(true);

const results = await cursor.toArray();

See

  • Table.findAndRerank
  • TableFindAndRerankCursor