mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-27 19:00:37 +03:00
9281b57ef1
- add types & interfaces - small ui bug fix - update marketplace files
431 lines
17 KiB
JSON
431 lines
17 KiB
JSON
{
|
|
"description": "Github repo QnA using conversational retrieval QA chain",
|
|
"nodes": [
|
|
{
|
|
"width": 300,
|
|
"height": 376,
|
|
"id": "recursiveCharacterTextSplitter_0",
|
|
"position": {
|
|
"x": 515.0218130437521,
|
|
"y": 133.69013788278536
|
|
},
|
|
"type": "customNode",
|
|
"data": {
|
|
"id": "recursiveCharacterTextSplitter_0",
|
|
"label": "Recursive Character Text Splitter",
|
|
"name": "recursiveCharacterTextSplitter",
|
|
"type": "RecursiveCharacterTextSplitter",
|
|
"baseClasses": ["RecursiveCharacterTextSplitter", "TextSplitter"],
|
|
"category": "Text Splitters",
|
|
"description": "Split documents recursively by different characters - starting with \"\n\n\", then \"\n\", then \" \"",
|
|
"inputParams": [
|
|
{
|
|
"label": "Chunk Size",
|
|
"name": "chunkSize",
|
|
"type": "number",
|
|
"default": 1000,
|
|
"optional": true
|
|
},
|
|
{
|
|
"label": "Chunk Overlap",
|
|
"name": "chunkOverlap",
|
|
"type": "number",
|
|
"optional": true
|
|
}
|
|
],
|
|
"inputAnchors": [],
|
|
"inputs": {
|
|
"chunkSize": 1000,
|
|
"chunkOverlap": ""
|
|
},
|
|
"outputAnchors": [
|
|
{
|
|
"id": "recursiveCharacterTextSplitter_0-output-recursiveCharacterTextSplitter-RecursiveCharacterTextSplitter|TextSplitter",
|
|
"name": "recursiveCharacterTextSplitter",
|
|
"label": "RecursiveCharacterTextSplitter",
|
|
"type": "RecursiveCharacterTextSplitter | TextSplitter"
|
|
}
|
|
],
|
|
"selected": false
|
|
},
|
|
"selected": false,
|
|
"positionAbsolute": {
|
|
"x": 515.0218130437521,
|
|
"y": 133.69013788278536
|
|
},
|
|
"dragging": false
|
|
},
|
|
{
|
|
"width": 300,
|
|
"height": 526,
|
|
"id": "github_0",
|
|
"position": {
|
|
"x": 900.6064873076141,
|
|
"y": 12.699982761973843
|
|
},
|
|
"type": "customNode",
|
|
"data": {
|
|
"id": "github_0",
|
|
"label": "Github",
|
|
"name": "github",
|
|
"type": "Document",
|
|
"baseClasses": ["Document"],
|
|
"category": "Document Loaders",
|
|
"description": "Load data from a GitHub repository",
|
|
"inputParams": [
|
|
{
|
|
"label": "Repo Link",
|
|
"name": "repoLink",
|
|
"type": "string",
|
|
"placeholder": "https://github.com/FlowiseAI/Flowise"
|
|
},
|
|
{
|
|
"label": "Branch",
|
|
"name": "branch",
|
|
"type": "string",
|
|
"default": "main"
|
|
},
|
|
{
|
|
"label": "Access Token",
|
|
"name": "accessToken",
|
|
"type": "password",
|
|
"placeholder": "<GITHUB_ACCESS_TOKEN>",
|
|
"optional": true
|
|
}
|
|
],
|
|
"inputAnchors": [
|
|
{
|
|
"label": "Text Splitter",
|
|
"name": "textSplitter",
|
|
"type": "TextSplitter",
|
|
"optional": true,
|
|
"id": "github_0-input-textSplitter-TextSplitter"
|
|
}
|
|
],
|
|
"inputs": {
|
|
"repoLink": "https://github.com/kyrolabs/awesome-langchain",
|
|
"branch": "main",
|
|
"textSplitter": "{{recursiveCharacterTextSplitter_0.data.instance}}"
|
|
},
|
|
"outputAnchors": [
|
|
{
|
|
"id": "github_0-output-github-Document",
|
|
"name": "github",
|
|
"label": "Document",
|
|
"type": "Document"
|
|
}
|
|
],
|
|
"selected": false
|
|
},
|
|
"selected": false,
|
|
"positionAbsolute": {
|
|
"x": 900.6064873076141,
|
|
"y": 12.699982761973843
|
|
},
|
|
"dragging": false
|
|
},
|
|
{
|
|
"width": 300,
|
|
"height": 278,
|
|
"id": "openAIEmbeddings_0",
|
|
"position": {
|
|
"x": 904.1187025903466,
|
|
"y": 591.9520266659382
|
|
},
|
|
"type": "customNode",
|
|
"data": {
|
|
"id": "openAIEmbeddings_0",
|
|
"label": "OpenAI Embeddings",
|
|
"name": "openAIEmbeddings",
|
|
"type": "OpenAIEmbeddings",
|
|
"baseClasses": ["OpenAIEmbeddings", "Embeddings"],
|
|
"category": "Embeddings",
|
|
"description": "OpenAI API to generate embeddings for a given text",
|
|
"inputParams": [
|
|
{
|
|
"label": "OpenAI Api Key",
|
|
"name": "openAIApiKey",
|
|
"type": "password"
|
|
}
|
|
],
|
|
"inputAnchors": [],
|
|
"inputs": {},
|
|
"outputAnchors": [
|
|
{
|
|
"id": "openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
|
|
"name": "openAIEmbeddings",
|
|
"label": "OpenAIEmbeddings",
|
|
"type": "OpenAIEmbeddings | Embeddings"
|
|
}
|
|
],
|
|
"selected": false
|
|
},
|
|
"selected": false,
|
|
"positionAbsolute": {
|
|
"x": 904.1187025903466,
|
|
"y": 591.9520266659382
|
|
},
|
|
"dragging": false
|
|
},
|
|
{
|
|
"width": 300,
|
|
"height": 472,
|
|
"id": "openAI_0",
|
|
"position": {
|
|
"x": 1268.0020638568344,
|
|
"y": -134.40583642072306
|
|
},
|
|
"type": "customNode",
|
|
"data": {
|
|
"id": "openAI_0",
|
|
"label": "OpenAI",
|
|
"name": "openAI",
|
|
"type": "OpenAI",
|
|
"baseClasses": ["OpenAI", "BaseLLM", "BaseLanguageModel"],
|
|
"category": "LLMs",
|
|
"description": "Wrapper around OpenAI large language models",
|
|
"inputParams": [
|
|
{
|
|
"label": "OpenAI Api Key",
|
|
"name": "openAIApiKey",
|
|
"type": "password"
|
|
},
|
|
{
|
|
"label": "Model Name",
|
|
"name": "modelName",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"label": "text-davinci-003",
|
|
"name": "text-davinci-003"
|
|
},
|
|
{
|
|
"label": "text-davinci-002",
|
|
"name": "text-davinci-002"
|
|
},
|
|
{
|
|
"label": "text-curie-001",
|
|
"name": "text-curie-001"
|
|
},
|
|
{
|
|
"label": "text-babbage-001",
|
|
"name": "text-babbage-001"
|
|
}
|
|
],
|
|
"default": "text-davinci-003",
|
|
"optional": true
|
|
},
|
|
{
|
|
"label": "Temperature",
|
|
"name": "temperature",
|
|
"type": "number",
|
|
"default": 0.7,
|
|
"optional": true
|
|
}
|
|
],
|
|
"inputAnchors": [],
|
|
"inputs": {
|
|
"modelName": "text-davinci-003",
|
|
"temperature": 0.7
|
|
},
|
|
"outputAnchors": [
|
|
{
|
|
"id": "openAI_0-output-openAI-OpenAI|BaseLLM|BaseLanguageModel",
|
|
"name": "openAI",
|
|
"label": "OpenAI",
|
|
"type": "OpenAI | BaseLLM | BaseLanguageModel"
|
|
}
|
|
],
|
|
"selected": false
|
|
},
|
|
"selected": false,
|
|
"positionAbsolute": {
|
|
"x": 1268.0020638568344,
|
|
"y": -134.40583642072306
|
|
},
|
|
"dragging": false
|
|
},
|
|
{
|
|
"width": 300,
|
|
"height": 577,
|
|
"id": "pineconeUpsert_0",
|
|
"position": {
|
|
"x": 1265.1304547629002,
|
|
"y": 376.13121569675315
|
|
},
|
|
"type": "customNode",
|
|
"data": {
|
|
"id": "pineconeUpsert_0",
|
|
"label": "Pinecone Upsert Document",
|
|
"name": "pineconeUpsert",
|
|
"type": "Pinecone",
|
|
"baseClasses": ["BaseRetriever"],
|
|
"category": "Vector Stores",
|
|
"description": "Upsert documents to Pinecone",
|
|
"inputParams": [
|
|
{
|
|
"label": "Pinecone Api Key",
|
|
"name": "pineconeApiKey",
|
|
"type": "password"
|
|
},
|
|
{
|
|
"label": "Pinecone Environment",
|
|
"name": "pineconeEnv",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"label": "Pinecone Index",
|
|
"name": "pineconeIndex",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"inputAnchors": [
|
|
{
|
|
"label": "Document",
|
|
"name": "document",
|
|
"type": "Document",
|
|
"id": "pineconeUpsert_0-input-document-Document"
|
|
},
|
|
{
|
|
"label": "Embeddings",
|
|
"name": "embeddings",
|
|
"type": "Embeddings",
|
|
"id": "pineconeUpsert_0-input-embeddings-Embeddings"
|
|
}
|
|
],
|
|
"inputs": {
|
|
"document": "{{github_0.data.instance}}",
|
|
"embeddings": "{{openAIEmbeddings_0.data.instance}}",
|
|
"pineconeEnv": "us-west4-gcp",
|
|
"pineconeIndex": "test"
|
|
},
|
|
"outputAnchors": [
|
|
{
|
|
"id": "pineconeUpsert_0-output-pineconeUpsert-BaseRetriever",
|
|
"name": "pineconeUpsert",
|
|
"label": "Pinecone",
|
|
"type": "BaseRetriever"
|
|
}
|
|
],
|
|
"selected": false
|
|
},
|
|
"selected": false,
|
|
"positionAbsolute": {
|
|
"x": 1265.1304547629002,
|
|
"y": 376.13121569675315
|
|
},
|
|
"dragging": false
|
|
},
|
|
{
|
|
"width": 300,
|
|
"height": 280,
|
|
"id": "conversationalRetrievalQAChain_0",
|
|
"position": {
|
|
"x": 1658.7012040564862,
|
|
"y": 197.0636463189023
|
|
},
|
|
"type": "customNode",
|
|
"data": {
|
|
"id": "conversationalRetrievalQAChain_0",
|
|
"label": "Conversational Retrieval QA Chain",
|
|
"name": "conversationalRetrievalQAChain",
|
|
"type": "ConversationalRetrievalQAChain",
|
|
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain"],
|
|
"category": "Chains",
|
|
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
|
|
"inputParams": [],
|
|
"inputAnchors": [
|
|
{
|
|
"label": "LLM",
|
|
"name": "llm",
|
|
"type": "BaseLLM",
|
|
"id": "conversationalRetrievalQAChain_0-input-llm-BaseLLM"
|
|
},
|
|
{
|
|
"label": "Vector Store Retriever",
|
|
"name": "vectorStoreRetriever",
|
|
"type": "BaseRetriever",
|
|
"id": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever"
|
|
}
|
|
],
|
|
"inputs": {
|
|
"llm": "{{openAI_0.data.instance}}",
|
|
"vectorStoreRetriever": "{{pineconeUpsert_0.data.instance}}"
|
|
},
|
|
"outputAnchors": [
|
|
{
|
|
"id": "conversationalRetrievalQAChain_0-output-conversationalRetrievalQAChain-ConversationalRetrievalQAChain|BaseChain",
|
|
"name": "conversationalRetrievalQAChain",
|
|
"label": "ConversationalRetrievalQAChain",
|
|
"type": "ConversationalRetrievalQAChain | BaseChain"
|
|
}
|
|
],
|
|
"selected": false
|
|
},
|
|
"selected": false,
|
|
"positionAbsolute": {
|
|
"x": 1658.7012040564862,
|
|
"y": 197.0636463189023
|
|
},
|
|
"dragging": false
|
|
}
|
|
],
|
|
"edges": [
|
|
{
|
|
"source": "openAI_0",
|
|
"sourceHandle": "openAI_0-output-openAI-OpenAI|BaseLLM|BaseLanguageModel",
|
|
"target": "conversationalRetrievalQAChain_0",
|
|
"targetHandle": "conversationalRetrievalQAChain_0-input-llm-BaseLLM",
|
|
"type": "buttonedge",
|
|
"id": "openAI_0-openAI_0-output-openAI-OpenAI|BaseLLM|BaseLanguageModel-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-llm-BaseLLM",
|
|
"data": {
|
|
"label": ""
|
|
}
|
|
},
|
|
{
|
|
"source": "pineconeUpsert_0",
|
|
"sourceHandle": "pineconeUpsert_0-output-pineconeUpsert-BaseRetriever",
|
|
"target": "conversationalRetrievalQAChain_0",
|
|
"targetHandle": "conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever",
|
|
"type": "buttonedge",
|
|
"id": "pineconeUpsert_0-pineconeUpsert_0-output-pineconeUpsert-BaseRetriever-conversationalRetrievalQAChain_0-conversationalRetrievalQAChain_0-input-vectorStoreRetriever-BaseRetriever",
|
|
"data": {
|
|
"label": ""
|
|
}
|
|
},
|
|
{
|
|
"source": "openAIEmbeddings_0",
|
|
"sourceHandle": "openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
|
|
"target": "pineconeUpsert_0",
|
|
"targetHandle": "pineconeUpsert_0-input-embeddings-Embeddings",
|
|
"type": "buttonedge",
|
|
"id": "openAIEmbeddings_0-openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings-pineconeUpsert_0-pineconeUpsert_0-input-embeddings-Embeddings",
|
|
"data": {
|
|
"label": ""
|
|
}
|
|
},
|
|
{
|
|
"source": "github_0",
|
|
"sourceHandle": "github_0-output-github-Document",
|
|
"target": "pineconeUpsert_0",
|
|
"targetHandle": "pineconeUpsert_0-input-document-Document",
|
|
"type": "buttonedge",
|
|
"id": "github_0-github_0-output-github-Document-pineconeUpsert_0-pineconeUpsert_0-input-document-Document",
|
|
"data": {
|
|
"label": ""
|
|
}
|
|
},
|
|
{
|
|
"source": "recursiveCharacterTextSplitter_0",
|
|
"sourceHandle": "recursiveCharacterTextSplitter_0-output-recursiveCharacterTextSplitter-RecursiveCharacterTextSplitter|TextSplitter",
|
|
"target": "github_0",
|
|
"targetHandle": "github_0-input-textSplitter-TextSplitter",
|
|
"type": "buttonedge",
|
|
"id": "recursiveCharacterTextSplitter_0-recursiveCharacterTextSplitter_0-output-recursiveCharacterTextSplitter-RecursiveCharacterTextSplitter|TextSplitter-github_0-github_0-input-textSplitter-TextSplitter",
|
|
"data": {
|
|
"label": ""
|
|
}
|
|
}
|
|
]
|
|
}
|