Skip to content

Commit

Permalink
Merge pull request #85 from Thomas-S-Allen/update_classifier_protobuf
Browse files Browse the repository at this point in the history
Update to classifyrecord protobuf
  • Loading branch information
Thomas-S-Allen authored Oct 28, 2024
2 parents 9c1e06a + f13434a commit 4589e36
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 24 deletions.
101 changes: 82 additions & 19 deletions adsmsg/protobuf/classifyrecord_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 14 additions & 5 deletions specs/classifyrecord.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ package adsmsg;
// send this to classifier_pipeline to get the classification
message ClassifyRequestRecord {
string bibcode = 1;
Status status = 2;
string title = 3;
string abstract = 4;
string scix_id = 2;
Status status = 3;
string title = 4;
string abstract = 5;
string operation_step = 6;
uint64 run_id = 7;
repeated string override = 8;
string output_path = 9;
repeated double scores = 10;
repeated string collections = 11;
repeated double collection_scores = 12;
}

// also support lists of the above
Expand All @@ -21,10 +29,11 @@ message ClassifyRequestRecordList {
message ClassifyResponseRecord {
// data sent for classification
string bibcode = 1;
Status status = 2;
string scix_id = 2;
Status status = 3;

// calculated values for solr fields
repeated string collections = 3;
repeated string collections = 4;
}

// also support lists of the above
Expand Down

0 comments on commit 4589e36

Please sign in to comment.