Skip to content

Commit a29515b

Browse files
fix(catalog): fix some typo (#426)
Because there are some typo This commit fix the typo --------- Co-authored-by: droplet-bot <[email protected]>
1 parent a531af1 commit a29515b

File tree

5 files changed

+37
-37
lines changed

5 files changed

+37
-37
lines changed

artifact/artifact/v1alpha/artifact.proto

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ message ReadinessResponse {
3535

3636
/*
3737
38-
This API is under development and, therefore, some of its entitites and
39-
entpoints are not implemented yet. This section aims to give context about the
38+
This API is under development and, therefore, some of its entities and
39+
endpoints are not implemented yet. This section aims to give context about the
4040
current interface and how it fits in the Artifact vision.
4141
4242
# Artifact
@@ -173,7 +173,7 @@ message Catalog {
173173
string create_time = 5;
174174
// The last update time of the catalog.
175175
string update_time = 6;
176-
// The owner/namespaceof the catalog.
176+
// The owner/namespace of the catalog.
177177
string owner_name = 7;
178178
// The catalog tags.
179179
repeated string tags = 8;
@@ -195,7 +195,7 @@ message Catalog {
195195

196196
// CreateCatalogRequest represents a request to create a catalog.
197197
message CreateCatalogRequest {
198-
// The catalog's owner(nammespace).
198+
// The catalog's owner(namespaces).
199199
string namespace_id = 1;
200200
// The catalog name.
201201
string name = 2;
@@ -277,7 +277,7 @@ enum FileProcessStatus {
277277

278278
// file type
279279
enum FileType {
280-
// upsecifid
280+
// unspecified
281281
FILE_TYPE_UNSPECIFIED = 0;
282282
// text
283283
FILE_TYPE_TEXT = 1;
@@ -303,7 +303,7 @@ enum FileType {
303303
FILE_TYPE_PPTX = 11;
304304
}
305305

306-
// file mata data
306+
// file
307307
message File {
308308
// file uid
309309
string file_uid = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -317,11 +317,11 @@ message File {
317317
string process_outcome = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
318318
// retrievable(this is reserved for future use)
319319
bool retrievable = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
320-
// contect(this is reserved for future use)
320+
// content(this is reserved for future use)
321321
string content = 7 [(google.api.field_behavior) = OPTIONAL];
322-
// owner/namespaceuid
322+
// owner/namespace uid
323323
string owner_uid = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
324-
// cretor uid from authn token
324+
// creator uid from authn token
325325
string creator_uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
326326
// catalog uid
327327
string catalog_uid = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -388,7 +388,7 @@ message ListCatalogFilesFilter {
388388

389389
// list files request
390390
message ListCatalogFilesRequest {
391-
// The owner/namespaceuid id.
391+
// The owner/namespace uid id.
392392
string namespace_id = 1;
393393
// The catalog id.
394394
string catalog_id = 2;

artifact/artifact/v1alpha/artifact_public_service.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ service ArtifactPublicService {
127127
// Similarity chunks search
128128
rpc SimilarityChunksSearch(SimilarityChunksSearchRequest) returns (SimilarityChunksSearchResponse) {
129129
option (google.api.http) = {
130-
post: "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/retreive"
130+
post: "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/retrieve"
131131
body: "*"
132132
};
133133
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {tags: "Catalog"};
@@ -148,7 +148,7 @@ service ArtifactPublicService {
148148
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {tags: "Catalog"};
149149
}
150150

151-
// CreateConversaion
151+
// CreateConversation
152152
rpc CreateConversation(CreateConversationRequest) returns (CreateConversationResponse) {
153153
option (google.api.http) = {
154154
post: "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations"

artifact/artifact/v1alpha/chunk.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ message GetSourceFileRequest {
6363

6464
// get source file response
6565
message GetSourceFileResponse {
66-
// source file(either orignal file or converted file)
66+
// source file(either original file or converted file)
6767
SourceFile source_file = 1;
6868
}
6969

@@ -75,13 +75,13 @@ message UpdateChunkRequest {
7575
bool retrievable = 2;
7676
}
7777

78-
// Updae chunk response
78+
// update chunk response
7979
message UpdateChunkResponse {
8080
// chunk
8181
Chunk chunk = 1;
8282
}
8383

84-
// Similar chunnk search request
84+
// Similar chunk search request
8585
message SimilarityChunksSearchRequest {
8686
// owner/namespace id
8787
string namespace_id = 1;
@@ -93,7 +93,7 @@ message SimilarityChunksSearchRequest {
9393
uint32 top_k = 4;
9494
}
9595

96-
// Similar chunnk search response
96+
// Similar chunk search response
9797
message SimilarityChunksSearchResponse {
9898
// chunks
9999
repeated SimilarityChunk similar_chunks = 1;

artifact/artifact/v1alpha/conversation.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import "google/api/field_behavior.proto";
1010

1111
// Conversation represents a chat conversation
1212
message Conversation {
13-
// conversation id/name
13+
// unique identifier of the conversation created by the system
1414
string uid = 1;
1515
// namespace id
1616
string namespace_id = 2;
1717
// catalog id
1818
string catalog_id = 3;
19-
// unique identifier of the conversation created by the system
19+
// conversation id/name
2020
string id = 4;
2121
// creation time of the conversation
2222
google.protobuf.Timestamp create_time = 5;
@@ -57,7 +57,7 @@ message CreateConversationRequest {
5757
string namespace_id = 1 [(google.api.field_behavior) = REQUIRED];
5858
// catalog id
5959
string catalog_id = 2;
60-
// conversation id. only allow kabab case
60+
// conversation id. only allow kebab case
6161
string conversation_id = 3 [(google.api.field_behavior) = REQUIRED];
6262
}
6363

@@ -96,7 +96,7 @@ message UpdateConversationRequest {
9696
// conversation id
9797
string conversation_id = 3;
9898
// new conversation id
99-
string new_conversaion_id = 4;
99+
string new_conversation_id = 4;
100100
}
101101

102102
// UpdateConversationResponse returns the updated conversation

openapiv2/artifact/service.swagger.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ paths:
6060
$ref: '#/definitions/rpcStatus'
6161
parameters:
6262
- name: namespaceId
63-
description: The catalog's owner(nammespace).
63+
description: The catalog's owner(namespaces).
6464
in: path
6565
required: true
6666
type: string
@@ -151,7 +151,7 @@ paths:
151151
$ref: '#/definitions/rpcStatus'
152152
parameters:
153153
- name: namespaceId
154-
description: The owner/namespaceuid id.
154+
description: The owner/namespace uid id.
155155
in: path
156156
required: true
157157
type: string
@@ -360,7 +360,7 @@ paths:
360360
$ref: '#/definitions/ArtifactPublicServiceUpdateChunkBody'
361361
tags:
362362
- Catalog
363-
/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/chunks/retreive:
363+
/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/chunks/retrieve:
364364
post:
365365
summary: Similarity chunks search
366366
operationId: ArtifactPublicService_SimilarityChunksSearch
@@ -508,7 +508,7 @@ paths:
508508
tags:
509509
- Catalog
510510
post:
511-
summary: CreateConversaion
511+
summary: CreateConversation
512512
operationId: ArtifactPublicService_CreateConversation
513513
responses:
514514
"200":
@@ -809,7 +809,7 @@ definitions:
809809
properties:
810810
conversationId:
811811
type: string
812-
title: conversation id. only allow kabab case
812+
title: conversation id. only allow kebab case
813813
title: CreateConversationRequest is used to create a new conversation
814814
required:
815815
- conversationId
@@ -848,7 +848,7 @@ definitions:
848848
type: integer
849849
format: int64
850850
title: top k
851-
title: Similar chunnk search request
851+
title: Similar chunk search request
852852
ArtifactPublicServiceUpdateCatalogBody:
853853
type: object
854854
properties:
@@ -871,7 +871,7 @@ definitions:
871871
ArtifactPublicServiceUpdateConversationBody:
872872
type: object
873873
properties:
874-
newConversaionId:
874+
newConversationId:
875875
type: string
876876
title: new conversation id
877877
title: UpdateConversationRequest is used to update a conversation
@@ -1022,7 +1022,7 @@ definitions:
10221022
description: The last update time of the catalog.
10231023
ownerName:
10241024
type: string
1025-
description: The owner/namespaceof the catalog.
1025+
description: The owner/namespace of the catalog.
10261026
tags:
10271027
type: array
10281028
items:
@@ -1066,7 +1066,7 @@ definitions:
10661066
properties:
10671067
uid:
10681068
type: string
1069-
title: conversation id/name
1069+
title: unique identifier of the conversation created by the system
10701070
namespaceId:
10711071
type: string
10721072
title: namespace id
@@ -1075,7 +1075,7 @@ definitions:
10751075
title: catalog id
10761076
id:
10771077
type: string
1078-
title: unique identifier of the conversation created by the system
1078+
title: conversation id/name
10791079
createTime:
10801080
type: string
10811081
format: date-time
@@ -1170,14 +1170,14 @@ definitions:
11701170
readOnly: true
11711171
content:
11721172
type: string
1173-
title: contect(this is reserved for future use)
1173+
title: content(this is reserved for future use)
11741174
ownerUid:
11751175
type: string
1176-
title: owner/namespaceuid
1176+
title: owner/namespace uid
11771177
readOnly: true
11781178
creatorUid:
11791179
type: string
1180-
title: cretor uid from authn token
1180+
title: creator uid from authn token
11811181
readOnly: true
11821182
catalogUid:
11831183
type: string
@@ -1213,7 +1213,7 @@ definitions:
12131213
format: int32
12141214
title: total tokens
12151215
readOnly: true
1216-
title: file mata data
1216+
title: file
12171217
required:
12181218
- name
12191219
- type
@@ -1335,7 +1335,7 @@ definitions:
13351335
type: object
13361336
properties:
13371337
sourceFile:
1338-
title: source file(either orignal file or converted file)
1338+
title: source file(either original file or converted file)
13391339
allOf:
13401340
- $ref: '#/definitions/v1alphaSourceFile'
13411341
title: get source file response
@@ -1556,7 +1556,7 @@ definitions:
15561556
type: object
15571557
$ref: '#/definitions/v1alphaSimilarityChunk'
15581558
title: chunks
1559-
title: Similar chunnk search response
1559+
title: Similar chunk search response
15601560
v1alphaSourceFile:
15611561
type: object
15621562
properties:
@@ -1590,7 +1590,7 @@ definitions:
15901590
title: chunk
15911591
allOf:
15921592
- $ref: '#/definitions/artifactv1alphaChunk'
1593-
title: Updae chunk response
1593+
title: update chunk response
15941594
v1alphaUpdateConversationResponse:
15951595
type: object
15961596
properties:

0 commit comments

Comments
 (0)