Skip to content

Commit

Permalink
Merge pull request #225 from gen-mind/patch/proto-file
Browse files Browse the repository at this point in the history
revert proto definition filetype
  • Loading branch information
apaladiychuk authored Jun 12, 2024
2 parents b34bc48 + 55cbec2 commit 7089488
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 129 deletions.
136 changes: 38 additions & 98 deletions src/backend/core/proto/semantic_data.pb.go

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

77 changes: 46 additions & 31 deletions src/proto/semantic_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,56 @@ option go_package = "backend/core/proto;proto";


enum FileType {
// ORCHESTRATOR SEND TO CONNECTOR:
UNKNOWN = 0;
PDF = 1;
XPS = 2;
TXT = 3;
DOCX = 4;
DOC = 5;
XLSX = 6;
XLS = 7;
PPTX = 8;
PPT = 9;
HWPX = 10;
EPUB = 11;
MOBI = 12;
FB2 = 13;
CBZ = 14;
MD = 15;
// ORCHESTRATOR SEND TO SEMANTIC
URL = 16;
YT = 17;

// ORCHESTRATOR SEND TO MEDIA
MP4 = 18;
MP3 = 19;
MPEG = 20;
MPGA = 21;
M4A = 22;
WAV = 23;
WEBM = 24;
MOV = 25;

UNKNOWN = 0;
URL = 1;
PDF = 2;
RTF = 3;
DOC = 4;
XLS = 5;
PPT = 6;
TXT = 7;
MD = 8;
YT = 9;
// add all supported file that in another document
// check what with Google docs
};

//enum FileType {
// // ORCHESTRATOR SEND TO CONNECTOR:
// UNKNOWN = 0;
// PDF = 1;
// XPS = 2;
// TXT = 3;
// DOCX = 4;
// DOC = 5;
// XLSX = 6;
// XLS = 7;
// PPTX = 8;
// PPT = 9;
// HWPX = 10;
// EPUB = 11;
// MOBI = 12;
// FB2 = 13;
// CBZ = 14;
// MD = 15;
// // ORCHESTRATOR SEND TO SEMANTIC
// URL = 16;
// YT = 17;
//
// // ORCHESTRATOR SEND TO MEDIA
// MP4 = 18;
// MP3 = 19;
// MPEG = 20;
// MPGA = 21;
// M4A = 22;
// WAV = 23;
// WEBM = 24;
// MOV = 25;
//
// // add all supported file that in another document
// // check what with Google docs
//};

message SemanticData {
// This is the url where the file is located.
// Based on the chunking type it will be a WEB URL (HTML type)
Expand Down

0 comments on commit 7089488

Please sign in to comment.