|
1 | 1 | {
|
2 |
| - "TASK_QUERY": { |
| 2 | + "TASK_QUERY_BY_VECTOR": { |
3 | 3 | "input": {
|
4 | 4 | "instillUIOrder": 0,
|
5 | 5 | "properties": {
|
6 |
| - "id": { |
7 |
| - "description": "The unique ID of the vector to be used as a query vector. If present, the vector parameter will be ignored.", |
8 |
| - "instillAcceptFormats": [ |
9 |
| - "string" |
10 |
| - ], |
11 |
| - "instillShortDescription": "Query by vector ID instead of by vector", |
12 |
| - "instillUIOrder": 0, |
13 |
| - "instillUpstreamTypes": [ |
14 |
| - "reference", |
15 |
| - "template" |
16 |
| - ], |
17 |
| - "title": "ID", |
18 |
| - "type": "string" |
19 |
| - }, |
20 | 6 | "vector": {
|
21 |
| - "description": "An array of dimensions for the query vector.", |
| 7 | + "description": "An array of dimensions for the query vector", |
22 | 8 | "instillAcceptFormats": [
|
23 | 9 | "array:number",
|
24 | 10 | "array:integer"
|
25 | 11 | ],
|
26 |
| - "instillUIOrder": 1, |
| 12 | + "instillUIOrder": 0, |
27 | 13 | "instillUpstreamTypes": [
|
28 | 14 | "reference"
|
29 | 15 | ],
|
|
41 | 27 | "instillAcceptFormats": [
|
42 | 28 | "integer"
|
43 | 29 | ],
|
44 |
| - "instillUIOrder": 2, |
| 30 | + "instillUIOrder": 1, |
45 | 31 | "instillUpstreamTypes": [
|
46 | 32 | "value",
|
47 | 33 | "reference"
|
|
54 | 40 | "instillAcceptFormats": [
|
55 | 41 | "string"
|
56 | 42 | ],
|
57 |
| - "instillUIOrder": 3, |
| 43 | + "instillUIOrder": 2, |
58 | 44 | "instillUpstreamTypes": [
|
59 | 45 | "value",
|
60 | 46 | "reference",
|
|
69 | 55 | "semi-structured/object"
|
70 | 56 | ],
|
71 | 57 | "instillShortDescription": "The filter to apply on vector metadata",
|
72 |
| - "instillUIOrder": 4, |
| 58 | + "instillUIOrder": 3, |
73 | 59 | "instillUpstreamTypes": [
|
74 | 60 | "reference"
|
75 | 61 | ],
|
|
84 | 70 | "number",
|
85 | 71 | "integer"
|
86 | 72 | ],
|
87 |
| - "instillUIOrder": 5, |
| 73 | + "instillUIOrder": 4, |
88 | 74 | "instillUpstreamTypes": [
|
89 | 75 | "value",
|
90 | 76 | "reference"
|
|
98 | 84 | "instillAcceptFormats": [
|
99 | 85 | "boolean"
|
100 | 86 | ],
|
101 |
| - "instillUIOrder": 6, |
| 87 | + "instillUIOrder": 5, |
102 | 88 | "instillUpstreamTypes": [
|
103 | 89 | "value",
|
104 | 90 | "reference"
|
|
195 | 181 | "type": "object"
|
196 | 182 | }
|
197 | 183 | },
|
| 184 | + "TASK_QUERY_BY_ID": { |
| 185 | + "input": { |
| 186 | + "instillUIOrder": 0, |
| 187 | + "properties": { |
| 188 | + "id": { |
| 189 | + "description": "The unique ID of the target vector", |
| 190 | + "instillAcceptFormats": [ |
| 191 | + "string" |
| 192 | + ], |
| 193 | + "instillUIOrder": 0, |
| 194 | + "instillUpstreamTypes": [ |
| 195 | + "reference", |
| 196 | + "template" |
| 197 | + ], |
| 198 | + "title": "ID", |
| 199 | + "type": "string" |
| 200 | + }, |
| 201 | + "top_k": { |
| 202 | + "description": "The number of results to return for each query", |
| 203 | + "instillAcceptFormats": [ |
| 204 | + "integer" |
| 205 | + ], |
| 206 | + "instillUIOrder": 1, |
| 207 | + "instillUpstreamTypes": [ |
| 208 | + "value", |
| 209 | + "reference" |
| 210 | + ], |
| 211 | + "title": "Top K", |
| 212 | + "type": "integer" |
| 213 | + }, |
| 214 | + "namespace": { |
| 215 | + "description": "The namespace to query", |
| 216 | + "instillAcceptFormats": [ |
| 217 | + "string" |
| 218 | + ], |
| 219 | + "instillUIOrder": 2, |
| 220 | + "instillUpstreamTypes": [ |
| 221 | + "value", |
| 222 | + "reference", |
| 223 | + "template" |
| 224 | + ], |
| 225 | + "title": "Namespace", |
| 226 | + "type": "string" |
| 227 | + }, |
| 228 | + "filter": { |
| 229 | + "description": "The filter to apply. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/.", |
| 230 | + "instillAcceptFormats": [ |
| 231 | + "semi-structured/object" |
| 232 | + ], |
| 233 | + "instillShortDescription": "The filter to apply on vector metadata", |
| 234 | + "instillUIOrder": 3, |
| 235 | + "instillUpstreamTypes": [ |
| 236 | + "reference" |
| 237 | + ], |
| 238 | + "order": 1, |
| 239 | + "required": [], |
| 240 | + "title": "Filter", |
| 241 | + "type": "object" |
| 242 | + }, |
| 243 | + "include_metadata": { |
| 244 | + "default": false, |
| 245 | + "description": "Indicates whether metadata is included in the response as well as the IDs", |
| 246 | + "instillAcceptFormats": [ |
| 247 | + "boolean" |
| 248 | + ], |
| 249 | + "instillUIOrder": 4, |
| 250 | + "instillUpstreamTypes": [ |
| 251 | + "value", |
| 252 | + "reference" |
| 253 | + ], |
| 254 | + "title": "Include Metadata", |
| 255 | + "type": "boolean" |
| 256 | + }, |
| 257 | + "include_values": { |
| 258 | + "default": false, |
| 259 | + "description": "Indicates whether vector values are included in the response", |
| 260 | + "instillAcceptFormats": [ |
| 261 | + "boolean" |
| 262 | + ], |
| 263 | + "instillUIOrder": 5, |
| 264 | + "instillUpstreamTypes": [ |
| 265 | + "value", |
| 266 | + "reference" |
| 267 | + ], |
| 268 | + "title": "Include Values", |
| 269 | + "type": "boolean" |
| 270 | + } |
| 271 | + }, |
| 272 | + "required": [ |
| 273 | + "top_k", |
| 274 | + "id" |
| 275 | + ], |
| 276 | + "title": "Input", |
| 277 | + "type": "object" |
| 278 | + }, |
| 279 | + "output": { |
| 280 | + "instillUIOrder": 0, |
| 281 | + "properties": { |
| 282 | + "matches": { |
| 283 | + "description": "The matches returned for the query", |
| 284 | + "instillUIOrder": 1, |
| 285 | + "items": { |
| 286 | + "properties": { |
| 287 | + "id": { |
| 288 | + "description": "The ID of the matched vector", |
| 289 | + "instillFormat": "string", |
| 290 | + "instillUIOrder": 0, |
| 291 | + "title": "ID", |
| 292 | + "type": "string" |
| 293 | + }, |
| 294 | + "metadata": { |
| 295 | + "description": "Metadata", |
| 296 | + "instillFormat": "semi-structured/object", |
| 297 | + "instillUIOrder": 3, |
| 298 | + "required": [], |
| 299 | + "title": "Metadata", |
| 300 | + "type": "object" |
| 301 | + }, |
| 302 | + "score": { |
| 303 | + "description": "A measure of similarity between this vector and the query vector. The higher the score, the more similar they are.", |
| 304 | + "instillFormat": "number", |
| 305 | + "instillUIOrder": 1, |
| 306 | + "title": "Score", |
| 307 | + "type": "number" |
| 308 | + }, |
| 309 | + "values": { |
| 310 | + "description": "Vector data values", |
| 311 | + "instillUIOrder": 2, |
| 312 | + "items": { |
| 313 | + "description": "Each float value represents one dimension", |
| 314 | + "type": "number" |
| 315 | + }, |
| 316 | + "title": "Values", |
| 317 | + "type": "array" |
| 318 | + } |
| 319 | + }, |
| 320 | + "required": [ |
| 321 | + "id", |
| 322 | + "score" |
| 323 | + ], |
| 324 | + "title": "Match", |
| 325 | + "type": "object" |
| 326 | + }, |
| 327 | + "title": "Matches", |
| 328 | + "type": "array" |
| 329 | + }, |
| 330 | + "namespace": { |
| 331 | + "description": "The namespace of the query", |
| 332 | + "instillFormat": "string", |
| 333 | + "instillUIOrder": 0, |
| 334 | + "title": "Namespace", |
| 335 | + "type": "string" |
| 336 | + } |
| 337 | + }, |
| 338 | + "required": [ |
| 339 | + "namespace", |
| 340 | + "matches" |
| 341 | + ], |
| 342 | + "title": "Output", |
| 343 | + "type": "object" |
| 344 | + } |
| 345 | + }, |
198 | 346 | "TASK_UPSERT": {
|
199 | 347 | "input": {
|
200 | 348 | "instillUIOrder": 0,
|
|
0 commit comments