Spaces:
Running
Running
| { | |
| "nodes": [ | |
| { | |
| "id": "textFile_0", | |
| "position": { | |
| "x": 312.9443352569691, | |
| "y": -944.0794675404644 | |
| }, | |
| "type": "customNode", | |
| "data": { | |
| "id": "textFile_0", | |
| "label": "Text File", | |
| "version": 3, | |
| "name": "textFile", | |
| "type": "Document", | |
| "baseClasses": [ | |
| "Document" | |
| ], | |
| "category": "Document Loaders", | |
| "description": "Load data from text files", | |
| "inputParams": [ | |
| { | |
| "label": "Txt File", | |
| "name": "txtFile", | |
| "type": "file", | |
| "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", | |
| "id": "textFile_0-input-txtFile-file" | |
| }, | |
| { | |
| "label": "Metadata", | |
| "name": "metadata", | |
| "type": "json", | |
| "optional": true, | |
| "additionalParams": true, | |
| "id": "textFile_0-input-metadata-json" | |
| } | |
| ], | |
| "inputAnchors": [ | |
| { | |
| "label": "Text Splitter", | |
| "name": "textSplitter", | |
| "type": "TextSplitter", | |
| "optional": true, | |
| "id": "textFile_0-input-textSplitter-TextSplitter" | |
| } | |
| ], | |
| "inputs": { | |
| "textSplitter": "", | |
| "metadata": "" | |
| }, | |
| "outputAnchors": [ | |
| { | |
| "name": "output", | |
| "label": "Output", | |
| "type": "options", | |
| "description": "Array of document objects containing metadata and pageContent", | |
| "options": [ | |
| { | |
| "id": "textFile_0-output-document-Document|json", | |
| "name": "document", | |
| "label": "Document", | |
| "description": "Array of document objects containing metadata and pageContent", | |
| "type": "Document | json" | |
| }, | |
| { | |
| "id": "textFile_0-output-text-string|json", | |
| "name": "text", | |
| "label": "Text", | |
| "description": "Concatenated string from pageContent of documents", | |
| "type": "string | json" | |
| } | |
| ], | |
| "default": "document" | |
| } | |
| ], | |
| "outputs": { | |
| "output": "document" | |
| }, | |
| "selected": false | |
| }, | |
| "width": 300, | |
| "height": 435, | |
| "selected": false, | |
| "positionAbsolute": { | |
| "x": 312.9443352569691, | |
| "y": -944.0794675404644 | |
| }, | |
| "dragging": false | |
| }, | |
| { | |
| "id": "queryEngine_0", | |
| "position": { | |
| "x": 1351.300368974579, | |
| "y": 331.3695062376359 | |
| }, | |
| "type": "customNode", | |
| "data": { | |
| "id": "queryEngine_0", | |
| "label": "Query Engine", | |
| "version": 2, | |
| "name": "queryEngine", | |
| "type": "QueryEngine", | |
| "baseClasses": [ | |
| "QueryEngine", | |
| "BaseQueryEngine" | |
| ], | |
| "tags": [ | |
| "LlamaIndex" | |
| ], | |
| "category": "Engine", | |
| "description": "Simple query engine built to answer question over your data, without memory", | |
| "inputParams": [ | |
| { | |
| "label": "Return Source Documents", | |
| "name": "returnSourceDocuments", | |
| "type": "boolean", | |
| "optional": true, | |
| "id": "queryEngine_0-input-returnSourceDocuments-boolean" | |
| } | |
| ], | |
| "inputAnchors": [ | |
| { | |
| "label": "Vector Store Retriever", | |
| "name": "vectorStoreRetriever", | |
| "type": "VectorIndexRetriever", | |
| "id": "queryEngine_0-input-vectorStoreRetriever-VectorIndexRetriever" | |
| }, | |
| { | |
| "label": "Response Synthesizer", | |
| "name": "responseSynthesizer", | |
| "type": "ResponseSynthesizer", | |
| "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>", | |
| "optional": true, | |
| "id": "queryEngine_0-input-responseSynthesizer-ResponseSynthesizer" | |
| } | |
| ], | |
| "inputs": { | |
| "vectorStoreRetriever": "{{pineconeLlamaIndex_0.data.instance}}", | |
| "responseSynthesizer": "{{simpleResponseBuilderLlamaIndex_0.data.instance}}", | |
| "returnSourceDocuments": "" | |
| }, | |
| "outputAnchors": [ | |
| { | |
| "id": "queryEngine_0-output-queryEngine-QueryEngine|BaseQueryEngine", | |
| "name": "queryEngine", | |
| "label": "QueryEngine", | |
| "description": "Simple query engine built to answer question over your data, without memory", | |
| "type": "QueryEngine | BaseQueryEngine" | |
| } | |
| ], | |
| "outputs": {}, | |
| "selected": false | |
| }, | |
| "width": 300, | |
| "height": 379, | |
| "selected": false, | |
| "positionAbsolute": { | |
| "x": 1351.300368974579, | |
| "y": 331.3695062376359 | |
| }, | |
| "dragging": false | |
| }, | |
| { | |
| "id": "simpleResponseBuilderLlamaIndex_0", | |
| "position": { | |
| "x": 795.9044100313014, | |
| "y": 525.3184043468777 | |
| }, | |
| "type": "customNode", | |
| "data": { | |
| "id": "simpleResponseBuilderLlamaIndex_0", | |
| "label": "Simple Response Builder", | |
| "version": 1, | |
| "name": "simpleResponseBuilderLlamaIndex", | |
| "type": "SimpleResponseBuilder", | |
| "baseClasses": [ | |
| "SimpleResponseBuilder", | |
| "ResponseSynthesizer" | |
| ], | |
| "tags": [ | |
| "LlamaIndex" | |
| ], | |
| "category": "Response Synthesizer", | |
| "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.", | |
| "inputParams": [], | |
| "inputAnchors": [], | |
| "inputs": {}, | |
| "outputAnchors": [ | |
| { | |
| "id": "simpleResponseBuilderLlamaIndex_0-output-simpleResponseBuilderLlamaIndex-SimpleResponseBuilder|ResponseSynthesizer", | |
| "name": "simpleResponseBuilderLlamaIndex", | |
| "label": "SimpleResponseBuilder", | |
| "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.", | |
| "type": "SimpleResponseBuilder | ResponseSynthesizer" | |
| } | |
| ], | |
| "outputs": {}, | |
| "selected": false | |
| }, | |
| "width": 300, | |
| "height": 147, | |
| "selected": false, | |
| "positionAbsolute": { | |
| "x": 795.9044100313014, | |
| "y": 525.3184043468777 | |
| }, | |
| "dragging": false | |
| }, | |
| { | |
| "id": "openAIEmbedding_LlamaIndex_0", | |
| "position": { | |
| "x": 321.28245515613935, | |
| "y": 220.21759428587393 | |
| }, | |
| "type": "customNode", | |
| "data": { | |
| "id": "openAIEmbedding_LlamaIndex_0", | |
| "label": "OpenAI Embedding", | |
| "version": 1, | |
| "name": "openAIEmbedding_LlamaIndex", | |
| "type": "OpenAIEmbedding", | |
| "baseClasses": [ | |
| "OpenAIEmbedding", | |
| "BaseEmbedding_LlamaIndex", | |
| "BaseEmbedding" | |
| ], | |
| "tags": [ | |
| "LlamaIndex" | |
| ], | |
| "category": "Embeddings", | |
| "description": "OpenAI Embedding specific for LlamaIndex", | |
| "inputParams": [ | |
| { | |
| "label": "Connect Credential", | |
| "name": "credential", | |
| "type": "credential", | |
| "credentialNames": [ | |
| "openAIApi" | |
| ], | |
| "id": "openAIEmbedding_LlamaIndex_0-input-credential-credential" | |
| }, | |
| { | |
| "label": "Model Name", | |
| "name": "modelName", | |
| "type": "options", | |
| "options": [ | |
| { | |
| "label": "text-embedding-3-large", | |
| "name": "text-embedding-3-large" | |
| }, | |
| { | |
| "label": "text-embedding-3-small", | |
| "name": "text-embedding-3-small" | |
| }, | |
| { | |
| "label": "text-embedding-ada-002", | |
| "name": "text-embedding-ada-002" | |
| } | |
| ], | |
| "default": "text-embedding-ada-002", | |
| "optional": true, | |
| "id": "openAIEmbedding_LlamaIndex_0-input-modelName-options" | |
| }, | |
| { | |
| "label": "Timeout", | |
| "name": "timeout", | |
| "type": "number", | |
| "optional": true, | |
| "additionalParams": true, | |
| "id": "openAIEmbedding_LlamaIndex_0-input-timeout-number" | |
| }, | |
| { | |
| "label": "BasePath", | |
| "name": "basepath", | |
| "type": "string", | |
| "optional": true, | |
| "additionalParams": true, | |
| "id": "openAIEmbedding_LlamaIndex_0-input-basepath-string" | |
| } | |
| ], | |
| "inputAnchors": [], | |
| "inputs": { | |
| "modelName": "text-embedding-3-small", | |
| "timeout": "", | |
| "basepath": "" | |
| }, | |
| "outputAnchors": [ | |
| { | |
| "id": "openAIEmbedding_LlamaIndex_0-output-openAIEmbedding_LlamaIndex-OpenAIEmbedding|BaseEmbedding_LlamaIndex|BaseEmbedding", | |
| "name": "openAIEmbedding_LlamaIndex", | |
| "label": "OpenAIEmbedding", | |
| "description": "OpenAI Embedding specific for LlamaIndex", | |
| "type": "OpenAIEmbedding | BaseEmbedding_LlamaIndex | BaseEmbedding" | |
| } | |
| ], | |
| "outputs": {}, | |
| "selected": false | |
| }, | |
| "width": 300, | |
| "height": 427, | |
| "selected": false, | |
| "positionAbsolute": { | |
| "x": 321.28245515613935, | |
| "y": 220.21759428587393 | |
| }, | |
| "dragging": false | |
| }, | |
| { | |
| "id": "pineconeLlamaIndex_0", | |
| "position": { | |
| "x": 792.0406959043081, | |
| "y": -115.52632405101089 | |
| }, | |
| "type": "customNode", | |
| "data": { | |
| "id": "pineconeLlamaIndex_0", | |
| "label": "Pinecone", | |
| "version": 1, | |
| "name": "pineconeLlamaIndex", | |
| "type": "Pinecone", | |
| "baseClasses": [ | |
| "Pinecone", | |
| "VectorIndexRetriever" | |
| ], | |
| "tags": [ | |
| "LlamaIndex" | |
| ], | |
| "category": "Vector Stores", | |
| "description": "Upsert embedded data and perform similarity search upon query using Pinecone, a leading fully managed hosted vector database", | |
| "inputParams": [ | |
| { | |
| "label": "Connect Credential", | |
| "name": "credential", | |
| "type": "credential", | |
| "credentialNames": [ | |
| "pineconeApi" | |
| ], | |
| "id": "pineconeLlamaIndex_0-input-credential-credential" | |
| }, | |
| { | |
| "label": "Pinecone Index", | |
| "name": "pineconeIndex", | |
| "type": "string", | |
| "id": "pineconeLlamaIndex_0-input-pineconeIndex-string" | |
| }, | |
| { | |
| "label": "Pinecone Namespace", | |
| "name": "pineconeNamespace", | |
| "type": "string", | |
| "placeholder": "my-first-namespace", | |
| "additionalParams": true, | |
| "optional": true, | |
| "id": "pineconeLlamaIndex_0-input-pineconeNamespace-string" | |
| }, | |
| { | |
| "label": "Pinecone Metadata Filter", | |
| "name": "pineconeMetadataFilter", | |
| "type": "json", | |
| "optional": true, | |
| "additionalParams": true, | |
| "id": "pineconeLlamaIndex_0-input-pineconeMetadataFilter-json" | |
| }, | |
| { | |
| "label": "Top K", | |
| "name": "topK", | |
| "description": "Number of top results to fetch. Default to 4", | |
| "placeholder": "4", | |
| "type": "number", | |
| "additionalParams": true, | |
| "optional": true, | |
| "id": "pineconeLlamaIndex_0-input-topK-number" | |
| } | |
| ], | |
| "inputAnchors": [ | |
| { | |
| "label": "Document", | |
| "name": "document", | |
| "type": "Document", | |
| "list": true, | |
| "optional": true, | |
| "id": "pineconeLlamaIndex_0-input-document-Document" | |
| }, | |
| { | |
| "label": "Chat Model", | |
| "name": "model", | |
| "type": "BaseChatModel_LlamaIndex", | |
| "id": "pineconeLlamaIndex_0-input-model-BaseChatModel_LlamaIndex" | |
| }, | |
| { | |
| "label": "Embeddings", | |
| "name": "embeddings", | |
| "type": "BaseEmbedding_LlamaIndex", | |
| "id": "pineconeLlamaIndex_0-input-embeddings-BaseEmbedding_LlamaIndex" | |
| } | |
| ], | |
| "inputs": { | |
| "document": [ | |
| "{{textFile_0.data.instance}}" | |
| ], | |
| "model": "{{chatOpenAI_LlamaIndex_0.data.instance}}", | |
| "embeddings": "{{openAIEmbedding_LlamaIndex_0.data.instance}}", | |
| "pineconeIndex": "retina", | |
| "pineconeNamespace": "", | |
| "pineconeMetadataFilter": "", | |
| "topK": "" | |
| }, | |
| "outputAnchors": [ | |
| { | |
| "name": "output", | |
| "label": "Output", | |
| "type": "options", | |
| "description": "", | |
| "options": [ | |
| { | |
| "id": "pineconeLlamaIndex_0-output-retriever-Pinecone|VectorIndexRetriever", | |
| "name": "retriever", | |
| "label": "Pinecone Retriever", | |
| "description": "", | |
| "type": "Pinecone | VectorIndexRetriever" | |
| }, | |
| { | |
| "id": "pineconeLlamaIndex_0-output-vectorStore-Pinecone|VectorStoreIndex", | |
| "name": "vectorStore", | |
| "label": "Pinecone Vector Store Index", | |
| "description": "", | |
| "type": "Pinecone | VectorStoreIndex" | |
| } | |
| ], | |
| "default": "retriever" | |
| } | |
| ], | |
| "outputs": { | |
| "output": "retriever" | |
| }, | |
| "selected": false | |
| }, | |
| "width": 300, | |
| "height": 607, | |
| "selected": false, | |
| "positionAbsolute": { | |
| "x": 792.0406959043081, | |
| "y": -115.52632405101089 | |
| }, | |
| "dragging": false | |
| }, | |
| { | |
| "id": "chatOpenAI_LlamaIndex_0", | |
| "position": { | |
| "x": 319.3153306753704, | |
| "y": -437.1497614271 | |
| }, | |
| "type": "customNode", | |
| "data": { | |
| "id": "chatOpenAI_LlamaIndex_0", | |
| "label": "ChatOpenAI", | |
| "version": 1, | |
| "name": "chatOpenAI_LlamaIndex", | |
| "type": "ChatOpenAI", | |
| "baseClasses": [ | |
| "ChatOpenAI", | |
| "BaseChatModel_LlamaIndex", | |
| "BaseLLM" | |
| ], | |
| "tags": [ | |
| "LlamaIndex" | |
| ], | |
| "category": "Chat Models", | |
| "description": "Wrapper around OpenAI Chat LLM specific for LlamaIndex", | |
| "inputParams": [ | |
| { | |
| "label": "Connect Credential", | |
| "name": "credential", | |
| "type": "credential", | |
| "credentialNames": [ | |
| "openAIApi" | |
| ], | |
| "id": "chatOpenAI_LlamaIndex_0-input-credential-credential" | |
| }, | |
| { | |
| "label": "Model Name", | |
| "name": "modelName", | |
| "type": "options", | |
| "options": [ | |
| { | |
| "label": "gpt-4", | |
| "name": "gpt-4" | |
| }, | |
| { | |
| "label": "gpt-4-turbo-preview", | |
| "name": "gpt-4-turbo-preview" | |
| }, | |
| { | |
| "label": "gpt-4-0125-preview", | |
| "name": "gpt-4-0125-preview" | |
| }, | |
| { | |
| "label": "gpt-4-1106-preview", | |
| "name": "gpt-4-1106-preview" | |
| }, | |
| { | |
| "label": "gpt-4-vision-preview", | |
| "name": "gpt-4-vision-preview" | |
| }, | |
| { | |
| "label": "gpt-4-0613", | |
| "name": "gpt-4-0613" | |
| }, | |
| { | |
| "label": "gpt-4-32k", | |
| "name": "gpt-4-32k" | |
| }, | |
| { | |
| "label": "gpt-4-32k-0613", | |
| "name": "gpt-4-32k-0613" | |
| }, | |
| { | |
| "label": "gpt-3.5-turbo", | |
| "name": "gpt-3.5-turbo" | |
| }, | |
| { | |
| "label": "gpt-3.5-turbo-1106", | |
| "name": "gpt-3.5-turbo-1106" | |
| }, | |
| { | |
| "label": "gpt-3.5-turbo-0613", | |
| "name": "gpt-3.5-turbo-0613" | |
| }, | |
| { | |
| "label": "gpt-3.5-turbo-16k", | |
| "name": "gpt-3.5-turbo-16k" | |
| }, | |
| { | |
| "label": "gpt-3.5-turbo-16k-0613", | |
| "name": "gpt-3.5-turbo-16k-0613" | |
| } | |
| ], | |
| "default": "gpt-3.5-turbo", | |
| "optional": true, | |
| "id": "chatOpenAI_LlamaIndex_0-input-modelName-options" | |
| }, | |
| { | |
| "label": "Temperature", | |
| "name": "temperature", | |
| "type": "number", | |
| "step": 0.1, | |
| "default": 0.9, | |
| "optional": true, | |
| "id": "chatOpenAI_LlamaIndex_0-input-temperature-number" | |
| }, | |
| { | |
| "label": "Max Tokens", | |
| "name": "maxTokens", | |
| "type": "number", | |
| "step": 1, | |
| "optional": true, | |
| "additionalParams": true, | |
| "id": "chatOpenAI_LlamaIndex_0-input-maxTokens-number" | |
| }, | |
| { | |
| "label": "Top Probability", | |
| "name": "topP", | |
| "type": "number", | |
| "step": 0.1, | |
| "optional": true, | |
| "additionalParams": true, | |
| "id": "chatOpenAI_LlamaIndex_0-input-topP-number" | |
| }, | |
| { | |
| "label": "Timeout", | |
| "name": "timeout", | |
| "type": "number", | |
| "step": 1, | |
| "optional": true, | |
| "additionalParams": true, | |
| "id": "chatOpenAI_LlamaIndex_0-input-timeout-number" | |
| } | |
| ], | |
| "inputAnchors": [], | |
| "inputs": { | |
| "modelName": "gpt-3.5-turbo", | |
| "temperature": "0.5", | |
| "maxTokens": "", | |
| "topP": "", | |
| "timeout": "" | |
| }, | |
| "outputAnchors": [ | |
| { | |
| "id": "chatOpenAI_LlamaIndex_0-output-chatOpenAI_LlamaIndex-ChatOpenAI|BaseChatModel_LlamaIndex|BaseLLM", | |
| "name": "chatOpenAI_LlamaIndex", | |
| "label": "ChatOpenAI", | |
| "description": "Wrapper around OpenAI Chat LLM specific for LlamaIndex", | |
| "type": "ChatOpenAI | BaseChatModel_LlamaIndex | BaseLLM" | |
| } | |
| ], | |
| "outputs": {}, | |
| "selected": false | |
| }, | |
| "width": 300, | |
| "height": 525, | |
| "selected": false, | |
| "positionAbsolute": { | |
| "x": 319.3153306753704, | |
| "y": -437.1497614271 | |
| }, | |
| "dragging": false | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "source": "simpleResponseBuilderLlamaIndex_0", | |
| "sourceHandle": "simpleResponseBuilderLlamaIndex_0-output-simpleResponseBuilderLlamaIndex-SimpleResponseBuilder|ResponseSynthesizer", | |
| "target": "queryEngine_0", | |
| "targetHandle": "queryEngine_0-input-responseSynthesizer-ResponseSynthesizer", | |
| "type": "buttonedge", | |
| "id": "simpleResponseBuilderLlamaIndex_0-simpleResponseBuilderLlamaIndex_0-output-simpleResponseBuilderLlamaIndex-SimpleResponseBuilder|ResponseSynthesizer-queryEngine_0-queryEngine_0-input-responseSynthesizer-ResponseSynthesizer" | |
| }, | |
| { | |
| "source": "pineconeLlamaIndex_0", | |
| "sourceHandle": "pineconeLlamaIndex_0-output-retriever-Pinecone|VectorIndexRetriever", | |
| "target": "queryEngine_0", | |
| "targetHandle": "queryEngine_0-input-vectorStoreRetriever-VectorIndexRetriever", | |
| "type": "buttonedge", | |
| "id": "pineconeLlamaIndex_0-pineconeLlamaIndex_0-output-retriever-Pinecone|VectorIndexRetriever-queryEngine_0-queryEngine_0-input-vectorStoreRetriever-VectorIndexRetriever" | |
| }, | |
| { | |
| "source": "openAIEmbedding_LlamaIndex_0", | |
| "sourceHandle": "openAIEmbedding_LlamaIndex_0-output-openAIEmbedding_LlamaIndex-OpenAIEmbedding|BaseEmbedding_LlamaIndex|BaseEmbedding", | |
| "target": "pineconeLlamaIndex_0", | |
| "targetHandle": "pineconeLlamaIndex_0-input-embeddings-BaseEmbedding_LlamaIndex", | |
| "type": "buttonedge", | |
| "id": "openAIEmbedding_LlamaIndex_0-openAIEmbedding_LlamaIndex_0-output-openAIEmbedding_LlamaIndex-OpenAIEmbedding|BaseEmbedding_LlamaIndex|BaseEmbedding-pineconeLlamaIndex_0-pineconeLlamaIndex_0-input-embeddings-BaseEmbedding_LlamaIndex" | |
| }, | |
| { | |
| "source": "textFile_0", | |
| "sourceHandle": "textFile_0-output-document-Document|json", | |
| "target": "pineconeLlamaIndex_0", | |
| "targetHandle": "pineconeLlamaIndex_0-input-document-Document", | |
| "type": "buttonedge", | |
| "id": "textFile_0-textFile_0-output-document-Document|json-pineconeLlamaIndex_0-pineconeLlamaIndex_0-input-document-Document" | |
| }, | |
| { | |
| "source": "chatOpenAI_LlamaIndex_0", | |
| "sourceHandle": "chatOpenAI_LlamaIndex_0-output-chatOpenAI_LlamaIndex-ChatOpenAI|BaseChatModel_LlamaIndex|BaseLLM", | |
| "target": "pineconeLlamaIndex_0", | |
| "targetHandle": "pineconeLlamaIndex_0-input-model-BaseChatModel_LlamaIndex", | |
| "type": "buttonedge", | |
| "id": "chatOpenAI_LlamaIndex_0-chatOpenAI_LlamaIndex_0-output-chatOpenAI_LlamaIndex-ChatOpenAI|BaseChatModel_LlamaIndex|BaseLLM-pineconeLlamaIndex_0-pineconeLlamaIndex_0-input-model-BaseChatModel_LlamaIndex" | |
| } | |
| ] | |
| } |