-
Notifications
You must be signed in to change notification settings - Fork 0
/
rag.yaml
102 lines (102 loc) · 2.72 KB
/
rag.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
openapi: 3.0.0
info:
title: Zilliz Pipeline API, can help ingest docs into pipelines and search relavent text chucks for any text.
version: 1.0.0
servers:
- url: https://controller.api.gcp-us-west1.zillizcloud.com
paths:
/v1/pipelines/{SearchPipelineID}/run:
post:
summary: Run Pipeline
description: Run a Search pipeline with the specified data to Query text in vector database.
x-openai-isConsequential: false
operationId: searchDoc
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/QueryTextRequest"
responses:
"200":
description: Search doc successfully
content:
application/json:
schema:
$ref: "#/components/schemas/QueryTextResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/InternalServerErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/InternalServerErrorResponse"
components:
schemas:
QueryTextRequest:
type: object
required:
- data
- params
properties:
data:
type: object
properties:
query_text:
type: string
params:
type: object
properties:
limit:
type: integer
minimum: 5
offset:
type: integer
minimum: 0
outputFields:
type: array
items:
type: string
example:
- chunk_text
- chunk_id
- doc_name
filter:
type: string
example: chunk_id >= 0
QueryTextResponse:
type: object
properties:
code:
type: integer
data:
type: object
properties:
result:
type: array
items:
type: object
properties:
id:
type: string
distance:
type: number
chunk_id:
type: integer
chunk_text:
type: string
doc_name:
type: string
InternalServerErrorResponse:
type: object
properties:
code:
type: integer
example: 10039
message:
type: string
example: An internal system error occurred. Please retry later.