Skip to main content

Interface: MongoDbEvaluationStore

Hierarchy

Methods

aggregate

aggregate(pipeline, options?): Promise<Document[]>

Parameters

NameType
pipelineDocument[]
options?AggregateOptions

Returns

Promise<Document[]>

Overrides

EvaluationStore.aggregate

Defined in

packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:46


close

close(): Promise<void>

Returns

Promise<void>

Inherited from

EvaluationStore.close

Defined in

packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:32


find

find(filter): Promise<undefined | EvalResult[]>

Parameters

NameType
filterFilter<EvalResult>

Returns

Promise<undefined | EvalResult[]>

Overrides

EvaluationStore.find

Defined in

packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:45


insertMany

insertMany(evalResults): Promise<boolean>

Parameters

NameType
evalResultsEvalResult[]

Returns

Promise<boolean>

Inherited from

EvaluationStore.insertMany

Defined in

packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:29


insertOne

insertOne(evalResult): Promise<boolean>

Parameters

NameType
evalResultEvalResult

Returns

Promise<boolean>

Inherited from

EvaluationStore.insertOne

Defined in

packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:28