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/src/findContent/FindContentFunc.ts:8


FindContentFuncArgs

Ƭ FindContentFuncArgs: Object

Type declaration

NameType
querystring

Defined in

packages/mongodb-rag-core/src/findContent/FindContentFunc.ts:4


FindContentResult

Ƭ FindContentResult: Object

Type declaration

NameType
contentWithScore<EmbeddedContent>[]
queryEmbeddingnumber[]

Defined in

packages/mongodb-rag-core/src/findContent/FindContentFunc.ts:12


MakeDefaultFindContentFuncArgs

Ƭ MakeDefaultFindContentFuncArgs: Object

Type declaration

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

Defined in

packages/mongodb-rag-core/src/findContent/DefaultFindContent.ts:7


WithFilterAndK

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

Type parameters

Name
T

Defined in

packages/mongodb-rag-core/src/findContent/BoostOnAtlasSearchFilter.ts:5

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/src/findContent/BoostOnAtlasSearchFilter.ts:33


makeDefaultFindContent

makeDefaultFindContent(«destructured»): FindContentFunc

Basic implementation of FindContentFunc with search boosters.

Parameters

NameType
«destructured»MakeDefaultFindContentFuncArgs

Returns

FindContentFunc

Defined in

packages/mongodb-rag-core/src/findContent/DefaultFindContent.ts:17