Interface: MongoDbEvaluationStore
Hierarchy
-
↳
MongoDbEvaluationStore
Methods
aggregate
▸ aggregate(pipeline
, options?
): Promise
<Document
[]>
Parameters
Name | Type |
---|---|
pipeline | Document [] |
options? | AggregateOptions |
Returns
Promise
<Document
[]>
Overrides
Defined in
packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:46
close
▸ close(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
Defined in
packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:32
find
▸ find(filter
): Promise
<undefined
| EvalResult
[]>
Parameters
Name | Type |
---|---|
filter | Filter <EvalResult > |
Returns
Promise
<undefined
| EvalResult
[]>
Overrides
Defined in
packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:45
insertMany
▸ insertMany(evalResults
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
evalResults | EvalResult [] |
Returns
Promise
<boolean
>
Inherited from
Defined in
packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:29
insertOne
▸ insertOne(evalResult
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
evalResult | EvalResult |
Returns
Promise
<boolean
>
Inherited from
Defined in
packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:28