Skip to main content

Interface: ClassificationType

index.ClassificationType

Properties

description

description: string

A description of the classification type.

Example

"Example of how to use a library or function"

Example

"A change that is internal to the project and not exposed to the public API"

Defined in

packages/mongodb-rag-core/src/makeClassifier.ts:26


examples

Optional examples: { reason?: string ; text: string }[]

Useful for few-shot prompting examples in the system prompt

Defined in

packages/mongodb-rag-core/src/makeClassifier.ts:30


type

type: string

The classification type label.

Example

"usage_example"

Example

"api_reference"

Example

"internal"

Example

"external"

Defined in

packages/mongodb-rag-core/src/makeClassifier.ts:20