Skip to content

Commit 901c3de

Browse files
committed
chore: auto-gen by protobufs
triggered by commit: instill-ai/protobufs@c9ebe8b
1 parent 346c07d commit 901c3de

8 files changed

Lines changed: 132 additions & 72 deletions

File tree

‎artifact/artifact/v1alpha/artifact_pb2.py‎

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎artifact/artifact/v1alpha/artifact_pb2.pyi‎

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,22 +1168,56 @@ class UploadCatalogFileRequest(google.protobuf.message.Message):
11681168
NAMESPACE_ID_FIELD_NUMBER: builtins.int
11691169
CATALOG_ID_FIELD_NUMBER: builtins.int
11701170
FILE_FIELD_NUMBER: builtins.int
1171+
CONVERTING_PIPELINES_FIELD_NUMBER: builtins.int
11711172
namespace_id: builtins.str
11721173
"""owner/namespace uid"""
11731174
catalog_id: builtins.str
11741175
"""catalog id"""
11751176
@property
11761177
def file(self) -> global___File:
11771178
"""file"""
1179+
@property
1180+
def converting_pipelines(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
1181+
"""Pipelines used for converting the document file (i.e., files with pdf,
1182+
doc[x] or ppt[x] extension) to Markdown. The strings in the list identify
1183+
the pipelines and MUST have the format
1184+
`{namespaceID}/{pipelineID}@{version}`.
1185+
The pipeline recipes MUST have the following variable and output fields:
1186+
```yaml variable
1187+
variable:
1188+
document_input:
1189+
title: document-input
1190+
description: Upload a document (PDF/DOCX/DOC/PPTX/PPT)
1191+
type: file
1192+
```
1193+
```yaml output
1194+
output:
1195+
convert_result:
1196+
title: convert-result
1197+
value: ${merge-markdown-refinement.output.results[0]}
1198+
```
1199+
Other variable and output fields will be ignored.
1200+
1201+
The pipelines will be executed in order until one produces a successful,
1202+
non-empty result.
1203+
1204+
If no pipelines are provided, the catalog's conversion pipelines will be
1205+
used (see the catalog creation request).
1206+
1207+
For non-document catalog files, the conversion pipeline is deterministic
1208+
(such files are typically trivial to convert and don't require a dedicated
1209+
pipeline to improve the conversion performance).
1210+
"""
11781211
def __init__(
11791212
self,
11801213
*,
11811214
namespace_id: builtins.str = ...,
11821215
catalog_id: builtins.str = ...,
11831216
file: global___File | None = ...,
1217+
converting_pipelines: collections.abc.Iterable[builtins.str] | None = ...,
11841218
) -> None: ...
11851219
def HasField(self, field_name: typing_extensions.Literal["file", b"file"]) -> builtins.bool: ...
1186-
def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "file", b"file", "namespace_id", b"namespace_id"]) -> None: ...
1220+
def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "converting_pipelines", b"converting_pipelines", "file", b"file", "namespace_id", b"namespace_id"]) -> None: ...
11871221

11881222
global___UploadCatalogFileRequest = UploadCatalogFileRequest
11891223

‎artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,10 @@ def SimilarityChunksSearch(self, request, context):
310310
raise NotImplementedError('Method not implemented!')
311311

312312
def QuestionAnswering(self, request, context):
313-
"""Ask a question
313+
"""Answer a question
314314
315-
Asks a question.
315+
Provides the response to the prompted question, returning contextual
316+
information like the chunks used to build the answer.
316317
"""
317318
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
318319
context.set_details('Method not implemented!')

‎artifact/artifact/v1alpha/artifact_public_service_pb2_grpc.pyi‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,10 @@ class ArtifactPublicServiceStub:
175175
artifact.artifact.v1alpha.qa_pb2.QuestionAnsweringRequest,
176176
artifact.artifact.v1alpha.qa_pb2.QuestionAnsweringResponse,
177177
]
178-
"""Ask a question
178+
"""Answer a question
179179
180-
Asks a question.
180+
Provides the response to the prompted question, returning contextual
181+
information like the chunks used to build the answer.
181182
"""
182183
GetFileCatalog: grpc.UnaryUnaryMultiCallable[
183184
artifact.artifact.v1alpha.file_catalog_pb2.GetFileCatalogRequest,
@@ -374,9 +375,10 @@ class ArtifactPublicServiceAsyncStub:
374375
artifact.artifact.v1alpha.qa_pb2.QuestionAnsweringRequest,
375376
artifact.artifact.v1alpha.qa_pb2.QuestionAnsweringResponse,
376377
]
377-
"""Ask a question
378+
"""Answer a question
378379
379-
Asks a question.
380+
Provides the response to the prompted question, returning contextual
381+
information like the chunks used to build the answer.
380382
"""
381383
GetFileCatalog: grpc.aio.UnaryUnaryMultiCallable[
382384
artifact.artifact.v1alpha.file_catalog_pb2.GetFileCatalogRequest,
@@ -611,9 +613,10 @@ class ArtifactPublicServiceServicer(metaclass=abc.ABCMeta):
611613
request: artifact.artifact.v1alpha.qa_pb2.QuestionAnsweringRequest,
612614
context: _ServicerContext,
613615
) -> typing.Union[artifact.artifact.v1alpha.qa_pb2.QuestionAnsweringResponse, collections.abc.Awaitable[artifact.artifact.v1alpha.qa_pb2.QuestionAnsweringResponse]]:
614-
"""Ask a question
616+
"""Answer a question
615617
616-
Asks a question.
618+
Provides the response to the prompted question, returning contextual
619+
information like the chunks used to build the answer.
617620
"""
618621
@abc.abstractmethod
619622
def GetFileCatalog(

‎artifact/artifact/v1alpha/chunk_pb2.py‎

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)