-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c71ef73
commit 6f07083
Showing
6 changed files
with
61 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
gen-proto-go: | ||
rm -f ../backend/core/proto/*.pb.go | ||
protoc -I=. -I=vendor -I=${GOPATH}/src *.proto --go_out=.. --go-grpc_out=.. | ||
|
||
gen-proto-python: | ||
rm -f ai/core/proto/*.pb.py | ||
protoc -I=. *.proto --python_out=. --python-grpc_out=. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
syntax = "proto3"; | ||
|
||
package com.embedd; | ||
option go_package = "backend/core/proto;proto"; | ||
|
||
|
||
enum FileType { | ||
URL = 0; | ||
PDF = 1; | ||
RTF = 2; | ||
DOC = 3; | ||
XLS = 4; | ||
PPT = 5; | ||
TXT = 6; | ||
MD = 7; | ||
// add all supported file that in another document | ||
// check what with Google docs | ||
}; | ||
|
||
message ChunkingData { | ||
// This is url where the file is located. | ||
// Based on the chunking type it will be a WEB URL (HTML type) | ||
// Will be an S3/MINIO link with a proper authentication in case of a file | ||
string url = 1; | ||
int64 document_id = 2; | ||
FileType file_type = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto3"; | ||
|
||
package com.embedd; | ||
option go_package = "backend/core/proto;proto"; | ||
import "connector_messages.proto"; | ||
import "chunking_data.proto"; | ||
|
||
message Message { | ||
map<string,string> header = 1; | ||
Body body = 2; | ||
} | ||
|
||
message Body { | ||
oneof payload { | ||
ConnectorRequest trigger = 1; | ||
ChunkingData chunking = 2; | ||
} | ||
} |