Skip to main content

Namespace: FindContent

Interfaces

Type Aliases

FindContentFunc

Ƭ FindContentFunc: (args: FindContentFuncArgs) => Promise<FindContentResult>

Type declaration

▸ (args): Promise<FindContentResult>

Parameters
NameType
argsFindContentFuncArgs
Returns

Promise<FindContentResult>

Defined in

packages/mongodb-rag-core/build/findContent/FindContentFunc.d.ts:6


FindContentFuncArgs

Ƭ FindContentFuncArgs: Object

Type declaration

NameType
querystring

Defined in

packages/mongodb-rag-core/build/findContent/FindContentFunc.d.ts:3


FindContentResult

Ƭ FindContentResult: Object

Type declaration

NameType
contentWithScore<EmbeddedContent>[]
queryEmbeddingnumber[]

Defined in

packages/mongodb-rag-core/build/findContent/FindContentFunc.d.ts:7


MakeDefaultFindContentFuncArgs

Ƭ MakeDefaultFindContentFuncArgs: Object

Type declaration

NameType
embedderEmbedder
findNearestNeighborsOptions?Partial<FindNearestNeighborsOptions>
searchBoosters?SearchBooster[]
storeEmbeddedContentStore

Defined in

packages/mongodb-rag-core/build/findContent/DefaultFindContent.d.ts:6


WithFilterAndK

Ƭ WithFilterAndK<T>: T & { filter: Record<string, unknown> ; k: number }

Type parameters

Name
T

Defined in

packages/mongodb-rag-core/build/findContent/BoostOnAtlasSearchFilter.d.ts:3

Functions

makeBoostOnAtlasSearchFilter

makeBoostOnAtlasSearchFilter(«destructured»): SearchBooster

Boost certain results in search results from Atlas Search.

Parameters

NameType
«destructured»MakeBoostOnAtlasSearchFilterArgs

Returns

SearchBooster

Defined in

packages/mongodb-rag-core/build/findContent/BoostOnAtlasSearchFilter.d.ts:27


makeDefaultFindContent

makeDefaultFindContent(«destructured»): FindContentFunc

Basic implementation of FindContentFunc with search boosters.

Parameters

NameType
«destructured»MakeDefaultFindContentFuncArgs

Returns

FindContentFunc

Defined in

packages/mongodb-rag-core/build/findContent/DefaultFindContent.d.ts:15