package NRTYFeatures;

option optimize_for = CODE_SIZE;

message TDssmModelFile {
    optional string FileName = 1;
    optional string Alias = 2;
    //TBD: version
}

message TDssmFactorsBlock {
    message TFactorDescription {
        optional string FactorName = 1;
        optional string OutputVar = 2;
    }

    // InputField is an annotation in the TFieldExtractorLayer (not a variable), like "doc_host"
    optional string ModelAlias = 1;
    repeated string InputField = 8;
    repeated string QueryEmbedding = 9;
    repeated TFactorDescription Factor = 10;
}

message TDssmModelsConfig {
    optional bool CheckFilesExistence = 1 [default = true];
    repeated TDssmFactorsBlock DssmFactors = 10;
    repeated TDssmModelFile DssmModel = 11;
}

