Type alias CreateNearestNeighborsAnalyzerOptions

CreateNearestNeighborsAnalyzerOptions: CreateAnalyzerOptionsType<"nearest_neighbors", {
    model_location: string;
    top_k?: number;
}>

(Enterprise Edition only.) Options for creating a NearestNeighbors Analyzer.

Type declaration

  • model_location: string

    On-disk path to the trained fastText supervised model.

  • Optional top_k?: number

    Number of class labels that will be produced per input.

    Default: 1