corvic-engine 0.3.0rc58__cp38-abi3-win_amd64.whl → 0.3.0rc59__cp38-abi3-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- corvic/engine/_native.pyd +0 -0
- corvic/model/_completion_model.py +10 -4
- corvic/model/_proto_orm_convert.py +4 -2
- corvic/orm/__init__.py +5 -1
- {corvic_engine-0.3.0rc58.dist-info → corvic_engine-0.3.0rc59.dist-info}/METADATA +1 -1
- {corvic_engine-0.3.0rc58.dist-info → corvic_engine-0.3.0rc59.dist-info}/RECORD +20 -38
- corvic_generated/feature/v2/feature_view_pb2.py +39 -47
- corvic_generated/feature/v2/feature_view_pb2.pyi +0 -14
- corvic_generated/feature/v2/space_pb2.py +77 -87
- corvic_generated/ingest/v2/pipeline_pb2.py +33 -27
- corvic_generated/ingest/v2/quick_mode_pb2.py +18 -13
- corvic_generated/ingest/v2/quick_mode_pb2.pyi +1 -0
- corvic_generated/ingest/v2/resource_pb2.py +64 -58
- corvic_generated/ingest/v2/room_pb2.py +32 -32
- corvic_generated/ingest/v2/source_pb2.py +43 -43
- corvic_generated/ingest/v2/table_pb2.py +23 -23
- corvic_generated/model/v1alpha/models_pb2.py +2 -2
- corvic_generated/model/v1alpha/models_pb2.pyi +4 -4
- corvic_generated/chat/__init__.py +0 -0
- corvic_generated/chat/v1/__init__.py +0 -0
- corvic_generated/chat/v1/service_pb2.py +0 -65
- corvic_generated/chat/v1/service_pb2.pyi +0 -132
- corvic_generated/chat/v1/service_pb2_grpc.py +0 -198
- corvic_generated/chat/v1/service_pb2_grpc.pyi +0 -97
- corvic_generated/completion/__init__.py +0 -0
- corvic_generated/completion/v1/__init__.py +0 -0
- corvic_generated/completion/v1/service_pb2.py +0 -69
- corvic_generated/completion/v1/service_pb2.pyi +0 -201
- corvic_generated/completion/v1/service_pb2_grpc.py +0 -198
- corvic_generated/completion/v1/service_pb2_grpc.pyi +0 -97
- corvic_generated/query/__init__.py +0 -0
- corvic_generated/query/v1/__init__.py +0 -0
- corvic_generated/query/v1/query_pb2.py +0 -36
- corvic_generated/query/v1/query_pb2.pyi +0 -63
- corvic_generated/query/v1/query_pb2_grpc.py +0 -66
- corvic_generated/query/v1/query_pb2_grpc.pyi +0 -41
- {corvic_engine-0.3.0rc58.dist-info → corvic_engine-0.3.0rc59.dist-info}/WHEEL +0 -0
- {corvic_engine-0.3.0rc58.dist-info → corvic_engine-0.3.0rc59.dist-info}/licenses/LICENSE +0 -0
@@ -1,201 +0,0 @@
|
|
1
|
-
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
2
|
-
from google.protobuf.internal import containers as _containers
|
3
|
-
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
4
|
-
from google.protobuf import descriptor as _descriptor
|
5
|
-
from google.protobuf import message as _message
|
6
|
-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
7
|
-
|
8
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
9
|
-
|
10
|
-
class RetrieverType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
11
|
-
__slots__ = ()
|
12
|
-
RETRIEVER_TYPE_UNSPECIFIED: _ClassVar[RetrieverType]
|
13
|
-
RETRIEVER_TYPE_SIMILARITY_SEARCH: _ClassVar[RetrieverType]
|
14
|
-
RETRIEVER_TYPE_FAKE_SEARCH: _ClassVar[RetrieverType]
|
15
|
-
|
16
|
-
class EngineType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
17
|
-
__slots__ = ()
|
18
|
-
ENGINE_TYPE_UNSPECIFIED: _ClassVar[EngineType]
|
19
|
-
ENGINE_TYPE_HUGGINGFACE_REMOTE: _ClassVar[EngineType]
|
20
|
-
ENGINE_TYPE_HUGGINGFACE_LOCAL: _ClassVar[EngineType]
|
21
|
-
ENGINE_TYPE_HUGGINGFACE_INFERENCE: _ClassVar[EngineType]
|
22
|
-
ENGINE_TYPE_OPEN_AI: _ClassVar[EngineType]
|
23
|
-
|
24
|
-
class ChainType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
25
|
-
__slots__ = ()
|
26
|
-
CHAIN_TYPE_UNSPECIFIED: _ClassVar[ChainType]
|
27
|
-
CHAIN_TYPE_STUFF: _ClassVar[ChainType]
|
28
|
-
CHAIN_TYPE_REFINE: _ClassVar[ChainType]
|
29
|
-
RETRIEVER_TYPE_UNSPECIFIED: RetrieverType
|
30
|
-
RETRIEVER_TYPE_SIMILARITY_SEARCH: RetrieverType
|
31
|
-
RETRIEVER_TYPE_FAKE_SEARCH: RetrieverType
|
32
|
-
ENGINE_TYPE_UNSPECIFIED: EngineType
|
33
|
-
ENGINE_TYPE_HUGGINGFACE_REMOTE: EngineType
|
34
|
-
ENGINE_TYPE_HUGGINGFACE_LOCAL: EngineType
|
35
|
-
ENGINE_TYPE_HUGGINGFACE_INFERENCE: EngineType
|
36
|
-
ENGINE_TYPE_OPEN_AI: EngineType
|
37
|
-
CHAIN_TYPE_UNSPECIFIED: ChainType
|
38
|
-
CHAIN_TYPE_STUFF: ChainType
|
39
|
-
CHAIN_TYPE_REFINE: ChainType
|
40
|
-
|
41
|
-
class CompleteResponse(_message.Message):
|
42
|
-
__slots__ = ("text", "finish_reason", "created", "usage", "chunks")
|
43
|
-
class Usage(_message.Message):
|
44
|
-
__slots__ = ("prompt_tokens", "completion_tokens", "total_tokens", "context_tokens")
|
45
|
-
PROMPT_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
46
|
-
COMPLETION_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
47
|
-
TOTAL_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
48
|
-
CONTEXT_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
49
|
-
prompt_tokens: int
|
50
|
-
completion_tokens: int
|
51
|
-
total_tokens: int
|
52
|
-
context_tokens: int
|
53
|
-
def __init__(self, prompt_tokens: _Optional[int] = ..., completion_tokens: _Optional[int] = ..., total_tokens: _Optional[int] = ..., context_tokens: _Optional[int] = ...) -> None: ...
|
54
|
-
class Chunk(_message.Message):
|
55
|
-
__slots__ = ("chunk_id", "document_id", "distance")
|
56
|
-
CHUNK_ID_FIELD_NUMBER: _ClassVar[int]
|
57
|
-
DOCUMENT_ID_FIELD_NUMBER: _ClassVar[int]
|
58
|
-
DISTANCE_FIELD_NUMBER: _ClassVar[int]
|
59
|
-
chunk_id: str
|
60
|
-
document_id: str
|
61
|
-
distance: float
|
62
|
-
def __init__(self, chunk_id: _Optional[str] = ..., document_id: _Optional[str] = ..., distance: _Optional[float] = ...) -> None: ...
|
63
|
-
TEXT_FIELD_NUMBER: _ClassVar[int]
|
64
|
-
FINISH_REASON_FIELD_NUMBER: _ClassVar[int]
|
65
|
-
CREATED_FIELD_NUMBER: _ClassVar[int]
|
66
|
-
USAGE_FIELD_NUMBER: _ClassVar[int]
|
67
|
-
CHUNKS_FIELD_NUMBER: _ClassVar[int]
|
68
|
-
text: str
|
69
|
-
finish_reason: str
|
70
|
-
created: int
|
71
|
-
usage: CompleteResponse.Usage
|
72
|
-
chunks: _containers.RepeatedCompositeFieldContainer[CompleteResponse.Chunk]
|
73
|
-
def __init__(self, text: _Optional[str] = ..., finish_reason: _Optional[str] = ..., created: _Optional[int] = ..., usage: _Optional[_Union[CompleteResponse.Usage, _Mapping]] = ..., chunks: _Optional[_Iterable[_Union[CompleteResponse.Chunk, _Mapping]]] = ...) -> None: ...
|
74
|
-
|
75
|
-
class CompleteRagResponse(_message.Message):
|
76
|
-
__slots__ = ("text", "finish_reason", "created", "usage", "chunks")
|
77
|
-
class Usage(_message.Message):
|
78
|
-
__slots__ = ("prompt_tokens", "completion_tokens", "total_tokens", "context_tokens")
|
79
|
-
PROMPT_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
80
|
-
COMPLETION_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
81
|
-
TOTAL_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
82
|
-
CONTEXT_TOKENS_FIELD_NUMBER: _ClassVar[int]
|
83
|
-
prompt_tokens: int
|
84
|
-
completion_tokens: int
|
85
|
-
total_tokens: int
|
86
|
-
context_tokens: int
|
87
|
-
def __init__(self, prompt_tokens: _Optional[int] = ..., completion_tokens: _Optional[int] = ..., total_tokens: _Optional[int] = ..., context_tokens: _Optional[int] = ...) -> None: ...
|
88
|
-
class Chunk(_message.Message):
|
89
|
-
__slots__ = ("chunk_id", "document_id", "distance")
|
90
|
-
CHUNK_ID_FIELD_NUMBER: _ClassVar[int]
|
91
|
-
DOCUMENT_ID_FIELD_NUMBER: _ClassVar[int]
|
92
|
-
DISTANCE_FIELD_NUMBER: _ClassVar[int]
|
93
|
-
chunk_id: str
|
94
|
-
document_id: str
|
95
|
-
distance: float
|
96
|
-
def __init__(self, chunk_id: _Optional[str] = ..., document_id: _Optional[str] = ..., distance: _Optional[float] = ...) -> None: ...
|
97
|
-
TEXT_FIELD_NUMBER: _ClassVar[int]
|
98
|
-
FINISH_REASON_FIELD_NUMBER: _ClassVar[int]
|
99
|
-
CREATED_FIELD_NUMBER: _ClassVar[int]
|
100
|
-
USAGE_FIELD_NUMBER: _ClassVar[int]
|
101
|
-
CHUNKS_FIELD_NUMBER: _ClassVar[int]
|
102
|
-
text: str
|
103
|
-
finish_reason: str
|
104
|
-
created: int
|
105
|
-
usage: CompleteRagResponse.Usage
|
106
|
-
chunks: _containers.RepeatedCompositeFieldContainer[CompleteRagResponse.Chunk]
|
107
|
-
def __init__(self, text: _Optional[str] = ..., finish_reason: _Optional[str] = ..., created: _Optional[int] = ..., usage: _Optional[_Union[CompleteRagResponse.Usage, _Mapping]] = ..., chunks: _Optional[_Iterable[_Union[CompleteRagResponse.Chunk, _Mapping]]] = ...) -> None: ...
|
108
|
-
|
109
|
-
class GetDefaultResponse(_message.Message):
|
110
|
-
__slots__ = ("sys_prompt", "max_chunks", "chain_type", "embed_engine", "embed_model_name", "workspace", "collection", "tag", "threshold", "retriever_type")
|
111
|
-
SYS_PROMPT_FIELD_NUMBER: _ClassVar[int]
|
112
|
-
MAX_CHUNKS_FIELD_NUMBER: _ClassVar[int]
|
113
|
-
CHAIN_TYPE_FIELD_NUMBER: _ClassVar[int]
|
114
|
-
EMBED_ENGINE_FIELD_NUMBER: _ClassVar[int]
|
115
|
-
EMBED_MODEL_NAME_FIELD_NUMBER: _ClassVar[int]
|
116
|
-
WORKSPACE_FIELD_NUMBER: _ClassVar[int]
|
117
|
-
COLLECTION_FIELD_NUMBER: _ClassVar[int]
|
118
|
-
TAG_FIELD_NUMBER: _ClassVar[int]
|
119
|
-
THRESHOLD_FIELD_NUMBER: _ClassVar[int]
|
120
|
-
RETRIEVER_TYPE_FIELD_NUMBER: _ClassVar[int]
|
121
|
-
sys_prompt: str
|
122
|
-
max_chunks: int
|
123
|
-
chain_type: ChainType
|
124
|
-
embed_engine: EngineType
|
125
|
-
embed_model_name: str
|
126
|
-
workspace: str
|
127
|
-
collection: str
|
128
|
-
tag: str
|
129
|
-
threshold: float
|
130
|
-
retriever_type: RetrieverType
|
131
|
-
def __init__(self, sys_prompt: _Optional[str] = ..., max_chunks: _Optional[int] = ..., chain_type: _Optional[_Union[ChainType, str]] = ..., embed_engine: _Optional[_Union[EngineType, str]] = ..., embed_model_name: _Optional[str] = ..., workspace: _Optional[str] = ..., collection: _Optional[str] = ..., tag: _Optional[str] = ..., threshold: _Optional[float] = ..., retriever_type: _Optional[_Union[RetrieverType, str]] = ...) -> None: ...
|
132
|
-
|
133
|
-
class CompleteRagRequest(_message.Message):
|
134
|
-
__slots__ = ("model", "prompt", "room_id", "sys_prompt", "max_chunks", "chain_type", "embed_engine", "embed_model_name", "workspace", "collection", "tag", "threshold", "retriever_type")
|
135
|
-
MODEL_FIELD_NUMBER: _ClassVar[int]
|
136
|
-
PROMPT_FIELD_NUMBER: _ClassVar[int]
|
137
|
-
ROOM_ID_FIELD_NUMBER: _ClassVar[int]
|
138
|
-
SYS_PROMPT_FIELD_NUMBER: _ClassVar[int]
|
139
|
-
MAX_CHUNKS_FIELD_NUMBER: _ClassVar[int]
|
140
|
-
CHAIN_TYPE_FIELD_NUMBER: _ClassVar[int]
|
141
|
-
EMBED_ENGINE_FIELD_NUMBER: _ClassVar[int]
|
142
|
-
EMBED_MODEL_NAME_FIELD_NUMBER: _ClassVar[int]
|
143
|
-
WORKSPACE_FIELD_NUMBER: _ClassVar[int]
|
144
|
-
COLLECTION_FIELD_NUMBER: _ClassVar[int]
|
145
|
-
TAG_FIELD_NUMBER: _ClassVar[int]
|
146
|
-
THRESHOLD_FIELD_NUMBER: _ClassVar[int]
|
147
|
-
RETRIEVER_TYPE_FIELD_NUMBER: _ClassVar[int]
|
148
|
-
model: str
|
149
|
-
prompt: str
|
150
|
-
room_id: int
|
151
|
-
sys_prompt: str
|
152
|
-
max_chunks: int
|
153
|
-
chain_type: ChainType
|
154
|
-
embed_engine: EngineType
|
155
|
-
embed_model_name: str
|
156
|
-
workspace: str
|
157
|
-
collection: str
|
158
|
-
tag: str
|
159
|
-
threshold: float
|
160
|
-
retriever_type: RetrieverType
|
161
|
-
def __init__(self, model: _Optional[str] = ..., prompt: _Optional[str] = ..., room_id: _Optional[int] = ..., sys_prompt: _Optional[str] = ..., max_chunks: _Optional[int] = ..., chain_type: _Optional[_Union[ChainType, str]] = ..., embed_engine: _Optional[_Union[EngineType, str]] = ..., embed_model_name: _Optional[str] = ..., workspace: _Optional[str] = ..., collection: _Optional[str] = ..., tag: _Optional[str] = ..., threshold: _Optional[float] = ..., retriever_type: _Optional[_Union[RetrieverType, str]] = ...) -> None: ...
|
162
|
-
|
163
|
-
class CompleteRequest(_message.Message):
|
164
|
-
__slots__ = ("model", "prompt", "sys_prompt")
|
165
|
-
MODEL_FIELD_NUMBER: _ClassVar[int]
|
166
|
-
PROMPT_FIELD_NUMBER: _ClassVar[int]
|
167
|
-
SYS_PROMPT_FIELD_NUMBER: _ClassVar[int]
|
168
|
-
model: str
|
169
|
-
prompt: str
|
170
|
-
sys_prompt: str
|
171
|
-
def __init__(self, model: _Optional[str] = ..., prompt: _Optional[str] = ..., sys_prompt: _Optional[str] = ...) -> None: ...
|
172
|
-
|
173
|
-
class GetShaResponse(_message.Message):
|
174
|
-
__slots__ = ("sha",)
|
175
|
-
SHA_FIELD_NUMBER: _ClassVar[int]
|
176
|
-
sha: str
|
177
|
-
def __init__(self, sha: _Optional[str] = ...) -> None: ...
|
178
|
-
|
179
|
-
class GetShaRequest(_message.Message):
|
180
|
-
__slots__ = ()
|
181
|
-
def __init__(self) -> None: ...
|
182
|
-
|
183
|
-
class GetModelsRequest(_message.Message):
|
184
|
-
__slots__ = ()
|
185
|
-
def __init__(self) -> None: ...
|
186
|
-
|
187
|
-
class GetDefaultRequest(_message.Message):
|
188
|
-
__slots__ = ()
|
189
|
-
def __init__(self) -> None: ...
|
190
|
-
|
191
|
-
class Model(_message.Message):
|
192
|
-
__slots__ = ("name",)
|
193
|
-
NAME_FIELD_NUMBER: _ClassVar[int]
|
194
|
-
name: str
|
195
|
-
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
196
|
-
|
197
|
-
class GetModelsResponse(_message.Message):
|
198
|
-
__slots__ = ("names",)
|
199
|
-
NAMES_FIELD_NUMBER: _ClassVar[int]
|
200
|
-
names: _containers.RepeatedCompositeFieldContainer[Model]
|
201
|
-
def __init__(self, names: _Optional[_Iterable[_Union[Model, _Mapping]]] = ...) -> None: ...
|
@@ -1,198 +0,0 @@
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
3
|
-
import grpc
|
4
|
-
|
5
|
-
from corvic_generated.completion.v1 import service_pb2 as corvic_dot_completion_dot_v1_dot_service__pb2
|
6
|
-
|
7
|
-
|
8
|
-
class CompletionServiceStub(object):
|
9
|
-
"""Missing associated documentation comment in .proto file."""
|
10
|
-
|
11
|
-
def __init__(self, channel):
|
12
|
-
"""Constructor.
|
13
|
-
|
14
|
-
Args:
|
15
|
-
channel: A grpc.Channel.
|
16
|
-
"""
|
17
|
-
self.Complete = channel.unary_unary(
|
18
|
-
'/corvic.completion.v1.CompletionService/Complete',
|
19
|
-
request_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRequest.SerializeToString,
|
20
|
-
response_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.CompleteResponse.FromString,
|
21
|
-
)
|
22
|
-
self.CompleteRag = channel.unary_unary(
|
23
|
-
'/corvic.completion.v1.CompletionService/CompleteRag',
|
24
|
-
request_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRagRequest.SerializeToString,
|
25
|
-
response_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRagResponse.FromString,
|
26
|
-
)
|
27
|
-
self.GetSha = channel.unary_unary(
|
28
|
-
'/corvic.completion.v1.CompletionService/GetSha',
|
29
|
-
request_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetShaRequest.SerializeToString,
|
30
|
-
response_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetShaResponse.FromString,
|
31
|
-
)
|
32
|
-
self.GetModels = channel.unary_unary(
|
33
|
-
'/corvic.completion.v1.CompletionService/GetModels',
|
34
|
-
request_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetModelsRequest.SerializeToString,
|
35
|
-
response_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetModelsResponse.FromString,
|
36
|
-
)
|
37
|
-
self.GetDefault = channel.unary_unary(
|
38
|
-
'/corvic.completion.v1.CompletionService/GetDefault',
|
39
|
-
request_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetDefaultRequest.SerializeToString,
|
40
|
-
response_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetDefaultResponse.FromString,
|
41
|
-
)
|
42
|
-
|
43
|
-
|
44
|
-
class CompletionServiceServicer(object):
|
45
|
-
"""Missing associated documentation comment in .proto file."""
|
46
|
-
|
47
|
-
def Complete(self, request, context):
|
48
|
-
"""Missing associated documentation comment in .proto file."""
|
49
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
50
|
-
context.set_details('Method not implemented!')
|
51
|
-
raise NotImplementedError('Method not implemented!')
|
52
|
-
|
53
|
-
def CompleteRag(self, request, context):
|
54
|
-
"""Missing associated documentation comment in .proto file."""
|
55
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
56
|
-
context.set_details('Method not implemented!')
|
57
|
-
raise NotImplementedError('Method not implemented!')
|
58
|
-
|
59
|
-
def GetSha(self, request, context):
|
60
|
-
"""Missing associated documentation comment in .proto file."""
|
61
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
62
|
-
context.set_details('Method not implemented!')
|
63
|
-
raise NotImplementedError('Method not implemented!')
|
64
|
-
|
65
|
-
def GetModels(self, request, context):
|
66
|
-
"""Missing associated documentation comment in .proto file."""
|
67
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
68
|
-
context.set_details('Method not implemented!')
|
69
|
-
raise NotImplementedError('Method not implemented!')
|
70
|
-
|
71
|
-
def GetDefault(self, request, context):
|
72
|
-
"""Missing associated documentation comment in .proto file."""
|
73
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
74
|
-
context.set_details('Method not implemented!')
|
75
|
-
raise NotImplementedError('Method not implemented!')
|
76
|
-
|
77
|
-
|
78
|
-
def add_CompletionServiceServicer_to_server(servicer, server):
|
79
|
-
rpc_method_handlers = {
|
80
|
-
'Complete': grpc.unary_unary_rpc_method_handler(
|
81
|
-
servicer.Complete,
|
82
|
-
request_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRequest.FromString,
|
83
|
-
response_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.CompleteResponse.SerializeToString,
|
84
|
-
),
|
85
|
-
'CompleteRag': grpc.unary_unary_rpc_method_handler(
|
86
|
-
servicer.CompleteRag,
|
87
|
-
request_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRagRequest.FromString,
|
88
|
-
response_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRagResponse.SerializeToString,
|
89
|
-
),
|
90
|
-
'GetSha': grpc.unary_unary_rpc_method_handler(
|
91
|
-
servicer.GetSha,
|
92
|
-
request_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetShaRequest.FromString,
|
93
|
-
response_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetShaResponse.SerializeToString,
|
94
|
-
),
|
95
|
-
'GetModels': grpc.unary_unary_rpc_method_handler(
|
96
|
-
servicer.GetModels,
|
97
|
-
request_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetModelsRequest.FromString,
|
98
|
-
response_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetModelsResponse.SerializeToString,
|
99
|
-
),
|
100
|
-
'GetDefault': grpc.unary_unary_rpc_method_handler(
|
101
|
-
servicer.GetDefault,
|
102
|
-
request_deserializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetDefaultRequest.FromString,
|
103
|
-
response_serializer=corvic_dot_completion_dot_v1_dot_service__pb2.GetDefaultResponse.SerializeToString,
|
104
|
-
),
|
105
|
-
}
|
106
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
107
|
-
'corvic.completion.v1.CompletionService', rpc_method_handlers)
|
108
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
109
|
-
|
110
|
-
|
111
|
-
# This class is part of an EXPERIMENTAL API.
|
112
|
-
class CompletionService(object):
|
113
|
-
"""Missing associated documentation comment in .proto file."""
|
114
|
-
|
115
|
-
@staticmethod
|
116
|
-
def Complete(request,
|
117
|
-
target,
|
118
|
-
options=(),
|
119
|
-
channel_credentials=None,
|
120
|
-
call_credentials=None,
|
121
|
-
insecure=False,
|
122
|
-
compression=None,
|
123
|
-
wait_for_ready=None,
|
124
|
-
timeout=None,
|
125
|
-
metadata=None):
|
126
|
-
return grpc.experimental.unary_unary(request, target, '/corvic.completion.v1.CompletionService/Complete',
|
127
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRequest.SerializeToString,
|
128
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.CompleteResponse.FromString,
|
129
|
-
options, channel_credentials,
|
130
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
131
|
-
|
132
|
-
@staticmethod
|
133
|
-
def CompleteRag(request,
|
134
|
-
target,
|
135
|
-
options=(),
|
136
|
-
channel_credentials=None,
|
137
|
-
call_credentials=None,
|
138
|
-
insecure=False,
|
139
|
-
compression=None,
|
140
|
-
wait_for_ready=None,
|
141
|
-
timeout=None,
|
142
|
-
metadata=None):
|
143
|
-
return grpc.experimental.unary_unary(request, target, '/corvic.completion.v1.CompletionService/CompleteRag',
|
144
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRagRequest.SerializeToString,
|
145
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.CompleteRagResponse.FromString,
|
146
|
-
options, channel_credentials,
|
147
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
148
|
-
|
149
|
-
@staticmethod
|
150
|
-
def GetSha(request,
|
151
|
-
target,
|
152
|
-
options=(),
|
153
|
-
channel_credentials=None,
|
154
|
-
call_credentials=None,
|
155
|
-
insecure=False,
|
156
|
-
compression=None,
|
157
|
-
wait_for_ready=None,
|
158
|
-
timeout=None,
|
159
|
-
metadata=None):
|
160
|
-
return grpc.experimental.unary_unary(request, target, '/corvic.completion.v1.CompletionService/GetSha',
|
161
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.GetShaRequest.SerializeToString,
|
162
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.GetShaResponse.FromString,
|
163
|
-
options, channel_credentials,
|
164
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
165
|
-
|
166
|
-
@staticmethod
|
167
|
-
def GetModels(request,
|
168
|
-
target,
|
169
|
-
options=(),
|
170
|
-
channel_credentials=None,
|
171
|
-
call_credentials=None,
|
172
|
-
insecure=False,
|
173
|
-
compression=None,
|
174
|
-
wait_for_ready=None,
|
175
|
-
timeout=None,
|
176
|
-
metadata=None):
|
177
|
-
return grpc.experimental.unary_unary(request, target, '/corvic.completion.v1.CompletionService/GetModels',
|
178
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.GetModelsRequest.SerializeToString,
|
179
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.GetModelsResponse.FromString,
|
180
|
-
options, channel_credentials,
|
181
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
182
|
-
|
183
|
-
@staticmethod
|
184
|
-
def GetDefault(request,
|
185
|
-
target,
|
186
|
-
options=(),
|
187
|
-
channel_credentials=None,
|
188
|
-
call_credentials=None,
|
189
|
-
insecure=False,
|
190
|
-
compression=None,
|
191
|
-
wait_for_ready=None,
|
192
|
-
timeout=None,
|
193
|
-
metadata=None):
|
194
|
-
return grpc.experimental.unary_unary(request, target, '/corvic.completion.v1.CompletionService/GetDefault',
|
195
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.GetDefaultRequest.SerializeToString,
|
196
|
-
corvic_dot_completion_dot_v1_dot_service__pb2.GetDefaultResponse.FromString,
|
197
|
-
options, channel_credentials,
|
198
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -1,97 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
3
|
-
isort:skip_file
|
4
|
-
"""
|
5
|
-
import abc
|
6
|
-
import collections.abc
|
7
|
-
import corvic_generated.completion.v1.service_pb2
|
8
|
-
import grpc
|
9
|
-
import grpc.aio
|
10
|
-
import typing
|
11
|
-
|
12
|
-
_T = typing.TypeVar('_T')
|
13
|
-
|
14
|
-
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta):
|
15
|
-
...
|
16
|
-
|
17
|
-
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore
|
18
|
-
...
|
19
|
-
|
20
|
-
class CompletionServiceStub:
|
21
|
-
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
22
|
-
Complete: grpc.UnaryUnaryMultiCallable[
|
23
|
-
corvic_generated.completion.v1.service_pb2.CompleteRequest,
|
24
|
-
corvic_generated.completion.v1.service_pb2.CompleteResponse,
|
25
|
-
]
|
26
|
-
CompleteRag: grpc.UnaryUnaryMultiCallable[
|
27
|
-
corvic_generated.completion.v1.service_pb2.CompleteRagRequest,
|
28
|
-
corvic_generated.completion.v1.service_pb2.CompleteRagResponse,
|
29
|
-
]
|
30
|
-
GetSha: grpc.UnaryUnaryMultiCallable[
|
31
|
-
corvic_generated.completion.v1.service_pb2.GetShaRequest,
|
32
|
-
corvic_generated.completion.v1.service_pb2.GetShaResponse,
|
33
|
-
]
|
34
|
-
GetModels: grpc.UnaryUnaryMultiCallable[
|
35
|
-
corvic_generated.completion.v1.service_pb2.GetModelsRequest,
|
36
|
-
corvic_generated.completion.v1.service_pb2.GetModelsResponse,
|
37
|
-
]
|
38
|
-
GetDefault: grpc.UnaryUnaryMultiCallable[
|
39
|
-
corvic_generated.completion.v1.service_pb2.GetDefaultRequest,
|
40
|
-
corvic_generated.completion.v1.service_pb2.GetDefaultResponse,
|
41
|
-
]
|
42
|
-
|
43
|
-
class CompletionServiceAsyncStub:
|
44
|
-
Complete: grpc.aio.UnaryUnaryMultiCallable[
|
45
|
-
corvic_generated.completion.v1.service_pb2.CompleteRequest,
|
46
|
-
corvic_generated.completion.v1.service_pb2.CompleteResponse,
|
47
|
-
]
|
48
|
-
CompleteRag: grpc.aio.UnaryUnaryMultiCallable[
|
49
|
-
corvic_generated.completion.v1.service_pb2.CompleteRagRequest,
|
50
|
-
corvic_generated.completion.v1.service_pb2.CompleteRagResponse,
|
51
|
-
]
|
52
|
-
GetSha: grpc.aio.UnaryUnaryMultiCallable[
|
53
|
-
corvic_generated.completion.v1.service_pb2.GetShaRequest,
|
54
|
-
corvic_generated.completion.v1.service_pb2.GetShaResponse,
|
55
|
-
]
|
56
|
-
GetModels: grpc.aio.UnaryUnaryMultiCallable[
|
57
|
-
corvic_generated.completion.v1.service_pb2.GetModelsRequest,
|
58
|
-
corvic_generated.completion.v1.service_pb2.GetModelsResponse,
|
59
|
-
]
|
60
|
-
GetDefault: grpc.aio.UnaryUnaryMultiCallable[
|
61
|
-
corvic_generated.completion.v1.service_pb2.GetDefaultRequest,
|
62
|
-
corvic_generated.completion.v1.service_pb2.GetDefaultResponse,
|
63
|
-
]
|
64
|
-
|
65
|
-
class CompletionServiceServicer(metaclass=abc.ABCMeta):
|
66
|
-
@abc.abstractmethod
|
67
|
-
def Complete(
|
68
|
-
self,
|
69
|
-
request: corvic_generated.completion.v1.service_pb2.CompleteRequest,
|
70
|
-
context: _ServicerContext,
|
71
|
-
) -> typing.Union[corvic_generated.completion.v1.service_pb2.CompleteResponse, collections.abc.Awaitable[corvic_generated.completion.v1.service_pb2.CompleteResponse]]: ...
|
72
|
-
@abc.abstractmethod
|
73
|
-
def CompleteRag(
|
74
|
-
self,
|
75
|
-
request: corvic_generated.completion.v1.service_pb2.CompleteRagRequest,
|
76
|
-
context: _ServicerContext,
|
77
|
-
) -> typing.Union[corvic_generated.completion.v1.service_pb2.CompleteRagResponse, collections.abc.Awaitable[corvic_generated.completion.v1.service_pb2.CompleteRagResponse]]: ...
|
78
|
-
@abc.abstractmethod
|
79
|
-
def GetSha(
|
80
|
-
self,
|
81
|
-
request: corvic_generated.completion.v1.service_pb2.GetShaRequest,
|
82
|
-
context: _ServicerContext,
|
83
|
-
) -> typing.Union[corvic_generated.completion.v1.service_pb2.GetShaResponse, collections.abc.Awaitable[corvic_generated.completion.v1.service_pb2.GetShaResponse]]: ...
|
84
|
-
@abc.abstractmethod
|
85
|
-
def GetModels(
|
86
|
-
self,
|
87
|
-
request: corvic_generated.completion.v1.service_pb2.GetModelsRequest,
|
88
|
-
context: _ServicerContext,
|
89
|
-
) -> typing.Union[corvic_generated.completion.v1.service_pb2.GetModelsResponse, collections.abc.Awaitable[corvic_generated.completion.v1.service_pb2.GetModelsResponse]]: ...
|
90
|
-
@abc.abstractmethod
|
91
|
-
def GetDefault(
|
92
|
-
self,
|
93
|
-
request: corvic_generated.completion.v1.service_pb2.GetDefaultRequest,
|
94
|
-
context: _ServicerContext,
|
95
|
-
) -> typing.Union[corvic_generated.completion.v1.service_pb2.GetDefaultResponse, collections.abc.Awaitable[corvic_generated.completion.v1.service_pb2.GetDefaultResponse]]: ...
|
96
|
-
|
97
|
-
def add_CompletionServiceServicer_to_server(servicer: CompletionServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
File without changes
|
File without changes
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# source: corvic/query/v1/query.proto
|
4
|
-
# Protobuf Python Version: 4.25.3
|
5
|
-
"""Generated protocol buffer code."""
|
6
|
-
from google.protobuf import descriptor as _descriptor
|
7
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
-
from google.protobuf import symbol_database as _symbol_database
|
9
|
-
from google.protobuf.internal import builder as _builder
|
10
|
-
# @@protoc_insertion_point(imports)
|
11
|
-
|
12
|
-
_sym_db = _symbol_database.Default()
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63orvic/query/v1/query.proto\x12\x0f\x63orvic.query.v1\"P\n\nTokenUsage\x12\x1f\n\x0btoken_input\x18\x01 \x01(\x01R\ntokenInput\x12!\n\x0ctoken_output\x18\x02 \x01(\x01R\x0btokenOutput\"\xd4\x01\n\x0cQueryRequest\x12\x14\n\x05query\x18\x01 \x01(\tR\x05query\x12\x39\n\nrag_method\x18\x02 \x01(\x0e\x32\x1a.corvic.query.v1.RagMethodR\tragMethod\x12\x38\n\x18model_system_instruction\x18\x03 \x01(\tR\x16modelSystemInstruction\x12\x39\n\nmodel_type\x18\x04 \x01(\x0e\x32\x1a.corvic.query.v1.ModelTypeR\tmodelType\"\x83\x01\n\rQueryResponse\x12<\n\x0btoken_usage\x18\x01 \x01(\x0b\x32\x1b.corvic.query.v1.TokenUsageR\ntokenUsage\x12\x1a\n\x08response\x18\x02 \x01(\tR\x08response\x12\x18\n\x07sources\x18\x03 \x03(\tR\x07sources*T\n\tRagMethod\x12\x1a\n\x16RAG_METHOD_UNSPECIFIED\x10\x00\x12\x14\n\x10RAG_METHOD_NAIVE\x10\x01\x12\x15\n\x11RAG_METHOD_CORVIC\x10\x02*\xed\x01\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19MODEL_TYPE_GEMINI_1_5_PRO\x10\x01\x12%\n!MODEL_TYPE_GEMINI_1_5_PRO_PREVIEW\x10\x02\x12\x1f\n\x1bMODEL_TYPE_GEMINI_1_5_FLASH\x10\x03\x12\'\n#MODEL_TYPE_GEMINI_1_5_FLASH_PREVIEW\x10\x04\x12\x16\n\x12MODEL_TYPE_GPT_4_O\x10\x05\x12\x1c\n\x18MODEL_TYPE_GPT_3_5_TURBO\x10\x06\x32Z\n\x0cQueryService\x12J\n\x05Query\x12\x1d.corvic.query.v1.QueryRequest\x1a\x1e.corvic.query.v1.QueryResponse\"\x00\x30\x01\x62\x06proto3')
|
18
|
-
|
19
|
-
_globals = globals()
|
20
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'corvic.query.v1.query_pb2', _globals)
|
22
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
23
|
-
DESCRIPTOR._options = None
|
24
|
-
_globals['_RAGMETHOD']._serialized_start=479
|
25
|
-
_globals['_RAGMETHOD']._serialized_end=563
|
26
|
-
_globals['_MODELTYPE']._serialized_start=566
|
27
|
-
_globals['_MODELTYPE']._serialized_end=803
|
28
|
-
_globals['_TOKENUSAGE']._serialized_start=48
|
29
|
-
_globals['_TOKENUSAGE']._serialized_end=128
|
30
|
-
_globals['_QUERYREQUEST']._serialized_start=131
|
31
|
-
_globals['_QUERYREQUEST']._serialized_end=343
|
32
|
-
_globals['_QUERYRESPONSE']._serialized_start=346
|
33
|
-
_globals['_QUERYRESPONSE']._serialized_end=477
|
34
|
-
_globals['_QUERYSERVICE']._serialized_start=805
|
35
|
-
_globals['_QUERYSERVICE']._serialized_end=895
|
36
|
-
# @@protoc_insertion_point(module_scope)
|
@@ -1,63 +0,0 @@
|
|
1
|
-
from google.protobuf.internal import containers as _containers
|
2
|
-
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
3
|
-
from google.protobuf import descriptor as _descriptor
|
4
|
-
from google.protobuf import message as _message
|
5
|
-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
6
|
-
|
7
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
8
|
-
|
9
|
-
class RagMethod(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
10
|
-
__slots__ = ()
|
11
|
-
RAG_METHOD_UNSPECIFIED: _ClassVar[RagMethod]
|
12
|
-
RAG_METHOD_NAIVE: _ClassVar[RagMethod]
|
13
|
-
RAG_METHOD_CORVIC: _ClassVar[RagMethod]
|
14
|
-
|
15
|
-
class ModelType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
16
|
-
__slots__ = ()
|
17
|
-
MODEL_TYPE_UNSPECIFIED: _ClassVar[ModelType]
|
18
|
-
MODEL_TYPE_GEMINI_1_5_PRO: _ClassVar[ModelType]
|
19
|
-
MODEL_TYPE_GEMINI_1_5_PRO_PREVIEW: _ClassVar[ModelType]
|
20
|
-
MODEL_TYPE_GEMINI_1_5_FLASH: _ClassVar[ModelType]
|
21
|
-
MODEL_TYPE_GEMINI_1_5_FLASH_PREVIEW: _ClassVar[ModelType]
|
22
|
-
MODEL_TYPE_GPT_4_O: _ClassVar[ModelType]
|
23
|
-
MODEL_TYPE_GPT_3_5_TURBO: _ClassVar[ModelType]
|
24
|
-
RAG_METHOD_UNSPECIFIED: RagMethod
|
25
|
-
RAG_METHOD_NAIVE: RagMethod
|
26
|
-
RAG_METHOD_CORVIC: RagMethod
|
27
|
-
MODEL_TYPE_UNSPECIFIED: ModelType
|
28
|
-
MODEL_TYPE_GEMINI_1_5_PRO: ModelType
|
29
|
-
MODEL_TYPE_GEMINI_1_5_PRO_PREVIEW: ModelType
|
30
|
-
MODEL_TYPE_GEMINI_1_5_FLASH: ModelType
|
31
|
-
MODEL_TYPE_GEMINI_1_5_FLASH_PREVIEW: ModelType
|
32
|
-
MODEL_TYPE_GPT_4_O: ModelType
|
33
|
-
MODEL_TYPE_GPT_3_5_TURBO: ModelType
|
34
|
-
|
35
|
-
class TokenUsage(_message.Message):
|
36
|
-
__slots__ = ("token_input", "token_output")
|
37
|
-
TOKEN_INPUT_FIELD_NUMBER: _ClassVar[int]
|
38
|
-
TOKEN_OUTPUT_FIELD_NUMBER: _ClassVar[int]
|
39
|
-
token_input: float
|
40
|
-
token_output: float
|
41
|
-
def __init__(self, token_input: _Optional[float] = ..., token_output: _Optional[float] = ...) -> None: ...
|
42
|
-
|
43
|
-
class QueryRequest(_message.Message):
|
44
|
-
__slots__ = ("query", "rag_method", "model_system_instruction", "model_type")
|
45
|
-
QUERY_FIELD_NUMBER: _ClassVar[int]
|
46
|
-
RAG_METHOD_FIELD_NUMBER: _ClassVar[int]
|
47
|
-
MODEL_SYSTEM_INSTRUCTION_FIELD_NUMBER: _ClassVar[int]
|
48
|
-
MODEL_TYPE_FIELD_NUMBER: _ClassVar[int]
|
49
|
-
query: str
|
50
|
-
rag_method: RagMethod
|
51
|
-
model_system_instruction: str
|
52
|
-
model_type: ModelType
|
53
|
-
def __init__(self, query: _Optional[str] = ..., rag_method: _Optional[_Union[RagMethod, str]] = ..., model_system_instruction: _Optional[str] = ..., model_type: _Optional[_Union[ModelType, str]] = ...) -> None: ...
|
54
|
-
|
55
|
-
class QueryResponse(_message.Message):
|
56
|
-
__slots__ = ("token_usage", "response", "sources")
|
57
|
-
TOKEN_USAGE_FIELD_NUMBER: _ClassVar[int]
|
58
|
-
RESPONSE_FIELD_NUMBER: _ClassVar[int]
|
59
|
-
SOURCES_FIELD_NUMBER: _ClassVar[int]
|
60
|
-
token_usage: TokenUsage
|
61
|
-
response: str
|
62
|
-
sources: _containers.RepeatedScalarFieldContainer[str]
|
63
|
-
def __init__(self, token_usage: _Optional[_Union[TokenUsage, _Mapping]] = ..., response: _Optional[str] = ..., sources: _Optional[_Iterable[str]] = ...) -> None: ...
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
3
|
-
import grpc
|
4
|
-
|
5
|
-
from corvic_generated.query.v1 import query_pb2 as corvic_dot_query_dot_v1_dot_query__pb2
|
6
|
-
|
7
|
-
|
8
|
-
class QueryServiceStub(object):
|
9
|
-
"""Missing associated documentation comment in .proto file."""
|
10
|
-
|
11
|
-
def __init__(self, channel):
|
12
|
-
"""Constructor.
|
13
|
-
|
14
|
-
Args:
|
15
|
-
channel: A grpc.Channel.
|
16
|
-
"""
|
17
|
-
self.Query = channel.unary_stream(
|
18
|
-
'/corvic.query.v1.QueryService/Query',
|
19
|
-
request_serializer=corvic_dot_query_dot_v1_dot_query__pb2.QueryRequest.SerializeToString,
|
20
|
-
response_deserializer=corvic_dot_query_dot_v1_dot_query__pb2.QueryResponse.FromString,
|
21
|
-
)
|
22
|
-
|
23
|
-
|
24
|
-
class QueryServiceServicer(object):
|
25
|
-
"""Missing associated documentation comment in .proto file."""
|
26
|
-
|
27
|
-
def Query(self, request, context):
|
28
|
-
"""Missing associated documentation comment in .proto file."""
|
29
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
30
|
-
context.set_details('Method not implemented!')
|
31
|
-
raise NotImplementedError('Method not implemented!')
|
32
|
-
|
33
|
-
|
34
|
-
def add_QueryServiceServicer_to_server(servicer, server):
|
35
|
-
rpc_method_handlers = {
|
36
|
-
'Query': grpc.unary_stream_rpc_method_handler(
|
37
|
-
servicer.Query,
|
38
|
-
request_deserializer=corvic_dot_query_dot_v1_dot_query__pb2.QueryRequest.FromString,
|
39
|
-
response_serializer=corvic_dot_query_dot_v1_dot_query__pb2.QueryResponse.SerializeToString,
|
40
|
-
),
|
41
|
-
}
|
42
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
43
|
-
'corvic.query.v1.QueryService', rpc_method_handlers)
|
44
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
45
|
-
|
46
|
-
|
47
|
-
# This class is part of an EXPERIMENTAL API.
|
48
|
-
class QueryService(object):
|
49
|
-
"""Missing associated documentation comment in .proto file."""
|
50
|
-
|
51
|
-
@staticmethod
|
52
|
-
def Query(request,
|
53
|
-
target,
|
54
|
-
options=(),
|
55
|
-
channel_credentials=None,
|
56
|
-
call_credentials=None,
|
57
|
-
insecure=False,
|
58
|
-
compression=None,
|
59
|
-
wait_for_ready=None,
|
60
|
-
timeout=None,
|
61
|
-
metadata=None):
|
62
|
-
return grpc.experimental.unary_stream(request, target, '/corvic.query.v1.QueryService/Query',
|
63
|
-
corvic_dot_query_dot_v1_dot_query__pb2.QueryRequest.SerializeToString,
|
64
|
-
corvic_dot_query_dot_v1_dot_query__pb2.QueryResponse.FromString,
|
65
|
-
options, channel_credentials,
|
66
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|