github.com/instill-ai/component@v0.16.0-beta/pkg/connector/pinecone/v0/config/tasks.json (about) 1 { 2 "TASK_QUERY": { 3 "instillShortDescription": "Retrieve the ids of the most similar items in a namespace, along with their similarity scores.", 4 "input": { 5 "instillUIOrder": 0, 6 "properties": { 7 "id": { 8 "description": "The unique ID of the vector to be used as a query vector. If present, the vector parameter will be ignored.", 9 "instillAcceptFormats": [ 10 "string" 11 ], 12 "instillShortDescription": "Query by vector ID instead of by vector", 13 "instillUIOrder": 0, 14 "instillUpstreamTypes": [ 15 "reference", 16 "template" 17 ], 18 "title": "ID", 19 "type": "string" 20 }, 21 "vector": { 22 "description": "An array of dimensions for the query vector.", 23 "instillAcceptFormats": [ 24 "array:number", 25 "array:integer" 26 ], 27 "instillUIOrder": 1, 28 "instillUpstreamTypes": [ 29 "reference" 30 ], 31 "items": { 32 "description": "A dimension of the vector", 33 "example": 0.8167237, 34 "type": "number" 35 }, 36 "minItems": 1, 37 "title": "Vector", 38 "type": "array" 39 }, 40 "top_k": { 41 "description": "The number of results to return for each query", 42 "instillAcceptFormats": [ 43 "integer" 44 ], 45 "instillUIOrder": 2, 46 "instillUpstreamTypes": [ 47 "value", 48 "reference" 49 ], 50 "title": "Top K", 51 "type": "integer" 52 }, 53 "namespace": { 54 "description": "The namespace to query", 55 "instillAcceptFormats": [ 56 "string" 57 ], 58 "instillUIOrder": 3, 59 "instillUpstreamTypes": [ 60 "value", 61 "reference", 62 "template" 63 ], 64 "title": "Namespace", 65 "type": "string" 66 }, 67 "filter": { 68 "description": "The filter to apply. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/.", 69 "instillAcceptFormats": [ 70 "semi-structured/object" 71 ], 72 "instillShortDescription": "The filter to apply on vector metadata", 73 "instillUIOrder": 4, 74 "instillUpstreamTypes": [ 75 "reference" 76 ], 77 "order": 1, 78 "required": [], 79 "title": "Filter", 80 "type": "object" 81 }, 82 "min_score": { 83 "description": "Exclude results whose score is below this value", 84 "instillAcceptFormats": [ 85 "number", 86 "integer" 87 ], 88 "instillUIOrder": 5, 89 "instillUpstreamTypes": [ 90 "value", 91 "reference" 92 ], 93 "title": "Minimum Score", 94 "type": "number" 95 }, 96 "include_metadata": { 97 "default": false, 98 "description": "Indicates whether metadata is included in the response as well as the IDs", 99 "instillAcceptFormats": [ 100 "boolean" 101 ], 102 "instillUIOrder": 6, 103 "instillUpstreamTypes": [ 104 "value", 105 "reference" 106 ], 107 "title": "Include Metadata", 108 "type": "boolean" 109 }, 110 "include_values": { 111 "default": false, 112 "description": "Indicates whether vector values are included in the response", 113 "instillAcceptFormats": [ 114 "boolean" 115 ], 116 "instillUIOrder": 7, 117 "instillUpstreamTypes": [ 118 "value", 119 "reference" 120 ], 121 "title": "Include Values", 122 "type": "boolean" 123 } 124 }, 125 "required": [ 126 "top_k", 127 "vector" 128 ], 129 "title": "Input", 130 "type": "object" 131 }, 132 "output": { 133 "instillUIOrder": 0, 134 "properties": { 135 "matches": { 136 "description": "The matches returned for the query", 137 "instillUIOrder": 1, 138 "items": { 139 "properties": { 140 "id": { 141 "description": "The ID of the matched vector", 142 "instillFormat": "string", 143 "instillUIOrder": 0, 144 "title": "ID", 145 "type": "string" 146 }, 147 "metadata": { 148 "description": "Metadata", 149 "instillFormat": "semi-structured/object", 150 "instillUIOrder": 3, 151 "required": [], 152 "title": "Metadata", 153 "type": "object" 154 }, 155 "score": { 156 "description": "A measure of similarity between this vector and the query vector. The higher the score, the more similar they are.", 157 "instillFormat": "number", 158 "instillUIOrder": 1, 159 "title": "Score", 160 "type": "number" 161 }, 162 "values": { 163 "description": "Vector data values", 164 "instillUIOrder": 2, 165 "instillFormat": "array:number", 166 "items": { 167 "description": "Each float value represents one dimension", 168 "type": "number", 169 "title": "Value", 170 "instillFormat": "number" 171 }, 172 "title": "Values", 173 "type": "array" 174 } 175 }, 176 "required": [ 177 "id", 178 "score" 179 ], 180 "title": "Match", 181 "type": "object" 182 }, 183 "title": "Matches", 184 "type": "array" 185 }, 186 "namespace": { 187 "description": "The namespace of the query", 188 "instillFormat": "string", 189 "instillUIOrder": 0, 190 "title": "Namespace", 191 "type": "string" 192 } 193 }, 194 "required": [ 195 "namespace", 196 "matches" 197 ], 198 "title": "Output", 199 "type": "object" 200 } 201 }, 202 "TASK_UPSERT": { 203 "instillShortDescription": "Writes vectors into a namespace. If a new value is upserted for an existing vector id, it will overwrite the previous value.", 204 "input": { 205 "instillUIOrder": 0, 206 "properties": { 207 "id": { 208 "description": "This is the vector's unique id", 209 "instillAcceptFormats": [ 210 "string" 211 ], 212 "instillUIOrder": 0, 213 "instillUpstreamTypes": [ 214 "value", 215 "reference", 216 "template" 217 ], 218 "title": "ID", 219 "type": "string" 220 }, 221 "metadata": { 222 "description": "The vector metadata", 223 "instillAcceptFormats": [ 224 "semi-structured/object" 225 ], 226 "instillShortDescription": "The vector metadata", 227 "instillUIOrder": 3, 228 "instillUpstreamTypes": [ 229 "reference" 230 ], 231 "order": 1, 232 "required": [], 233 "title": "Metadata", 234 "type": "object" 235 }, 236 "values": { 237 "description": "An array of dimensions for the vector to be saved", 238 "instillAcceptFormats": [ 239 "array:number", 240 "array:integer" 241 ], 242 "instillUIOrder": 1, 243 "instillUpstreamTypes": [ 244 "reference" 245 ], 246 "items": { 247 "description": "A dimension of the vector", 248 "example": 0.8167237, 249 "type": "number" 250 }, 251 "minItems": 1, 252 "title": "Values", 253 "type": "array" 254 }, 255 "namespace": { 256 "description": "The namespace to query", 257 "instillAcceptFormats": [ 258 "string" 259 ], 260 "instillUIOrder": 2, 261 "instillUpstreamTypes": [ 262 "value", 263 "reference", 264 "template" 265 ], 266 "title": "Namespace", 267 "type": "string" 268 } 269 }, 270 "required": [ 271 "id", 272 "values" 273 ], 274 "title": "Input", 275 "type": "object" 276 }, 277 "output": { 278 "instillUIOrder": 0, 279 "properties": { 280 "upserted_count": { 281 "description": "Number of records modified or added", 282 "instillFormat": "integer", 283 "instillUIOrder": 0, 284 "title": "Upserted Count", 285 "type": "integer" 286 } 287 }, 288 "required": [ 289 "upserted_count" 290 ], 291 "title": "Output", 292 "type": "object" 293 } 294 } 295 }