From fc5b056278e69d7e50a8f087388f60d092c7a4a5 Mon Sep 17 00:00:00 2001 From: droplet-bot <droplet-bot@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:30:14 +0000 Subject: [PATCH] chore: auto-gen by protobufs triggered by commit: https://github.com/instill-ai/protobufs/commit/c40333eaf9352dcbfcc1ed167ecdfcf75fe580ec --- artifact/artifact/v1alpha/qa_pb2.py | 8 ++++---- artifact/artifact/v1alpha/qa_pb2.pyi | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/artifact/artifact/v1alpha/qa_pb2.py b/artifact/artifact/v1alpha/qa_pb2.py index 274ec5d..f080d75 100644 --- a/artifact/artifact/v1alpha/qa_pb2.py +++ b/artifact/artifact/v1alpha/qa_pb2.py @@ -14,7 +14,7 @@ from artifact.artifact.v1alpha import chunk_pb2 as artifact_dot_artifact_dot_v1alpha_dot_chunk__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"artifact/artifact/v1alpha/qa.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a%artifact/artifact/v1alpha/chunk.proto\"\x8c\x01\n\x18QuestionAnsweringRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x1a\n\x08question\x18\x03 \x01(\tR\x08question\x12\x12\n\x04topk\x18\x04 \x01(\x05R\x04topk\"\x86\x01\n\x19QuestionAnsweringResponse\x12\x16\n\x06\x61nswer\x18\x01 \x01(\tR\x06\x61nswer\x12Q\n\x0esimilar_chunks\x18\x02 \x03(\x0b\x32*.artifact.artifact.v1alpha.SimilarityChunkR\rsimilarChunksB\xfb\x01\n\x1d\x63om.artifact.artifact.v1alphaB\x07QaProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"artifact/artifact/v1alpha/qa.proto\x12\x19\x61rtifact.artifact.v1alpha\x1a%artifact/artifact/v1alpha/chunk.proto\"\x8d\x01\n\x18QuestionAnsweringRequest\x12!\n\x0cnamespace_id\x18\x01 \x01(\tR\x0bnamespaceId\x12\x1d\n\ncatalog_id\x18\x02 \x01(\tR\tcatalogId\x12\x1a\n\x08question\x18\x03 \x01(\tR\x08question\x12\x13\n\x05top_k\x18\x04 \x01(\x05R\x04topK\"\x86\x01\n\x19QuestionAnsweringResponse\x12\x16\n\x06\x61nswer\x18\x01 \x01(\tR\x06\x61nswer\x12Q\n\x0esimilar_chunks\x18\x02 \x03(\x0b\x32*.artifact.artifact.v1alpha.SimilarityChunkR\rsimilarChunksB\xfb\x01\n\x1d\x63om.artifact.artifact.v1alphaB\x07QaProtoP\x01ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\xa2\x02\x03\x41\x41X\xaa\x02\x19\x41rtifact.Artifact.V1alpha\xca\x02\x19\x41rtifact\\Artifact\\V1alpha\xe2\x02%Artifact\\Artifact\\V1alpha\\GPBMetadata\xea\x02\x1b\x41rtifact::Artifact::V1alphab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,7 +24,7 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\035com.artifact.artifact.v1alphaB\007QaProtoP\001ZKgithub.com/instill-ai/protogen-go/artifact/artifact/v1alpha;artifactv1alpha\242\002\003AAX\252\002\031Artifact.Artifact.V1alpha\312\002\031Artifact\\Artifact\\V1alpha\342\002%Artifact\\Artifact\\V1alpha\\GPBMetadata\352\002\033Artifact::Artifact::V1alpha' _globals['_QUESTIONANSWERINGREQUEST']._serialized_start=105 - _globals['_QUESTIONANSWERINGREQUEST']._serialized_end=245 - _globals['_QUESTIONANSWERINGRESPONSE']._serialized_start=248 - _globals['_QUESTIONANSWERINGRESPONSE']._serialized_end=382 + _globals['_QUESTIONANSWERINGREQUEST']._serialized_end=246 + _globals['_QUESTIONANSWERINGRESPONSE']._serialized_start=249 + _globals['_QUESTIONANSWERINGRESPONSE']._serialized_end=383 # @@protoc_insertion_point(module_scope) diff --git a/artifact/artifact/v1alpha/qa_pb2.pyi b/artifact/artifact/v1alpha/qa_pb2.pyi index fcd45ca..b8ff5be 100644 --- a/artifact/artifact/v1alpha/qa_pb2.pyi +++ b/artifact/artifact/v1alpha/qa_pb2.pyi @@ -26,24 +26,24 @@ class QuestionAnsweringRequest(google.protobuf.message.Message): NAMESPACE_ID_FIELD_NUMBER: builtins.int CATALOG_ID_FIELD_NUMBER: builtins.int QUESTION_FIELD_NUMBER: builtins.int - TOPK_FIELD_NUMBER: builtins.int + TOP_K_FIELD_NUMBER: builtins.int namespace_id: builtins.str """id of the namespace""" catalog_id: builtins.str """id of the catalog""" question: builtins.str """question to be answered""" - topk: builtins.int - """topk default to 5""" + top_k: builtins.int + """top k default to 5""" def __init__( self, *, namespace_id: builtins.str = ..., catalog_id: builtins.str = ..., question: builtins.str = ..., - topk: builtins.int = ..., + top_k: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "namespace_id", b"namespace_id", "question", b"question", "topk", b"topk"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["catalog_id", b"catalog_id", "namespace_id", b"namespace_id", "question", b"question", "top_k", b"top_k"]) -> None: ... global___QuestionAnsweringRequest = QuestionAnsweringRequest