Files
griptape-ai-ComfyUI-Griptape/examples/retrieval_augmented_generation.json
T

1302 lines
25 KiB
JSON

{
"last_node_id": 84,
"last_link_id": 129,
"nodes": [
{
"id": 60,
"type": "Griptape Rerank Driver: Cohere",
"pos": {
"0": -400,
"1": 1475
},
"size": {
"0": 378,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "env",
"type": "ENV",
"link": null
}
],
"outputs": [
{
"name": "DRIVER",
"type": "RERANK_DRIVER",
"links": [
91
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Rerank Driver: Cohere"
},
"widgets_values": [
"rerank-english-v3.0",
5,
"COHERE_API_KEY"
]
},
{
"id": 61,
"type": "Griptape RAG Rerank: Text Chunks Module",
"pos": {
"0": 0,
"1": 1475
},
"size": {
"0": 350,
"1": 50
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "rerank_driver",
"type": "RERANK_DRIVER",
"link": 91
}
],
"outputs": [
{
"name": "MODULE",
"type": "MODULE",
"links": [
94
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape RAG Rerank: Text Chunks Module"
}
},
{
"id": 53,
"type": "Griptape RAG Retrieve: Text Loader Module",
"pos": {
"0": -950,
"1": 750
},
"size": {
"0": 350,
"1": 150
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "vector_store_driver",
"type": "VECTOR_STORE_DRIVER",
"link": 78
},
{
"name": "text",
"type": "STRING",
"link": 73,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "MODULE",
"type": "MODULE_LIST",
"links": [
75,
97
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape RAG Retrieve: Text Loader Module"
},
"widgets_values": [
"TextLoader",
"pencilpushers",
-1,
"",
"https://griptape.ai"
]
},
{
"id": 54,
"type": "Reroute",
"pos": {
"0": -1150,
"1": 600
},
"size": [
199.6,
26
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 102
}
],
"outputs": [
{
"name": "VECTOR_STORE_DRIVER",
"type": "VECTOR_STORE_DRIVER",
"links": [
77,
78
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
}
},
{
"id": 11,
"type": "Griptape Vector Store Driver: Local",
"pos": {
"0": -2400,
"1": 600
},
"size": {
"0": 441,
"1": 102
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "env",
"type": "ENV",
"link": null
},
{
"name": "embedding_driver",
"type": "EMBEDDING_DRIVER",
"link": 56
}
],
"outputs": [
{
"name": "DRIVER",
"type": "VECTOR_STORE_DRIVER",
"links": [
20,
99,
102
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Vector Store Driver: Local"
},
"widgets_values": [
false,
"griptape_local_vector_file.txt"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 63,
"type": "Reroute",
"pos": {
"0": -1650,
"1": 1300
},
"size": [
199.6,
26
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 99
}
],
"outputs": [
{
"name": "VECTOR_STORE_DRIVER",
"type": "VECTOR_STORE_DRIVER",
"links": [
101
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
}
},
{
"id": 52,
"type": "Griptape Create: Text",
"pos": {
"0": -1600,
"1": 750
},
"size": {
"0": 600,
"1": 350
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": [
73
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Text"
},
"widgets_values": [
"Welcome to Pencil Pushers Anon - Your Paperwork Allies!\nAt Pencil Pushers Anon, we understand that navigating the maze of paperwork can be overwhelming and time-consuming. That's why we're here to lighten your load and guide you through the process with ease and efficiency.\nOur Services:\n\nForm Filling Wizardry: From tax returns to loan applications, we've got you covered.\nDocument Organization: We'll help you sort and manage your important papers.\nDeadline Tracking: Never miss an important submission date again.\nPersonalized Assistance: Our experts provide one-on-one support tailored to your needs.\n\nWhy Choose Us?\n\nExpertise: Our team of seasoned professionals knows the ins and outs of various bureaucratic processes.\nTime-Saving: Focus on what matters to you while we handle the paperwork.\nAccuracy: We pride ourselves on our attention to detail, ensuring error-free submissions.\nConfidentiality: Your information is safe with us, guaranteed.\n\nWhether you're an individual drowning in personal admin or a small business owner juggling multiple forms, Pencil Pushers Anon is here to rescue you from paperwork purgatory.\nDon't let forms and applications bog you down. Let us push the pencils for you!\nContact us today for a free consultation and reclaim your time from tedious paperwork.\nPencil Pushers Anon: Because life's too short for long forms!"
]
},
{
"id": 58,
"type": "Griptape RAG Retrieve: Text Loader Module",
"pos": {
"0": -1050,
"1": 1300
},
"size": {
"0": 516.5999755859375,
"1": 154
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "vector_store_driver",
"type": "VECTOR_STORE_DRIVER",
"link": 101
},
{
"name": "text",
"type": "STRING",
"link": null,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "MODULE",
"type": "MODULE_LIST",
"links": [
98
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape RAG Retrieve: Text Loader Module"
},
"widgets_values": [
"WebLoader",
"default",
5,
"",
"https://griptape.ai"
]
},
{
"id": 62,
"type": "Griptape RAG: Engine",
"pos": {
"0": 600,
"1": 1100
},
"size": {
"0": 430.8000183105469,
"1": 86
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "query_stage_modules",
"type": "MODULE_LIST",
"link": null
},
{
"name": "retrieval_stage_modules",
"type": "MODULE_LIST",
"link": 92
},
{
"name": "rerank_module",
"type": "MODULE",
"link": 94
},
{
"name": "response_stage_modules",
"type": "MODULE_LIST",
"link": 128
}
],
"outputs": [
{
"name": "RAG_ENGINE",
"type": "RAG_ENGINE",
"links": [
109
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape RAG: Engine"
}
},
{
"id": 27,
"type": "Griptape Create: Text",
"pos": {
"0": -1600,
"1": 200
},
"size": {
"0": 600,
"1": 250
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": [
61
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Text"
},
"widgets_values": [
"Wonderbread.ai is a fictitional company that specializes in creating balloon animals for the future.\nThey are often confused with the bread company, Wonder Bread, but they are not the same.\nSome of the services that Wonderbread.ai offers include:\n- Balloon animal creation\n- Balloon animal delivery\n- Balloon animal training\n- Balloon animal parties\n- Balloon animal events\n- Balloon animal consulting\n- Balloon animal workshops\n- Balloon animal classes\n- Balloon animal seminars\n- Balloon animal webinars\n- Balloon animal conferences\n\nWonderbread.ai is a leader in the balloon animal industry and has been in business for over 100 years.\nThey have a team of experts who are dedicated to creating the best balloon animals in the world.\nIf you are interested in learning more about Wonderbread.ai, please visit their website at www.wonderbread.ai/balloonanimals\n"
]
},
{
"id": 46,
"type": "Griptape RAG Retrieve: Text Loader Module",
"pos": {
"0": -900,
"1": 350
},
"size": {
"0": 350,
"1": 150
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "vector_store_driver",
"type": "VECTOR_STORE_DRIVER",
"link": 77
},
{
"name": "text",
"type": "STRING",
"link": 61,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "MODULE",
"type": "MODULE_LIST",
"links": [
96
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape RAG Retrieve: Text Loader Module"
},
"widgets_values": [
"TextLoader",
"wonderbread",
-1,
"",
"https://griptape.ai"
]
},
{
"id": 73,
"type": "Griptape Prompt Driver: OpenAI",
"pos": {
"0": -875,
"1": 1850
},
"size": {
"0": 378,
"1": 250
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "DRIVER",
"type": "PROMPT_DRIVER",
"links": [
112
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Prompt Driver: OpenAI"
},
"widgets_values": [
"gpt-4o",
10,
0.1,
2048,
"fixed",
true,
-1,
"default",
"OPENAI_API_KEY"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 50,
"type": "Griptape Combine: RAG Module List",
"pos": {
"0": -250,
"1": 675
},
"size": {
"0": 300,
"1": 100
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "module_1",
"type": "MODULE_LIST",
"link": 96
},
{
"name": "module_2",
"type": "MODULE_LIST",
"link": 97
},
{
"name": "module_3",
"type": "MODULE_LIST",
"link": 98
},
{
"name": "module_4",
"type": "MODULE_LIST",
"link": null
}
],
"outputs": [
{
"name": "MODULE_LIST",
"type": "MODULE_LIST",
"links": [
92
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Combine: RAG Module List"
}
},
{
"id": 38,
"type": "Griptape RAG Response: Prompt Module",
"pos": {
"0": -450,
"1": 1850
},
"size": {
"0": 453.5999755859375,
"1": 46
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "prompt_driver",
"type": "PROMPT_DRIVER",
"link": 112
},
{
"name": "rulesets",
"type": "RULESET",
"link": null
}
],
"outputs": [
{
"name": "MODULE",
"type": "MODULE_LIST",
"links": [
126
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape RAG Response: Prompt Module"
}
},
{
"id": 71,
"type": "Griptape Tool: RAG",
"pos": {
"0": 1050,
"1": 1100
},
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "rag_engine",
"type": "RAG_ENGINE",
"link": 109
}
],
"outputs": [
{
"name": "TOOL",
"type": "TOOL_LIST",
"links": [
110
],
"slot_index": 0,
"shape": 3
},
{
"name": "RULES",
"type": "RULESET",
"links": [
122
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Tool: RAG"
},
"widgets_values": [
"Contains information about companies"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 28,
"type": "Griptape Create: Agent",
"pos": {
"0": 1450,
"1": 1000
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": null
},
{
"name": "config",
"type": "CONFIG",
"link": null
},
{
"name": "tools",
"type": "TOOL_LIST",
"link": 110
},
{
"name": "rulesets",
"type": "RULESET",
"link": 122
},
{
"name": "input_string",
"type": "STRING",
"link": null,
"widget": {
"name": "input_string"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": [
124
],
"slot_index": 0,
"shape": 3
},
{
"name": "AGENT",
"type": "AGENT",
"links": [
123
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Agent"
},
"widgets_values": [
"",
"What company works with balloons?"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 82,
"type": "Griptape Display: Text",
"pos": {
"0": 2025,
"1": 1025
},
"size": [
400,
200
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "INPUT",
"type": "STRING",
"link": 124,
"widget": {
"name": "INPUT"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Display: Text"
},
"widgets_values": [
"",
"The company that works with balloons is Wonderbread.ai. They specialize in creating balloon animals and offer a wide range of balloon-related services. These services include balloon animal creation, delivery, training, parties, events, consulting, workshops, classes, seminars, webinars, and conferences[1].\n\n[1] Excerpt: Wonderbread.ai - Balloon Animal Services"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 83,
"type": "Griptape Display: Text",
"pos": {
"0": 2000,
"1": 1375
},
"size": [
575,
325
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "INPUT",
"type": "STRING",
"link": 125,
"widget": {
"name": "INPUT"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Display: Text"
},
"widgets_values": [
"",
"Griptape is a company that works with AI technology. They offer a comprehensive platform for building, deploying, and managing AI-powered applications in the cloud. Griptape's services include:\n\n1. A development framework for AI applications\n2. Cloud deployment solutions\n3. Monitoring tools for AI applications\n4. AI consulting services\n\nGriptape's platform is designed to support the entire lifecycle of AI-powered applications, from development to deployment and management in cloud environments[1].\n\n[1] Excerpt: Griptape - Build, deploy, and manage end-to-end AI applications in the cloud."
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 81,
"type": "Griptape Run: Agent",
"pos": {
"0": 1450,
"1": 1375
},
"size": [
400,
200
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": 123
},
{
"name": "input_string",
"type": "STRING",
"link": null,
"widget": {
"name": "input_string"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": [
125
],
"shape": 3,
"slot_index": 0
},
{
"name": "AGENT",
"type": "AGENT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Run: Agent"
},
"widgets_values": [
"",
"What company works with AI technology?"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 44,
"type": "Griptape Embedding Driver: OpenAI",
"pos": {
"0": -2850,
"1": 600
},
"size": {
"0": 415.8000183105469,
"1": 82
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "env",
"type": "ENV",
"link": null
}
],
"outputs": [
{
"name": "DRIVER",
"type": "EMBEDDING_DRIVER",
"links": [
56
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Embedding Driver: OpenAI"
},
"widgets_values": [
"text-embedding-3-small",
"OPENAI_API_KEY"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 74,
"type": "Griptape RAG Response: Footnote Prompt Module",
"pos": {
"0": -375,
"1": 1950
},
"size": {
"0": 378,
"1": 50
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "prompt_driver",
"type": "PROMPT_DRIVER",
"link": null
},
{
"name": "rulesets",
"type": "RULESET",
"link": null
}
],
"outputs": [
{
"name": "MODULE",
"type": "MODULE_LIST",
"links": [
129
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape RAG Response: Footnote Prompt Module"
}
},
{
"id": 84,
"type": "Griptape Combine: RAG Module List",
"pos": {
"0": 150,
"1": 1875
},
"size": {
"0": 275,
"1": 75
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "module_1",
"type": "MODULE_LIST",
"link": 126
},
{
"name": "module_2",
"type": "MODULE_LIST",
"link": 129
},
{
"name": "module_3",
"type": 0,
"link": null
}
],
"outputs": [
{
"name": "MODULE_LIST",
"type": "MODULE_LIST",
"links": [
128
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Griptape Combine: RAG Module List"
}
}
],
"links": [
[
20,
11,
0,
24,
0,
"VECTOR_STORE_DRIVER"
],
[
38,
24,
0,
13,
1,
"MODULE_LIST"
],
[
39,
34,
0,
13,
2,
"MODULE_LIST"
],
[
56,
44,
0,
11,
1,
"EMBEDDING_DRIVER"
],
[
61,
27,
0,
46,
1,
"STRING"
],
[
73,
52,
0,
53,
1,
"STRING"
],
[
75,
53,
0,
50,
0,
"MODULE_LIST"
],
[
77,
54,
0,
46,
0,
"VECTOR_STORE_DRIVER"
],
[
78,
54,
0,
53,
0,
"VECTOR_STORE_DRIVER"
],
[
91,
60,
0,
61,
0,
"RERANK_DRIVER"
],
[
92,
50,
0,
62,
1,
"MODULE_LIST"
],
[
94,
61,
0,
62,
2,
"MODULE"
],
[
96,
46,
0,
50,
0,
"MODULE_LIST"
],
[
97,
53,
0,
50,
1,
"MODULE_LIST"
],
[
98,
58,
0,
50,
2,
"MODULE_LIST"
],
[
99,
11,
0,
63,
0,
"*"
],
[
101,
63,
0,
58,
0,
"VECTOR_STORE_DRIVER"
],
[
102,
11,
0,
54,
0,
"*"
],
[
109,
62,
0,
71,
0,
"RAG_ENGINE"
],
[
110,
71,
0,
28,
2,
"TOOL_LIST"
],
[
112,
73,
0,
38,
0,
"PROMPT_DRIVER"
],
[
122,
71,
1,
28,
3,
"RULESET"
],
[
123,
28,
1,
81,
0,
"AGENT"
],
[
124,
28,
0,
82,
0,
"STRING"
],
[
125,
81,
0,
83,
0,
"STRING"
],
[
126,
38,
0,
84,
0,
"MODULE_LIST"
],
[
128,
84,
0,
62,
3,
"MODULE_LIST"
],
[
129,
74,
0,
84,
1,
"MODULE_LIST"
]
],
"groups": [
{
"title": "Wonderbread.ai",
"bounding": [
-1650,
100,
1150,
450
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "Pencil Pushers Anon",
"bounding": [
-1650,
650,
1150,
500
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "Griptape Website",
"bounding": [
-1300,
1200,
800,
300
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"title": "Rerank Results",
"bounding": [
-450,
1375,
860,
217
],
"color": "#8A8",
"font_size": 24,
"flags": {}
},
{
"title": "Response Stage",
"bounding": [
-900,
1750,
1000,
400
],
"color": "#a1309b",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.5131581182307068,
"offset": [
2061.8598453975965,
-288.65299632065705
]
}
},
"version": 0.4
}