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691,
|
| 7 |
+
"y": -944.0794675404644
|
| 8 |
+
},
|
| 9 |
+
"type": "customNode",
|
| 10 |
+
"data": {
|
| 11 |
+
"id": "textFile_0",
|
| 12 |
+
"label": "Text File",
|
| 13 |
+
"version": 3,
|
| 14 |
+
"name": "textFile",
|
| 15 |
+
"type": "Document",
|
| 16 |
+
"baseClasses": [
|
| 17 |
+
"Document"
|
| 18 |
+
],
|
| 19 |
+
"category": "Document Loaders",
|
| 20 |
+
"description": "Load data from text files",
|
| 21 |
+
"inputParams": [
|
| 22 |
+
{
|
| 23 |
+
"label": "Txt File",
|
| 24 |
+
"name": "txtFile",
|
| 25 |
+
"type": "file",
|
| 26 |
+
"fileType": ".txt, .html, .aspx, .asp, .cpp, .c, .cs, .css, .go, .h, .java, .js, .less, .ts, .php, .proto, .python, .py, .rst, .ruby, .rb, .rs, .scala, .sc, .scss, .sol, .sql, .swift, .markdown, .md, .tex, .ltx, .vb, .xml",
|
| 27 |
+
"id": "textFile_0-input-txtFile-file"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"label": "Metadata",
|
| 31 |
+
"name": "metadata",
|
| 32 |
+
"type": "json",
|
| 33 |
+
"optional": true,
|
| 34 |
+
"additionalParams": true,
|
| 35 |
+
"id": "textFile_0-input-metadata-json"
|
| 36 |
+
}
|
| 37 |
+
],
|
| 38 |
+
"inputAnchors": [
|
| 39 |
+
{
|
| 40 |
+
"label": "Text Splitter",
|
| 41 |
+
"name": "textSplitter",
|
| 42 |
+
"type": "TextSplitter",
|
| 43 |
+
"optional": true,
|
| 44 |
+
"id": "textFile_0-input-textSplitter-TextSplitter"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"inputs": {
|
| 48 |
+
"textSplitter": "",
|
| 49 |
+
"metadata": ""
|
| 50 |
+
},
|
| 51 |
+
"outputAnchors": [
|
| 52 |
+
{
|
| 53 |
+
"name": "output",
|
| 54 |
+
"label": "Output",
|
| 55 |
+
"type": "options",
|
| 56 |
+
"description": "Array of document objects containing metadata and pageContent",
|
| 57 |
+
"options": [
|
| 58 |
+
{
|
| 59 |
+
"id": "textFile_0-output-document-Document|json",
|
| 60 |
+
"name": "document",
|
| 61 |
+
"label": "Document",
|
| 62 |
+
"description": "Array of document objects containing metadata and pageContent",
|
| 63 |
+
"type": "Document | json"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"id": "textFile_0-output-text-string|json",
|
| 67 |
+
"name": "text",
|
| 68 |
+
"label": "Text",
|
| 69 |
+
"description": "Concatenated string from pageContent of documents",
|
| 70 |
+
"type": "string | json"
|
| 71 |
+
}
|
| 72 |
+
],
|
| 73 |
+
"default": "document"
|
| 74 |
+
}
|
| 75 |
+
],
|
| 76 |
+
"outputs": {
|
| 77 |
+
"output": "document"
|
| 78 |
+
},
|
| 79 |
+
"selected": false
|
| 80 |
+
},
|
| 81 |
+
"width": 300,
|
| 82 |
+
"height": 435,
|
| 83 |
+
"selected": false,
|
| 84 |
+
"positionAbsolute": {
|
| 85 |
+
"x": 312.9443352569691,
|
| 86 |
+
"y": -944.0794675404644
|
| 87 |
+
},
|
| 88 |
+
"dragging": false
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"id": "queryEngine_0",
|
| 92 |
+
"position": {
|
| 93 |
+
"x": 1351.300368974579,
|
| 94 |
+
"y": 331.3695062376359
|
| 95 |
+
},
|
| 96 |
+
"type": "customNode",
|
| 97 |
+
"data": {
|
| 98 |
+
"id": "queryEngine_0",
|
| 99 |
+
"label": "Query Engine",
|
| 100 |
+
"version": 2,
|
| 101 |
+
"name": "queryEngine",
|
| 102 |
+
"type": "QueryEngine",
|
| 103 |
+
"baseClasses": [
|
| 104 |
+
"QueryEngine",
|
| 105 |
+
"BaseQueryEngine"
|
| 106 |
+
],
|
| 107 |
+
"tags": [
|
| 108 |
+
"LlamaIndex"
|
| 109 |
+
],
|
| 110 |
+
"category": "Engine",
|
| 111 |
+
"description": "Simple query engine built to answer question over your data, without memory",
|
| 112 |
+
"inputParams": [
|
| 113 |
+
{
|
| 114 |
+
"label": "Return Source Documents",
|
| 115 |
+
"name": "returnSourceDocuments",
|
| 116 |
+
"type": "boolean",
|
| 117 |
+
"optional": true,
|
| 118 |
+
"id": "queryEngine_0-input-returnSourceDocuments-boolean"
|
| 119 |
+
}
|
| 120 |
+
],
|
| 121 |
+
"inputAnchors": [
|
| 122 |
+
{
|
| 123 |
+
"label": "Vector Store Retriever",
|
| 124 |
+
"name": "vectorStoreRetriever",
|
| 125 |
+
"type": "VectorIndexRetriever",
|
| 126 |
+
"id": "queryEngine_0-input-vectorStoreRetriever-VectorIndexRetriever"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"label": "Response Synthesizer",
|
| 130 |
+
"name": "responseSynthesizer",
|
| 131 |
+
"type": "ResponseSynthesizer",
|
| 132 |
+
"description": "ResponseSynthesizer is responsible for sending the query, nodes, and prompt templates to the LLM to generate a response. See <a target=\"_blank\" href=\"https://ts.llamaindex.ai/modules/low_level/response_synthesizer\">more</a>",
|
| 133 |
+
"optional": true,
|
| 134 |
+
"id": "queryEngine_0-input-responseSynthesizer-ResponseSynthesizer"
|
| 135 |
+
}
|
| 136 |
+
],
|
| 137 |
+
"inputs": {
|
| 138 |
+
"vectorStoreRetriever": "{{pineconeLlamaIndex_0.data.instance}}",
|
| 139 |
+
"responseSynthesizer": "{{simpleResponseBuilderLlamaIndex_0.data.instance}}",
|
| 140 |
+
"returnSourceDocuments": ""
|
| 141 |
+
},
|
| 142 |
+
"outputAnchors": [
|
| 143 |
+
{
|
| 144 |
+
"id": "queryEngine_0-output-queryEngine-QueryEngine|BaseQueryEngine",
|
| 145 |
+
"name": "queryEngine",
|
| 146 |
+
"label": "QueryEngine",
|
| 147 |
+
"description": "Simple query engine built to answer question over your data, without memory",
|
| 148 |
+
"type": "QueryEngine | BaseQueryEngine"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"outputs": {},
|
| 152 |
+
"selected": false
|
| 153 |
+
},
|
| 154 |
+
"width": 300,
|
| 155 |
+
"height": 379,
|
| 156 |
+
"selected": false,
|
| 157 |
+
"positionAbsolute": {
|
| 158 |
+
"x": 1351.300368974579,
|
| 159 |
+
"y": 331.3695062376359
|
| 160 |
+
},
|
| 161 |
+
"dragging": false
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"id": "simpleResponseBuilderLlamaIndex_0",
|
| 165 |
+
"position": {
|
| 166 |
+
"x": 795.9044100313014,
|
| 167 |
+
"y": 525.3184043468777
|
| 168 |
+
},
|
| 169 |
+
"type": "customNode",
|
| 170 |
+
"data": {
|
| 171 |
+
"id": "simpleResponseBuilderLlamaIndex_0",
|
| 172 |
+
"label": "Simple Response Builder",
|
| 173 |
+
"version": 1,
|
| 174 |
+
"name": "simpleResponseBuilderLlamaIndex",
|
| 175 |
+
"type": "SimpleResponseBuilder",
|
| 176 |
+
"baseClasses": [
|
| 177 |
+
"SimpleResponseBuilder",
|
| 178 |
+
"ResponseSynthesizer"
|
| 179 |
+
],
|
| 180 |
+
"tags": [
|
| 181 |
+
"LlamaIndex"
|
| 182 |
+
],
|
| 183 |
+
"category": "Response Synthesizer",
|
| 184 |
+
"description": "Apply a query to a collection of text chunks, gathering the responses in an array, and return a combined string of all responses. Useful for individual queries on each text chunk.",
|
| 185 |
+
"inputParams": [],
|
| 186 |
+
"inputAnchors": [],
|
| 187 |
+
"inputs": {},
|
| 188 |
+
"outputAnchors": [
|
| 189 |
+
{
|
| 190 |
+
"id": "simpleResponseBuilderLlamaIndex_0-output-simpleResponseBuilderLlamaIndex-SimpleResponseBuilder|ResponseSynthesizer",
|
| 191 |
+
"name": "simpleResponseBuilderLlamaIndex",
|
| 192 |
+
"label": "SimpleResponseBuilder",
|
| 193 |
+
"description": "Apply a query to a collection of text chunks, gathering the responses in an array, and return a combined string of all responses. Useful for individual queries on each text chunk.",
|
| 194 |
+
"type": "SimpleResponseBuilder | ResponseSynthesizer"
|
| 195 |
+
}
|
| 196 |
+
],
|
| 197 |
+
"outputs": {},
|
| 198 |
+
"selected": false
|
| 199 |
+
},
|
| 200 |
+
"width": 300,
|
| 201 |
+
"height": 147,
|
| 202 |
+
"selected": false,
|
| 203 |
+
"positionAbsolute": {
|
| 204 |
+
"x": 795.9044100313014,
|
| 205 |
+
"y": 525.3184043468777
|
| 206 |
+
},
|
| 207 |
+
"dragging": false
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"id": "openAIEmbedding_LlamaIndex_0",
|
| 211 |
+
"position": {
|
| 212 |
+
"x": 321.28245515613935,
|
| 213 |
+
"y": 220.21759428587393
|
| 214 |
+
},
|
| 215 |
+
"type": "customNode",
|
| 216 |
+
"data": {
|
| 217 |
+
"id": "openAIEmbedding_LlamaIndex_0",
|
| 218 |
+
"label": "OpenAI Embedding",
|
| 219 |
+
"version": 1,
|
| 220 |
+
"name": "openAIEmbedding_LlamaIndex",
|
| 221 |
+
"type": "OpenAIEmbedding",
|
| 222 |
+
"baseClasses": [
|
| 223 |
+
"OpenAIEmbedding",
|
| 224 |
+
"BaseEmbedding_LlamaIndex",
|
| 225 |
+
"BaseEmbedding"
|
| 226 |
+
],
|
| 227 |
+
"tags": [
|
| 228 |
+
"LlamaIndex"
|
| 229 |
+
],
|
| 230 |
+
"category": "Embeddings",
|
| 231 |
+
"description": "OpenAI Embedding specific for LlamaIndex",
|
| 232 |
+
"inputParams": [
|
| 233 |
+
{
|
| 234 |
+
"label": "Connect Credential",
|
| 235 |
+
"name": "credential",
|
| 236 |
+
"type": "credential",
|
| 237 |
+
"credentialNames": [
|
| 238 |
+
"openAIApi"
|
| 239 |
+
],
|
| 240 |
+
"id": "openAIEmbedding_LlamaIndex_0-input-credential-credential"
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"label": "Model Name",
|
| 244 |
+
"name": "modelName",
|
| 245 |
+
"type": "options",
|
| 246 |
+
"options": [
|
| 247 |
+
{
|
| 248 |
+
"label": "text-embedding-3-large",
|
| 249 |
+
"name": "text-embedding-3-large"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"label": "text-embedding-3-small",
|
| 253 |
+
"name": "text-embedding-3-small"
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"label": "text-embedding-ada-002",
|
| 257 |
+
"name": "text-embedding-ada-002"
|
| 258 |
+
}
|
| 259 |
+
],
|
| 260 |
+
"default": "text-embedding-ada-002",
|
| 261 |
+
"optional": true,
|
| 262 |
+
"id": "openAIEmbedding_LlamaIndex_0-input-modelName-options"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"label": "Timeout",
|
| 266 |
+
"name": "timeout",
|
| 267 |
+
"type": "number",
|
| 268 |
+
"optional": true,
|
| 269 |
+
"additionalParams": true,
|
| 270 |
+
"id": "openAIEmbedding_LlamaIndex_0-input-timeout-number"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"label": "BasePath",
|
| 274 |
+
"name": "basepath",
|
| 275 |
+
"type": "string",
|
| 276 |
+
"optional": true,
|
| 277 |
+
"additionalParams": true,
|
| 278 |
+
"id": "openAIEmbedding_LlamaIndex_0-input-basepath-string"
|
| 279 |
+
}
|
| 280 |
+
],
|
| 281 |
+
"inputAnchors": [],
|
| 282 |
+
"inputs": {
|
| 283 |
+
"modelName": "text-embedding-3-small",
|
| 284 |
+
"timeout": "",
|
| 285 |
+
"basepath": ""
|
| 286 |
+
},
|
| 287 |
+
"outputAnchors": [
|
| 288 |
+
{
|
| 289 |
+
"id": "openAIEmbedding_LlamaIndex_0-output-openAIEmbedding_LlamaIndex-OpenAIEmbedding|BaseEmbedding_LlamaIndex|BaseEmbedding",
|
| 290 |
+
"name": "openAIEmbedding_LlamaIndex",
|
| 291 |
+
"label": "OpenAIEmbedding",
|
| 292 |
+
"description": "OpenAI Embedding specific for LlamaIndex",
|
| 293 |
+
"type": "OpenAIEmbedding | BaseEmbedding_LlamaIndex | BaseEmbedding"
|
| 294 |
+
}
|
| 295 |
+
],
|
| 296 |
+
"outputs": {},
|
| 297 |
+
"selected": false
|
| 298 |
+
},
|
| 299 |
+
"width": 300,
|
| 300 |
+
"height": 427,
|
| 301 |
+
"selected": false,
|
| 302 |
+
"positionAbsolute": {
|
| 303 |
+
"x": 321.28245515613935,
|
| 304 |
+
"y": 220.21759428587393
|
| 305 |
+
},
|
| 306 |
+
"dragging": false
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"id": "pineconeLlamaIndex_0",
|
| 310 |
+
"position": {
|
| 311 |
+
"x": 792.0406959043081,
|
| 312 |
+
"y": -115.52632405101089
|
| 313 |
+
},
|
| 314 |
+
"type": "customNode",
|
| 315 |
+
"data": {
|
| 316 |
+
"id": "pineconeLlamaIndex_0",
|
| 317 |
+
"label": "Pinecone",
|
| 318 |
+
"version": 1,
|
| 319 |
+
"name": "pineconeLlamaIndex",
|
| 320 |
+
"type": "Pinecone",
|
| 321 |
+
"baseClasses": [
|
| 322 |
+
"Pinecone",
|
| 323 |
+
"VectorIndexRetriever"
|
| 324 |
+
],
|
| 325 |
+
"tags": [
|
| 326 |
+
"LlamaIndex"
|
| 327 |
+
],
|
| 328 |
+
"category": "Vector Stores",
|
| 329 |
+
"description": "Upsert embedded data and perform similarity search upon query using Pinecone, a leading fully managed hosted vector database",
|
| 330 |
+
"inputParams": [
|
| 331 |
+
{
|
| 332 |
+
"label": "Connect Credential",
|
| 333 |
+
"name": "credential",
|
| 334 |
+
"type": "credential",
|
| 335 |
+
"credentialNames": [
|
| 336 |
+
"pineconeApi"
|
| 337 |
+
],
|
| 338 |
+
"id": "pineconeLlamaIndex_0-input-credential-credential"
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"label": "Pinecone Index",
|
| 342 |
+
"name": "pineconeIndex",
|
| 343 |
+
"type": "string",
|
| 344 |
+
"id": "pineconeLlamaIndex_0-input-pineconeIndex-string"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"label": "Pinecone Namespace",
|
| 348 |
+
"name": "pineconeNamespace",
|
| 349 |
+
"type": "string",
|
| 350 |
+
"placeholder": "my-first-namespace",
|
| 351 |
+
"additionalParams": true,
|
| 352 |
+
"optional": true,
|
| 353 |
+
"id": "pineconeLlamaIndex_0-input-pineconeNamespace-string"
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"label": "Pinecone Metadata Filter",
|
| 357 |
+
"name": "pineconeMetadataFilter",
|
| 358 |
+
"type": "json",
|
| 359 |
+
"optional": true,
|
| 360 |
+
"additionalParams": true,
|
| 361 |
+
"id": "pineconeLlamaIndex_0-input-pineconeMetadataFilter-json"
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"label": "Top K",
|
| 365 |
+
"name": "topK",
|
| 366 |
+
"description": "Number of top results to fetch. Default to 4",
|
| 367 |
+
"placeholder": "4",
|
| 368 |
+
"type": "number",
|
| 369 |
+
"additionalParams": true,
|
| 370 |
+
"optional": true,
|
| 371 |
+
"id": "pineconeLlamaIndex_0-input-topK-number"
|
| 372 |
+
}
|
| 373 |
+
],
|
| 374 |
+
"inputAnchors": [
|
| 375 |
+
{
|
| 376 |
+
"label": "Document",
|
| 377 |
+
"name": "document",
|
| 378 |
+
"type": "Document",
|
| 379 |
+
"list": true,
|
| 380 |
+
"optional": true,
|
| 381 |
+
"id": "pineconeLlamaIndex_0-input-document-Document"
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"label": "Chat Model",
|
| 385 |
+
"name": "model",
|
| 386 |
+
"type": "BaseChatModel_LlamaIndex",
|
| 387 |
+
"id": "pineconeLlamaIndex_0-input-model-BaseChatModel_LlamaIndex"
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"label": "Embeddings",
|
| 391 |
+
"name": "embeddings",
|
| 392 |
+
"type": "BaseEmbedding_LlamaIndex",
|
| 393 |
+
"id": "pineconeLlamaIndex_0-input-embeddings-BaseEmbedding_LlamaIndex"
|
| 394 |
+
}
|
| 395 |
+
],
|
| 396 |
+
"inputs": {
|
| 397 |
+
"document": [
|
| 398 |
+
"{{textFile_0.data.instance}}"
|
| 399 |
+
],
|
| 400 |
+
"model": "{{chatOpenAI_LlamaIndex_0.data.instance}}",
|
| 401 |
+
"embeddings": "{{openAIEmbedding_LlamaIndex_0.data.instance}}",
|
| 402 |
+
"pineconeIndex": "retina",
|
| 403 |
+
"pineconeNamespace": "",
|
| 404 |
+
"pineconeMetadataFilter": "",
|
| 405 |
+
"topK": ""
|
| 406 |
+
},
|
| 407 |
+
"outputAnchors": [
|
| 408 |
+
{
|
| 409 |
+
"name": "output",
|
| 410 |
+
"label": "Output",
|
| 411 |
+
"type": "options",
|
| 412 |
+
"description": "",
|
| 413 |
+
"options": [
|
| 414 |
+
{
|
| 415 |
+
"id": "pineconeLlamaIndex_0-output-retriever-Pinecone|VectorIndexRetriever",
|
| 416 |
+
"name": "retriever",
|
| 417 |
+
"label": "Pinecone Retriever",
|
| 418 |
+
"description": "",
|
| 419 |
+
"type": "Pinecone | VectorIndexRetriever"
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"id": "pineconeLlamaIndex_0-output-vectorStore-Pinecone|VectorStoreIndex",
|
| 423 |
+
"name": "vectorStore",
|
| 424 |
+
"label": "Pinecone Vector Store Index",
|
| 425 |
+
"description": "",
|
| 426 |
+
"type": "Pinecone | VectorStoreIndex"
|
| 427 |
+
}
|
| 428 |
+
],
|
| 429 |
+
"default": "retriever"
|
| 430 |
+
}
|
| 431 |
+
],
|
| 432 |
+
"outputs": {
|
| 433 |
+
"output": "retriever"
|
| 434 |
+
},
|
| 435 |
+
"selected": false
|
| 436 |
+
},
|
| 437 |
+
"width": 300,
|
| 438 |
+
"height": 607,
|
| 439 |
+
"selected": false,
|
| 440 |
+
"positionAbsolute": {
|
| 441 |
+
"x": 792.0406959043081,
|
| 442 |
+
"y": -115.52632405101089
|
| 443 |
+
},
|
| 444 |
+
"dragging": false
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"id": "chatOpenAI_LlamaIndex_0",
|
| 448 |
+
"position": {
|
| 449 |
+
"x": 319.3153306753704,
|
| 450 |
+
"y": -437.1497614271
|
| 451 |
+
},
|
| 452 |
+
"type": "customNode",
|
| 453 |
+
"data": {
|
| 454 |
+
"id": "chatOpenAI_LlamaIndex_0",
|
| 455 |
+
"label": "ChatOpenAI",
|
| 456 |
+
"version": 1,
|
| 457 |
+
"name": "chatOpenAI_LlamaIndex",
|
| 458 |
+
"type": "ChatOpenAI",
|
| 459 |
+
"baseClasses": [
|
| 460 |
+
"ChatOpenAI",
|
| 461 |
+
"BaseChatModel_LlamaIndex",
|
| 462 |
+
"BaseLLM"
|
| 463 |
+
],
|
| 464 |
+
"tags": [
|
| 465 |
+
"LlamaIndex"
|
| 466 |
+
],
|
| 467 |
+
"category": "Chat Models",
|
| 468 |
+
"description": "Wrapper around OpenAI Chat LLM specific for LlamaIndex",
|
| 469 |
+
"inputParams": [
|
| 470 |
+
{
|
| 471 |
+
"label": "Connect Credential",
|
| 472 |
+
"name": "credential",
|
| 473 |
+
"type": "credential",
|
| 474 |
+
"credentialNames": [
|
| 475 |
+
"openAIApi"
|
| 476 |
+
],
|
| 477 |
+
"id": "chatOpenAI_LlamaIndex_0-input-credential-credential"
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"label": "Model Name",
|
| 481 |
+
"name": "modelName",
|
| 482 |
+
"type": "options",
|
| 483 |
+
"options": [
|
| 484 |
+
{
|
| 485 |
+
"label": "gpt-4",
|
| 486 |
+
"name": "gpt-4"
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"label": "gpt-4-turbo-preview",
|
| 490 |
+
"name": "gpt-4-turbo-preview"
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"label": "gpt-4-0125-preview",
|
| 494 |
+
"name": "gpt-4-0125-preview"
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"label": "gpt-4-1106-preview",
|
| 498 |
+
"name": "gpt-4-1106-preview"
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"label": "gpt-4-vision-preview",
|
| 502 |
+
"name": "gpt-4-vision-preview"
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"label": "gpt-4-0613",
|
| 506 |
+
"name": "gpt-4-0613"
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"label": "gpt-4-32k",
|
| 510 |
+
"name": "gpt-4-32k"
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"label": "gpt-4-32k-0613",
|
| 514 |
+
"name": "gpt-4-32k-0613"
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"label": "gpt-3.5-turbo",
|
| 518 |
+
"name": "gpt-3.5-turbo"
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"label": "gpt-3.5-turbo-1106",
|
| 522 |
+
"name": "gpt-3.5-turbo-1106"
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"label": "gpt-3.5-turbo-0613",
|
| 526 |
+
"name": "gpt-3.5-turbo-0613"
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"label": "gpt-3.5-turbo-16k",
|
| 530 |
+
"name": "gpt-3.5-turbo-16k"
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"label": "gpt-3.5-turbo-16k-0613",
|
| 534 |
+
"name": "gpt-3.5-turbo-16k-0613"
|
| 535 |
+
}
|
| 536 |
+
],
|
| 537 |
+
"default": "gpt-3.5-turbo",
|
| 538 |
+
"optional": true,
|
| 539 |
+
"id": "chatOpenAI_LlamaIndex_0-input-modelName-options"
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"label": "Temperature",
|
| 543 |
+
"name": "temperature",
|
| 544 |
+
"type": "number",
|
| 545 |
+
"step": 0.1,
|
| 546 |
+
"default": 0.9,
|
| 547 |
+
"optional": true,
|
| 548 |
+
"id": "chatOpenAI_LlamaIndex_0-input-temperature-number"
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"label": "Max Tokens",
|
| 552 |
+
"name": "maxTokens",
|
| 553 |
+
"type": "number",
|
| 554 |
+
"step": 1,
|
| 555 |
+
"optional": true,
|
| 556 |
+
"additionalParams": true,
|
| 557 |
+
"id": "chatOpenAI_LlamaIndex_0-input-maxTokens-number"
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"label": "Top Probability",
|
| 561 |
+
"name": "topP",
|
| 562 |
+
"type": "number",
|
| 563 |
+
"step": 0.1,
|
| 564 |
+
"optional": true,
|
| 565 |
+
"additionalParams": true,
|
| 566 |
+
"id": "chatOpenAI_LlamaIndex_0-input-topP-number"
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"label": "Timeout",
|
| 570 |
+
"name": "timeout",
|
| 571 |
+
"type": "number",
|
| 572 |
+
"step": 1,
|
| 573 |
+
"optional": true,
|
| 574 |
+
"additionalParams": true,
|
| 575 |
+
"id": "chatOpenAI_LlamaIndex_0-input-timeout-number"
|
| 576 |
+
}
|
| 577 |
+
],
|
| 578 |
+
"inputAnchors": [],
|
| 579 |
+
"inputs": {
|
| 580 |
+
"modelName": "gpt-3.5-turbo",
|
| 581 |
+
"temperature": "0.5",
|
| 582 |
+
"maxTokens": "",
|
| 583 |
+
"topP": "",
|
| 584 |
+
"timeout": ""
|
| 585 |
+
},
|
| 586 |
+
"outputAnchors": [
|
| 587 |
+
{
|
| 588 |
+
"id": "chatOpenAI_LlamaIndex_0-output-chatOpenAI_LlamaIndex-ChatOpenAI|BaseChatModel_LlamaIndex|BaseLLM",
|
| 589 |
+
"name": "chatOpenAI_LlamaIndex",
|
| 590 |
+
"label": "ChatOpenAI",
|
| 591 |
+
"description": "Wrapper around OpenAI Chat LLM specific for LlamaIndex",
|
| 592 |
+
"type": "ChatOpenAI | BaseChatModel_LlamaIndex | BaseLLM"
|
| 593 |
+
}
|
| 594 |
+
],
|
| 595 |
+
"outputs": {},
|
| 596 |
+
"selected": false
|
| 597 |
+
},
|
| 598 |
+
"width": 300,
|
| 599 |
+
"height": 525,
|
| 600 |
+
"selected": false,
|
| 601 |
+
"positionAbsolute": {
|
| 602 |
+
"x": 319.3153306753704,
|
| 603 |
+
"y": -437.1497614271
|
| 604 |
+
},
|
| 605 |
+
"dragging": false
|
| 606 |
+
}
|
| 607 |
+
],
|
| 608 |
+
"edges": [
|
| 609 |
+
{
|
| 610 |
+
"source": "simpleResponseBuilderLlamaIndex_0",
|
| 611 |
+
"sourceHandle": "simpleResponseBuilderLlamaIndex_0-output-simpleResponseBuilderLlamaIndex-SimpleResponseBuilder|ResponseSynthesizer",
|
| 612 |
+
"target": "queryEngine_0",
|
| 613 |
+
"targetHandle": "queryEngine_0-input-responseSynthesizer-ResponseSynthesizer",
|
| 614 |
+
"type": "buttonedge",
|
| 615 |
+
"id": "simpleResponseBuilderLlamaIndex_0-simpleResponseBuilderLlamaIndex_0-output-simpleResponseBuilderLlamaIndex-SimpleResponseBuilder|ResponseSynthesizer-queryEngine_0-queryEngine_0-input-responseSynthesizer-ResponseSynthesizer"
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"source": "pineconeLlamaIndex_0",
|
| 619 |
+
"sourceHandle": "pineconeLlamaIndex_0-output-retriever-Pinecone|VectorIndexRetriever",
|
| 620 |
+
"target": "queryEngine_0",
|
| 621 |
+
"targetHandle": "queryEngine_0-input-vectorStoreRetriever-VectorIndexRetriever",
|
| 622 |
+
"type": "buttonedge",
|
| 623 |
+
"id": "pineconeLlamaIndex_0-pineconeLlamaIndex_0-output-retriever-Pinecone|VectorIndexRetriever-queryEngine_0-queryEngine_0-input-vectorStoreRetriever-VectorIndexRetriever"
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"source": "openAIEmbedding_LlamaIndex_0",
|
| 627 |
+
"sourceHandle": "openAIEmbedding_LlamaIndex_0-output-openAIEmbedding_LlamaIndex-OpenAIEmbedding|BaseEmbedding_LlamaIndex|BaseEmbedding",
|
| 628 |
+
"target": "pineconeLlamaIndex_0",
|
| 629 |
+
"targetHandle": "pineconeLlamaIndex_0-input-embeddings-BaseEmbedding_LlamaIndex",
|
| 630 |
+
"type": "buttonedge",
|
| 631 |
+
"id": "openAIEmbedding_LlamaIndex_0-openAIEmbedding_LlamaIndex_0-output-openAIEmbedding_LlamaIndex-OpenAIEmbedding|BaseEmbedding_LlamaIndex|BaseEmbedding-pineconeLlamaIndex_0-pineconeLlamaIndex_0-input-embeddings-BaseEmbedding_LlamaIndex"
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"source": "textFile_0",
|
| 635 |
+
"sourceHandle": "textFile_0-output-document-Document|json",
|
| 636 |
+
"target": "pineconeLlamaIndex_0",
|
| 637 |
+
"targetHandle": "pineconeLlamaIndex_0-input-document-Document",
|
| 638 |
+
"type": "buttonedge",
|
| 639 |
+
"id": "textFile_0-textFile_0-output-document-Document|json-pineconeLlamaIndex_0-pineconeLlamaIndex_0-input-document-Document"
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"source": "chatOpenAI_LlamaIndex_0",
|
| 643 |
+
"sourceHandle": "chatOpenAI_LlamaIndex_0-output-chatOpenAI_LlamaIndex-ChatOpenAI|BaseChatModel_LlamaIndex|BaseLLM",
|
| 644 |
+
"target": "pineconeLlamaIndex_0",
|
| 645 |
+
"targetHandle": "pineconeLlamaIndex_0-input-model-BaseChatModel_LlamaIndex",
|
| 646 |
+
"type": "buttonedge",
|
| 647 |
+
"id": "chatOpenAI_LlamaIndex_0-chatOpenAI_LlamaIndex_0-output-chatOpenAI_LlamaIndex-ChatOpenAI|BaseChatModel_LlamaIndex|BaseLLM-pineconeLlamaIndex_0-pineconeLlamaIndex_0-input-model-BaseChatModel_LlamaIndex"
|
| 648 |
+
}
|
| 649 |
+
]
|
| 650 |
+
}
|