-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch_rec.proto
62 lines (52 loc) · 1.26 KB
/
search_rec.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
syntax = "proto3";
package search;
service SearchService {
rpc Search(SearchRequest) returns (SearchResponse) {}
rpc SearchV1(SearchRequest) returns (SearchResponseV1) {}
rpc ContextualSearch(ContextualSearchRequest)
returns (ContextualSearchResponse) {}
}
message SearchRequest { string input_query = 1; }
message SearchResponse {
repeated SearchItem items = 1;
string answer = 2;
string rag_data = 3;
}
message SearchItem {
string canister_id = 1;
string description = 2;
string host = 3;
string link = 4;
string logo = 5;
string token_name = 6;
string token_symbol = 7;
string user_id = 8;
string created_at = 9;
}
message SearchResponseV1 {
repeated SearchItemV1 items = 1;
string answer = 2;
string rag_data = 3;
}
message SearchItemV1 {
string canister_id = 1;
string description = 2;
string host = 3;
string link = 4;
string logo = 5;
string token_name = 6;
string token_symbol = 7;
string user_id = 8;
string created_at = 9;
bool is_nsfw = 10;
}
message ContextualSearchRequest {
string input_query = 1;
repeated QueryResponsePair previous_interactions = 2;
string rag_data = 3;
}
message ContextualSearchResponse { string answer = 1; }
message QueryResponsePair {
string query = 1;
string response = 2;
}