Skip to main content

Interface: SearchBooster

Modify the vector search results to add, elevate, or mutate search results after the search has been performed.

Properties

boost

boost: (__namedParameters: { embedding: number[] ; existingResults: WithScore<EmbeddedContent>[] ; store: EmbeddedContentStore }) => Promise<WithScore<EmbeddedContent>[]>

Type declaration

▸ («destructured»): Promise<WithScore<EmbeddedContent>[]>

Parameters
NameType
«destructured»Object
› embeddingnumber[]
› existingResultsWithScore<EmbeddedContent>[]
› storeEmbeddedContentStore
Returns

Promise<WithScore<EmbeddedContent>[]>

Defined in

packages/mongodb-chatbot-server/src/processors/SearchBooster.ts:13


shouldBoost

shouldBoost: (__namedParameters: { text: string }) => Promise<boolean>

Type declaration

▸ («destructured»): Promise<boolean>

Parameters
NameType
«destructured»Object
› textstring
Returns

Promise<boolean>

Defined in

packages/mongodb-chatbot-server/src/processors/SearchBooster.ts:12