Skip to main content

Interface: EvaluationStore

Hierarchy

Methods

aggregate

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

Parameters

NameType
pipelineunknown[]
options?unknown

Returns

Promise<Document[]>

Defined in

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


close

close(): Promise<void>

Returns

Promise<void>

Defined in

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


find

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

Parameters

NameType
filterunknown

Returns

Promise<undefined | EvalResult[]>

Defined in

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


insertMany

insertMany(evalResults): Promise<boolean>

Parameters

NameType
evalResultsEvalResult[]

Returns

Promise<boolean>

Defined in

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


insertOne

insertOne(evalResult): Promise<boolean>

Parameters

NameType
evalResultEvalResult

Returns

Promise<boolean>

Defined in

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