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
Name | Type |
---|---|
«destructured» | Object |
› embedding | number [] |
› existingResults | WithScore <EmbeddedContent >[] |
› store | EmbeddedContentStore |
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
Name | Type |
---|---|
«destructured» | Object |
› text | string |
Returns
Promise
<boolean
>
Defined in
packages/mongodb-chatbot-server/src/processors/SearchBooster.ts:12