Namespace: FindContent
Interfaces
Type Aliases
FindContentFunc
Ƭ FindContentFunc: (args
: FindContentFuncArgs
) => Promise
<FindContentResult
>
Type declaration
▸ (args
): Promise
<FindContentResult
>
Parameters
Name | Type |
---|---|
args | FindContentFuncArgs |
Returns
Promise
<FindContentResult
>
Defined in
packages/mongodb-rag-core/build/findContent/FindContentFunc.d.ts:6
FindContentFuncArgs
Ƭ FindContentFuncArgs: Object
Type declaration
Name | Type |
---|---|
query | string |
Defined in
packages/mongodb-rag-core/build/findContent/FindContentFunc.d.ts:3
FindContentResult
Ƭ FindContentResult: Object
Type declaration
Name | Type |
---|---|
content | WithScore <EmbeddedContent >[] |
queryEmbedding | number [] |
Defined in
packages/mongodb-rag-core/build/findContent/FindContentFunc.d.ts:7
MakeDefaultFindContentFuncArgs
Ƭ MakeDefaultFindContentFuncArgs: Object
Type declaration
Name | Type |
---|---|
embedder | Embedder |
findNearestNeighborsOptions? | Partial <FindNearestNeighborsOptions > |
searchBoosters? | SearchBooster [] |
store | EmbeddedContentStore |
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
Name | Type |
---|---|
«destructured» | MakeBoostOnAtlasSearchFilterArgs |
Returns
Defined in
packages/mongodb-rag-core/build/findContent/BoostOnAtlasSearchFilter.d.ts:27
makeDefaultFindContent
▸ makeDefaultFindContent(«destructured»
): FindContentFunc
Basic implementation of FindContentFunc with search boosters.
Parameters
Name | Type |
---|---|
«destructured» | MakeDefaultFindContentFuncArgs |
Returns
Defined in
packages/mongodb-rag-core/build/findContent/DefaultFindContent.d.ts:15