Neighbor: {
    datapoint?: {
        crowdingTag?: { crowdingAttribute?: string };
        datapointId?: string;
        featureVector?: number[];
        numericRestricts?: {
            namespace?: string;
            op?:
                | null
                | "OPERATOR_UNSPECIFIED"
                | "LESS"
                | "LESS_EQUAL"
                | "EQUAL"
                | "GREATER_EQUAL"
                | "GREATER"
                | "NOT_EQUAL";
            valueDouble?: number;
            valueFloat?: number;
            valueInt?: string
            | number;
        }[];
        restricts?: {
            allowList?: string[];
            denyList?: string[];
            namespace?: string;
        }[];
        sparseEmbedding?: { dimensions?: (string | number)[]; values?: number[] };
    };
    distance?: number;
    sparseDistance?: number;
}

Type declaration

  • Optionaldatapoint?: {
        crowdingTag?: { crowdingAttribute?: string };
        datapointId?: string;
        featureVector?: number[];
        numericRestricts?: {
            namespace?: string;
            op?:
                | null
                | "OPERATOR_UNSPECIFIED"
                | "LESS"
                | "LESS_EQUAL"
                | "EQUAL"
                | "GREATER_EQUAL"
                | "GREATER"
                | "NOT_EQUAL";
            valueDouble?: number;
            valueFloat?: number;
            valueInt?: string
            | number;
        }[];
        restricts?: {
            allowList?: string[];
            denyList?: string[];
            namespace?: string;
        }[];
        sparseEmbedding?: { dimensions?: (string | number)[]; values?: number[] };
    }
  • Optionaldistance?: number
  • OptionalsparseDistance?: number