Merge pull request #2 from Isulion/revert-1-main

Revert "new node for you"
This commit is contained in:
Isulion
2024-10-31 19:23:39 +01:00
committed by GitHub
19 changed files with 71 additions and 7909 deletions
+8 -10
View File
@@ -1,18 +1,16 @@
# ComfyUI Isulion LLM Chain
An advanced ComfyUI extension that enables multi-agent LLM conversations using Ollama models.
# ComfyUI_Isulion Random Prompt Generator
![Example Workflow](https://github.com/user-attachments/assets/ba6d7eaa-c068-4f88-a2c9-fb07aa95052b)
--------------
ComfyUI Nodes that generate prompts with the help of LLM from local or remote Ollama.
--------------
## 🌟 Features
- Create complex multi-agent conversations using different LLM personas
- Support for local Ollama models
- Flexible chain configurations from simple to complex (3-agent, 5-agent, or 10-agent chains)
- Each agent can be assigned unique roles and perspectives
- Real-time conversation visualization
-system prompt for each agent/node
# Requirement :
Recomanded environnement variables :
- OLLAMA_KEEP_ALIVE 0
- OLLAMA_ORIGINS *
ComfyUI installed node :
- Ollama_generator
+13 -15
View File
@@ -1,15 +1,13 @@
from .isulion_prompt_generator import IsulionPromptGenerator
from .isulion_OllamaGenerate import OllamaGenerate
from .ixulion_ollamaModelSelect import OllamaModelSelector
NODE_CLASS_MAPPINGS = {
"IsulionPromptGenerator": IsulionPromptGenerator,
"OllamaGenerate": OllamaGenerate,
"OllamaModelSelector": OllamaModelSelector
}
NODE_DISPLAY_NAME_MAPPINGS = {
"IsulionPromptGenerator": "Isulion Prompt Generator",
"OllamaGenerate": "Ollama Generate",
"OllamaModelSelector": "Ixulion Ollama Model Selector"
}
from .isulion_prompt_generator import IsulionPromptGenerator
from .isulion_OllamaGenerate import OllamaGenerate
NODE_CLASS_MAPPINGS = {
"IsulionPromptGenerator": IsulionPromptGenerator,
"OllamaGenerate": OllamaGenerate
}
# Optional: Provide a custom display name for the node
NODE_DISPLAY_NAME_MAPPINGS = {
"IsulionPromptGenerator": "Isulion Prompt Generator",
"OllamaGenerate": "Isulion Ollama Generate"
}
+50 -70
View File
@@ -1,70 +1,50 @@
from ollama import Client
import logging
class OllamaGenerate:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"text": ("STRING", {
"multiline": True,
"default": "What is Art?",
"tooltip": "Input text to send to Ollama"
}),
"system": ("STRING", {
"multiline": True,
"default": "",
"tooltip": "System prompt to set the behavior and context for the model"
}),
"model_name": ("STRING", {
"default": "dolphin-llama3",
"tooltip": "Name of the Ollama model to use"
}),
"host_url": ("STRING", {
"default": " http://localhost:11434",
"tooltip": "Ollama server URL (e.g., http://localhost:11434)"
}),
"keep_alive": (["true", "false"], {
"default": "true",
"tooltip": "Keep model loaded in memory (true) or unload after each generation (false)"
}),
},
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("response",)
FUNCTION = "generate"
CATEGORY = "Isulion/Ollama"
def generate(self, text, system, model_name, host_url, keep_alive):
try:
# Create client with provided host URL
client = Client(host=host_url)
# Convert keep_alive string to appropriate value
keep_alive_value = "5m" if keep_alive == "true" else "0m"
# Generate response using the specified model
response = client.generate(
model=model_name,
prompt=text,
system=system, # Added system prompt
keep_alive=keep_alive_value
)
return (response['response'],)
except Exception as e:
logging.error(f"Error generating response from Ollama: {str(e)}")
return (f"Error: {str(e)}",)
NODE_CLASS_MAPPINGS = {
"OllamaGenerate": OllamaGenerate,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"OllamaGenerate": "Ollama Generate",
}
from ollama import Client
class OllamaGenerate:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"prompt": ("STRING", {
"multiline": True,
"default": "What is Art?"
}),
"url": ("STRING", {
"multiline": False,
"default": "http://127.0.0.1:11434"
}),
"model": ((), {}),
},
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("response",)
FUNCTION = "ollama_generate"
CATEGORY = "Ollama"
def ollama_generate(self, prompt, url, model):
# Keep_alive is now hardcoded to 0 (not visible to user)
keep_alive = 0
client = Client(host=url)
# Generate the response from the model
response = client.generate(
model=model,
prompt=prompt,
keep_alive=f"{keep_alive}m" # keep_alive is always 0
)
return (response['response'],)
# Register the node with your node mapping system
NODE_CLASS_MAPPINGS = {
"OllamaGenerate": OllamaGenerate,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"OllamaGenerate": "Ollama Generate",
}
-65
View File
@@ -1,65 +0,0 @@
import subprocess
import logging
class OllamaModelSelector:
@classmethod
def INPUT_TYPES(s):
try:
# Run ollama list command
result = subprocess.run(['ollama', 'list'], capture_output=True, text=True)
if result.returncode == 0:
# Parse the output, skipping the header line
lines = result.stdout.strip().split('\n')[1:]
models = []
for line in lines:
if line.strip(): # Skip empty lines
# First column before whitespace is the model name
model_name = line.split()[0]
# Remove ':latest' suffix if present
model_name = model_name.replace(':latest', '')
models.append(model_name)
# Sort models alphabetically for better UX
models.sort()
if not models: # If no models found after parsing
models = ["No models installed - Use 'ollama pull' to install models"]
else:
models = ["Error running ollama list command"]
logging.warning(f"Failed to get models from ollama list: {result.stderr}")
except FileNotFoundError:
models = ["Ollama not found - Is it installed?"]
logging.error("Ollama command not found. Please ensure Ollama is installed and in PATH")
except Exception as e:
models = ["Error getting model list"]
logging.error(f"Error getting Ollama models: {str(e)}")
return {
"required": {
"model_name": (models, {
"default": models[2] if models else "No models found",
"tooltip": "Select an Ollama model to use"
}),
}
}
RETURN_TYPES = ("STRING",) # Simple string return type
RETURN_NAMES = ("MODEL",)
FUNCTION = "get_model"
CATEGORY = "Isulion/Ollama"
DESCRIPTION = "Select an Ollama model from installed models"
def get_model(self, model_name):
# Return just the model name string
return (model_name,) # Return as tuple with single string value
NODE_CLASS_MAPPINGS = {
"OllamaModelSelector": OllamaModelSelector
}
NODE_DISPLAY_NAME_MAPPINGS = {
"OllamaModelSelector": "Ollama Model Selector"
}
-68
View File
@@ -1,68 +0,0 @@
import subprocess
import logging
class OllamaModelSelector:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(s):
try:
# Run ollama list command
result = subprocess.run(['ollama', 'list'], capture_output=True, text=True)
if result.returncode == 0:
# Parse the output, skipping the header line
lines = result.stdout.strip().split('\n')[1:]
models = []
for line in lines:
if line.strip(): # Skip empty lines
# First column before whitespace is the model name
model_name = line.split()[0]
# Remove ':latest' suffix if present
model_name = model_name.replace(':latest', '')
models.append(model_name)
# Sort models alphabetically for better UX
models.sort()
if not models: # If no models found after parsing
models = ["No models installed - Use 'ollama pull' to install models"]
else:
models = ["Error running ollama list command"]
logging.warning(f"Failed to get models from ollama list: {result.stderr}")
except FileNotFoundError:
models = ["Ollama not found - Is it installed?"]
logging.error("Ollama command not found. Please ensure Ollama is installed and in PATH")
except Exception as e:
models = ["Error getting model list"]
logging.error(f"Error getting Ollama models: {str(e)}")
return {
"required": {
"model_name": (models, {
"default": "dolphin-llama3" if models else "No models found",
"tooltip": "Select an Ollama model to use"
}),
}
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("MODEL_NAME",)
FUNCTION = "get_model"
CATEGORY = "Isulion/Ollama"
DESCRIPTION = "Select an Ollama model from installed models"
def get_model(self, model_name):
return (model_name,)
# Fix: Make sure the key in NODE_CLASS_MAPPINGS matches the key in NODE_DISPLAY_NAME_MAPPINGS
NODE_CLASS_MAPPINGS = {
"OllamaModelSelector": OllamaModelSelector
}
NODE_DISPLAY_NAME_MAPPINGS = {
"OllamaModelSelector": "Ollama Model Selector"
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,228 +0,0 @@
{
"nodes": [
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -1200,
"1": -4800
}
},
{
"id": 337,
"type": "OllamaModelSelector",
"pos": {
"0": 1200,
"1": -4800
}
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -1200,
"1": -4700
}
},
{
"id": 348,
"type": "OllamaGenerate",
"pos": {
"0": -800,
"1": -4700
}
},
{
"id": 353,
"type": "JjkShowText",
"pos": {
"0": -1000,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 349,
"type": "OllamaGenerate",
"pos": {
"0": -400,
"1": -4700
}
},
{
"id": 354,
"type": "JjkShowText",
"pos": {
"0": -600,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 350,
"type": "OllamaGenerate",
"pos": {
"0": 0,
"1": -4700
}
},
{
"id": 355,
"type": "JjkShowText",
"pos": {
"0": -200,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 351,
"type": "OllamaGenerate",
"pos": {
"0": 400,
"1": -4700
}
},
{
"id": 356,
"type": "JjkShowText",
"pos": {
"0": 200,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 352,
"type": "OllamaGenerate",
"pos": {
"0": 800,
"1": -4700
}
},
{
"id": 357,
"type": "JjkShowText",
"pos": {
"0": 600,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 361,
"type": "OllamaGenerate",
"pos": {
"0": 1600,
"1": -4700
}
},
{
"id": 358,
"type": "JjkShowText",
"pos": {
"0": 1400,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 362,
"type": "OllamaGenerate",
"pos": {
"0": 2000,
"1": -4700
}
},
{
"id": 359,
"type": "JjkShowText",
"pos": {
"0": 1800,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 363,
"type": "OllamaGenerate",
"pos": {
"0": 2400,
"1": -4700
}
},
{
"id": 360,
"type": "JjkShowText",
"pos": {
"0": 2200,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 364,
"type": "OllamaGenerate",
"pos": {
"0": 2800,
"1": -4700
}
},
{
"id": 366,
"type": "JjkShowText",
"pos": {
"0": 2600,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
},
{
"id": 365,
"type": "OllamaGenerate",
"pos": {
"0": 3200,
"1": -4700
}
},
{
"id": 367,
"type": "JjkShowText",
"pos": {
"0": 3000,
"1": -4700
},
"size": {
"0": 180,
"1": 200
}
}
]
}
@@ -1,456 +0,0 @@
{
"last_node_id": 370,
"last_link_id": 512,
"nodes": [
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -1200,
"1": -4700
},
"size": {
"0": 247.32920837402344,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL_NAME",
"type": "STRING",
"links": [
462,
463,
464,
465,
466
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-llama3"
]
},
{
"id": 337,
"type": "OllamaModelSelector",
"pos": {
"0": 1200,
"1": -4700
},
"size": {
"0": 247.32920837402344,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL_NAME",
"type": "STRING",
"links": [
469,
471,
473,
478,
481
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-phi"
]
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -1200,
"1": -4500
},
"size": {
"0": 225.64781188964844,
"1": 118.71192932128906
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
487
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkText"
},
"widgets_values": [
"What is the future of artificial intelligence?"
]
},
{
"id": 348,
"type": "OllamaGenerate",
"pos": {
"0": -800,
"1": -4500
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 3,
"mode": 0,
"title": "Scientist 1",
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 487,
"widget": {
"name": "text"
}
},
{
"name": "model_name",
"type": "STRING",
"link": 462,
"widget": {
"name": "model_name"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
488,
489
]
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
}
},
{
"id": 353,
"type": "JjkShowText",
"pos": {
"0": -800,
"1": -4200
},
"size": {
"0": 400,
"1": 300
},
"flags": {},
"order": 4,
"mode": 0,
"title": "Scientific Analysis 1",
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 489,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkShowText"
}
}
],
"links": [
[
462,
309,
0,
348,
1,
"STRING"
],
[
463,
309,
0,
349,
1,
"STRING"
],
[
464,
309,
0,
350,
1,
"STRING"
],
[
465,
309,
0,
351,
1,
"STRING"
],
[
466,
309,
0,
352,
1,
"STRING"
],
[
469,
337,
0,
361,
1,
"STRING"
],
[
471,
337,
0,
362,
1,
"STRING"
],
[
473,
337,
0,
363,
1,
"STRING"
],
[
478,
337,
0,
364,
1,
"STRING"
],
[
481,
337,
0,
365,
1,
"STRING"
],
[
487,
313,
0,
348,
0,
"STRING"
],
[
488,
348,
0,
349,
0,
"STRING"
],
[
489,
348,
0,
353,
0,
"STRING"
],
[
490,
349,
0,
350,
0,
"STRING"
],
[
491,
349,
0,
354,
0,
"STRING"
],
[
492,
350,
0,
351,
0,
"STRING"
],
[
493,
350,
0,
355,
0,
"STRING"
],
[
494,
350,
0,
356,
0,
"STRING"
],
[
495,
351,
0,
352,
0,
"STRING"
],
[
496,
352,
0,
361,
0,
"STRING"
],
[
498,
361,
0,
362,
0,
"STRING"
],
[
499,
361,
0,
358,
0,
"STRING"
],
[
500,
362,
0,
363,
0,
"STRING"
],
[
501,
362,
0,
359,
0,
"STRING"
],
[
502,
363,
0,
364,
0,
"STRING"
],
[
503,
363,
0,
360,
0,
"STRING"
],
[
504,
364,
0,
365,
0,
"STRING"
],
[
505,
364,
0,
366,
0,
"STRING"
],
[
506,
365,
0,
367,
0,
"STRING"
],
[
511,
352,
0,
357,
0,
"STRING"
],
[
512,
365,
0,
367,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5131581182307068,
"offset": [
1450.2412393345642,
5495.215919783973
]
}
},
"version": 0.4
}
@@ -1,433 +0,0 @@
{
"last_node_id": 350,
"last_link_id": 490,
"nodes": [
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -1200,
"1": -4700
},
"size": {
"0": 247.32920837402344,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL_NAME",
"type": "STRING",
"links": [
442,
462,
463,
464,
465
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-mixtral"
]
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -1200,
"1": -4500
},
"size": {
"0": 225.64781188964844,
"1": 118.71192932128906
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
487
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkText"
},
"widgets_values": [
"What is the future of artificial intelligence?"
]
},
{
"id": 348,
"type": "OllamaGenerate",
"pos": {
"0": -800,
"1": -4500
},
"size": [
400,
200
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 487,
"widget": {
"name": "text"
}
},
{
"name": "model_name",
"type": "STRING",
"link": 462,
"widget": {
"name": "model_name"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
488,
489
]
}
],
"title": "Scientist",
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the question",
"You are a scientific expert. Analyze topics with a focus on empirical evidence, research data, and scientific methodology. Be precise and analytical in your responses.",
"dolphin-mixtral",
"http://localhost:11434",
"true"
]
},
{
"id": 349,
"type": "OllamaGenerate",
"pos": {
"0": -300,
"1": -4500
},
"size": [
400,
200
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 488,
"widget": {
"name": "text"
}
},
{
"name": "model_name",
"type": "STRING",
"link": 463,
"widget": {
"name": "model_name"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
490,
491
]
}
],
"title": "Philosopher",
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Contemplate implications",
"You are a philosophical thinker. Consider the ethical, existential, and societal implications of topics. Explore deep questions and paradoxes while maintaining a balanced perspective.",
"dolphin-mixtral",
"http://localhost:11434",
"true"
]
},
{
"id": 350,
"type": "OllamaGenerate",
"pos": {
"0": 200,
"1": -4500
},
"size": [
400,
200
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 490,
"widget": {
"name": "text"
}
},
{
"name": "model_name",
"type": "STRING",
"link": 464,
"widget": {
"name": "model_name"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
492,
493
]
}
],
"title": "Futurist",
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Project future scenarios",
"You are a futurist and technology forecaster. Analyze trends, make predictions, and explore possible future scenarios. Consider both opportunities and challenges while maintaining a practical perspective.",
"dolphin-mixtral",
"http://localhost:11434",
"true"
]
},
{
"id": 323,
"type": "JjkShowText",
"pos": {
"0": -800,
"1": -4200
},
"size": {
"0": 400,
"1": 300
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 489,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"title": "Scientific Analysis"
},
{
"id": 324,
"type": "JjkShowText",
"pos": {
"0": -300,
"1": -4200
},
"size": {
"0": 400,
"1": 300
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 491,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"title": "Philosophical Perspective"
},
{
"id": 325,
"type": "JjkShowText",
"pos": {
"0": 200,
"1": -4200
},
"size": {
"0": 400,
"1": 300
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 492,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"title": "Future Predictions"
}
],
"links": [
[
462,
309,
0,
348,
1,
"STRING"
],
[
463,
309,
0,
349,
1,
"STRING"
],
[
464,
309,
0,
350,
1,
"STRING"
],
[
487,
313,
0,
348,
0,
"STRING"
],
[
488,
348,
0,
349,
0,
"STRING"
],
[
489,
348,
0,
323,
0,
"STRING"
],
[
490,
349,
0,
350,
0,
"STRING"
],
[
491,
349,
0,
324,
0,
"STRING"
],
[
492,
350,
0,
325,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
1200,
4700
]
}
},
"version": 0.4
}
@@ -1,294 +0,0 @@
{
"last_node_id": 320,
"last_link_id": 450,
"nodes": [
{
"id": 312,
"type": "JjkShowText",
"pos": {
"0": 800,
"1": -4548
},
"size": {
"0": 314.3045959472656,
"1": 393.1268310546875
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 447,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
}
},
{
"id": 305,
"type": "OllamaGenerate",
"pos": {
"0": -200,
"1": -4531
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 442,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 444,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
445
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"What is Art?",
"http://127.0.0.1:11434"
]
},
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -800,
"1": -4560
},
"size": {
"0": 378,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "STRING",
"links": [
442
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-phi"
]
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -800,
"1": -4432
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
444
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkText"
},
"widgets_values": [
"What is the nature of consciousness?"
]
},
{
"id": 319,
"type": "OllamaGenerate",
"pos": {
"0": 300,
"1": -4531
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 446,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 445,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
447
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434"
]
},
{
"id": 320,
"type": "OllamaModelSelector",
"pos": {
"0": -200,
"1": -4660
},
"size": {
"0": 378,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "STRING",
"links": [
446
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"llama2"
]
}
],
"links": [
[
442,
309,
0,
305,
0,
"STRING"
],
[
444,
313,
0,
305,
1,
"STRING"
],
[
445,
305,
0,
319,
1,
"STRING"
],
[
446,
320,
0,
319,
0,
"STRING"
],
[
447,
319,
0,
312,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909097,
"offset": [
1217.8964059894877,
4740.859219258694
]
},
"groupNodes": {}
},
"version": 0.4
}
@@ -1,301 +0,0 @@
{
"last_node_id": 320,
"last_link_id": 450,
"nodes": [
{
"id": 312,
"type": "JjkShowText",
"pos": {
"0": 800,
"1": -4548
},
"size": {
"0": 314.3045959472656,
"1": 393.1268310546875
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 447,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
""
]
},
{
"id": 305,
"type": "OllamaGenerate",
"pos": {
"0": -200,
"1": -4531
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 442,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 444,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
445
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"What is Art?",
"http://127.0.0.1:11434",
"http://localhost:11434",
5
]
},
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -800,
"1": -4560
},
"size": {
"0": 378,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "STRING",
"links": [
442
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-phi"
]
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -800,
"1": -4432
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
444
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkText"
},
"widgets_values": [
"What is the nature of consciousness?"
]
},
{
"id": 319,
"type": "OllamaGenerate",
"pos": {
"0": 300,
"1": -4531
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 446,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 445,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
447
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
5
]
},
{
"id": 320,
"type": "OllamaModelSelector",
"pos": {
"0": -199,
"1": -4660
},
"size": {
"0": 378,
"1": 58
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "STRING",
"links": [
446
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphi"
]
}
],
"links": [
[
442,
309,
0,
305,
0,
"STRING"
],
[
444,
313,
0,
305,
1,
"STRING"
],
[
445,
305,
0,
319,
1,
"STRING"
],
[
446,
320,
0,
319,
0,
"STRING"
],
[
447,
319,
0,
312,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.6830134553650705,
"offset": [
1164.3825152468874,
4968.847162162794
]
},
"groupNodes": {}
},
"version": 0.4
}
@@ -1,673 +0,0 @@
{
"last_node_id": 334,
"last_link_id": 465,
"nodes": [
{
"id": 319,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -4881
},
"size": {
"0": 210,
"1": 118.22856140136719
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 462,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 445,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
453,
455
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
"true"
]
},
{
"id": 305,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -5192
},
"size": {
"0": 210,
"1": 124.13764953613281
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 442,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 444,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
445,
451
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"What is Art?",
"http://127.0.0.1:11434",
"http://localhost:11434",
"true"
]
},
{
"id": 325,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -4899
},
"size": {
"0": 287.0112609863281,
"1": 261.83404541015625
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 455,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"That's correct! Cats are indeed members of the species Felis catus. Their agility, independence, and intelligence make them popular pets. While they may be solitary animals in the wild, they often form strong bonds with their human companions. They're capable of learning various tricks and understanding simple commands, which makes them excellent pets for many households.\n"
]
},
{
"id": 321,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -4563
},
"size": {
"0": 210,
"1": 120.77401733398438
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 463,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 453,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
454,
458
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
"false"
]
},
{
"id": 326,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -4582
},
"size": {
"0": 287.2167053222656,
"1": 247.32957458496094
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 454,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"Indeed, you're correct! Dolphins belong to the family Delphinidae and are known for their intelligence, social behavior, and remarkable capabilities in water. They communicate through a complex system of clicks, whistles, and body language, forming strong bonds with their pod members. Dolphins are also known for their cooperation with humans in certain situations, such as assisting fishermen or performing in shows."
]
},
{
"id": 327,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -4254
},
"size": {
"0": 210,
"1": 120.77401733398438
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 464,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 458,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
457,
461
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
"true"
]
},
{
"id": 330,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -4028
},
"size": {
"0": 210,
"1": 120.77401733398438
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 465,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 461,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
460
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
"false"
]
},
{
"id": 329,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -4271
},
"size": {
"0": 283.1360778808594,
"1": 203.10488891601562
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 457,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"That's right! Dolphins have been known to help humans in various ways, including guiding lost swimmers to safety, alerting divers to potential dangers, and even helping rescue workers locate survivors during natural disasters. Their remarkable communication skills and social nature make them excellent partners for human activities at sea."
]
},
{
"id": 332,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -4019
},
"size": {
"0": 227.13613891601562,
"1": 180.10479736328125
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 460,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"Absolutely! In addition to their role as helpful assistants, dolphins are also known for their intelligence and ability to learn new behaviors. They have been trained by humans to perform tricks in shows, assist with boat navigation, and even help people with disabilities. Dolphins truly are remarkable animals with a wide range of capabilities."
]
},
{
"id": 323,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -5191
},
"size": {
"0": 269.586669921875,
"1": 216.2395782470703
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 451,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"Cats are domesticated animals belonging to the species Felis catus. They are known for their agility and independence. Cats are usually solitary animals but form close bonds with their owners. They're intelligent creatures who can learn a variety of tricks and understand simple commands.\n"
]
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -1065,
"1": -5135
},
"size": [
225.6478105847475,
118.7119295452294
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
444
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkText"
},
"widgets_values": [
"What is the nature of cats?"
]
},
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -1081,
"1": -4699
},
"size": {
"0": 247.32920837402344,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL_NAME",
"type": "STRING",
"links": [
442,
462,
463,
464,
465
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-llama3"
]
}
],
"links": [
[
442,
309,
0,
305,
0,
"STRING"
],
[
444,
313,
0,
305,
1,
"STRING"
],
[
445,
305,
0,
319,
1,
"STRING"
],
[
451,
305,
0,
323,
0,
"STRING"
],
[
453,
319,
0,
321,
1,
"STRING"
],
[
454,
321,
0,
326,
0,
"STRING"
],
[
455,
319,
0,
325,
0,
"STRING"
],
[
457,
327,
0,
329,
0,
"STRING"
],
[
458,
321,
0,
327,
1,
"STRING"
],
[
460,
330,
0,
332,
0,
"STRING"
],
[
461,
327,
0,
330,
1,
"STRING"
],
[
462,
309,
0,
319,
0,
"STRING"
],
[
463,
309,
0,
321,
0,
"STRING"
],
[
464,
309,
0,
327,
0,
"STRING"
],
[
465,
309,
0,
330,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5644739300537777,
"offset": [
1662.5546565317522,
5261.695417036726
]
},
"groupNodes": {}
},
"version": 0.4
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

@@ -1,673 +0,0 @@
{
"last_node_id": 334,
"last_link_id": 465,
"nodes": [
{
"id": 319,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -4881
},
"size": {
"0": 210,
"1": 118.22856140136719
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 462,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 445,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
453,
455
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
"true"
]
},
{
"id": 305,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -5192
},
"size": {
"0": 210,
"1": 124.13764953613281
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 442,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 444,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
445,
451
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"What is Art?",
"http://127.0.0.1:11434",
"http://localhost:11434",
"true"
]
},
{
"id": 325,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -4899
},
"size": {
"0": 287.0112609863281,
"1": 261.83404541015625
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 455,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"That's correct! Cats are indeed members of the species Felis catus. Their agility, independence, and intelligence make them popular pets. While they may be solitary animals in the wild, they often form strong bonds with their human companions. They're capable of learning various tricks and understanding simple commands, which makes them excellent pets for many households.\n"
]
},
{
"id": 321,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -4563
},
"size": {
"0": 210,
"1": 120.77401733398438
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 463,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 453,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
454,
458
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
"false"
]
},
{
"id": 326,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -4582
},
"size": {
"0": 287.2167053222656,
"1": 247.32957458496094
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 454,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"Indeed, you're correct! Dolphins belong to the family Delphinidae and are known for their intelligence, social behavior, and remarkable capabilities in water. They communicate through a complex system of clicks, whistles, and body language, forming strong bonds with their pod members. Dolphins are also known for their cooperation with humans in certain situations, such as assisting fishermen or performing in shows."
]
},
{
"id": 327,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -4254
},
"size": {
"0": 210,
"1": 120.77401733398438
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 464,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 458,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
457,
461
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
"true"
]
},
{
"id": 330,
"type": "OllamaGenerate",
"pos": {
"0": -479,
"1": -4028
},
"size": {
"0": 210,
"1": 120.77401733398438
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 465,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 461,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
460
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Analyze the previous response and expand on it",
"http://127.0.0.1:11434",
"http://localhost:11434",
"false"
]
},
{
"id": 329,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -4271
},
"size": {
"0": 283.1360778808594,
"1": 203.10488891601562
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 457,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"That's right! Dolphins have been known to help humans in various ways, including guiding lost swimmers to safety, alerting divers to potential dangers, and even helping rescue workers locate survivors during natural disasters. Their remarkable communication skills and social nature make them excellent partners for human activities at sea."
]
},
{
"id": 332,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -4019
},
"size": {
"0": 227.13613891601562,
"1": 180.10479736328125
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 460,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"Absolutely! In addition to their role as helpful assistants, dolphins are also known for their intelligence and ability to learn new behaviors. They have been trained by humans to perform tricks in shows, assist with boat navigation, and even help people with disabilities. Dolphins truly are remarkable animals with a wide range of capabilities."
]
},
{
"id": 323,
"type": "JjkShowText",
"pos": {
"0": -175,
"1": -5191
},
"size": {
"0": 269.586669921875,
"1": 216.2395782470703
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 451,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"Cats are domesticated animals belonging to the species Felis catus. They are known for their agility and independence. Cats are usually solitary animals but form close bonds with their owners. They're intelligent creatures who can learn a variety of tricks and understand simple commands.\n"
]
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -1065,
"1": -5135
},
"size": [
225.6478105847475,
118.7119295452294
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
444
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkText"
},
"widgets_values": [
"What is the nature of cats?"
]
},
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -1081,
"1": -4699
},
"size": {
"0": 247.32920837402344,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL_NAME",
"type": "STRING",
"links": [
442,
462,
463,
464,
465
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-llama3"
]
}
],
"links": [
[
442,
309,
0,
305,
0,
"STRING"
],
[
444,
313,
0,
305,
1,
"STRING"
],
[
445,
305,
0,
319,
1,
"STRING"
],
[
451,
305,
0,
323,
0,
"STRING"
],
[
453,
319,
0,
321,
1,
"STRING"
],
[
454,
321,
0,
326,
0,
"STRING"
],
[
455,
319,
0,
325,
0,
"STRING"
],
[
457,
327,
0,
329,
0,
"STRING"
],
[
458,
321,
0,
327,
1,
"STRING"
],
[
460,
330,
0,
332,
0,
"STRING"
],
[
461,
327,
0,
330,
1,
"STRING"
],
[
462,
309,
0,
319,
0,
"STRING"
],
[
463,
309,
0,
321,
0,
"STRING"
],
[
464,
309,
0,
327,
0,
"STRING"
],
[
465,
309,
0,
330,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5644739300537777,
"offset": [
1662.5546565317522,
5261.695417036726
]
},
"groupNodes": {}
},
"version": 0.4
}
@@ -1,199 +0,0 @@
{
"last_node_id": 313,
"last_link_id": 444,
"nodes": [
{
"id": 312,
"type": "JjkShowText",
"pos": {
"0": 1,
"1": -4548
},
"size": {
"0": 314.3045959472656,
"1": 393.1268310546875
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 441,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
},
"widgets_values": [
"Hello! How can I assist you today? Are you looking for information on a particular topic, or do you have any specific questions? Let me know, and I'll be happy to help!"
]
},
{
"id": 305,
"type": "OllamaGenerate",
"pos": {
"0": -462,
"1": -4531
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 442,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 444,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
441
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"What is Art?",
"http://127.0.0.1:11434"
]
},
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -955,
"1": -4560
},
"size": {
"0": 378,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "STRING",
"links": [
442
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-phi"
]
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -980,
"1": -4432
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
444
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkText"
},
"widgets_values": [
"hi"
]
}
],
"links": [
[
441,
305,
0,
312,
0,
"STRING"
],
[
442,
309,
0,
305,
0,
"STRING"
],
[
444,
313,
0,
305,
1,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909097,
"offset": [
1217.8964059894877,
4740.859219258694
]
},
"groupNodes": {}
},
"version": 0.4
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

@@ -1,530 +0,0 @@
{
"last_node_id": 330,
"last_link_id": 460,
"nodes": [
{
"id": 309,
"type": "OllamaModelSelector",
"pos": {
"0": -800,
"1": -4560
},
"size": {
"0": 378,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "STRING",
"links": [
442
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"dolphin-phi"
]
},
{
"id": 313,
"type": "JjkText",
"pos": {
"0": -800,
"1": -4432
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
444
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JjkText"
},
"widgets_values": [
"What is the nature of consciousness?"
]
},
{
"id": 305,
"type": "OllamaGenerate",
"pos": {
"0": -200,
"1": -4531
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 442,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 444,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
445,
451
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Initial response",
"http://127.0.0.1:11434"
]
},
{
"id": 320,
"type": "OllamaModelSelector",
"pos": {
"0": -200,
"1": -4660
},
"size": {
"0": 378,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "STRING",
"links": [
446
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"llama2"
]
},
{
"id": 319,
"type": "OllamaGenerate",
"pos": {
"0": 300,
"1": -4531
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 446,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 445,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
447,
452
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Second analysis",
"http://127.0.0.1:11434"
]
},
{
"id": 325,
"type": "OllamaModelSelector",
"pos": {
"0": 300,
"1": -4660
},
"size": {
"0": 378,
"1": 58
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "STRING",
"links": [
448
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaModelSelector"
},
"widgets_values": [
"mistral"
]
},
{
"id": 326,
"type": "OllamaGenerate",
"pos": {
"0": 800,
"1": -4531
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model_name",
"type": "STRING",
"link": 448,
"widget": {
"name": "model_name"
}
},
{
"name": "text",
"type": "STRING",
"link": 447,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
449,
453
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "OllamaGenerate"
},
"widgets_values": [
"Final synthesis",
"http://127.0.0.1:11434"
]
},
{
"id": 327,
"type": "JjkShowText",
"pos": {
"0": 1300,
"1": -4548
},
"size": {
"0": 314.3045959472656,
"1": 393.1268310546875
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 449,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
}
},
{
"id": 328,
"type": "JjkShowText",
"pos": {
"0": -200,
"1": -4200
},
"size": {
"0": 314.3045959472656,
"1": 393.1268310546875
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 451,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
}
},
{
"id": 329,
"type": "JjkShowText",
"pos": {
"0": 300,
"1": -4200
},
"size": {
"0": 314.3045959472656,
"1": 393.1268310546875
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 452,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
}
},
{
"id": 330,
"type": "JjkShowText",
"pos": {
"0": 800,
"1": -4200
},
"size": {
"0": 314.3045959472656,
"1": 393.1268310546875
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 453,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "JjkShowText"
}
}
],
"links": [
[
442,
309,
0,
305,
0,
"STRING"
],
[
444,
313,
0,
305,
1,
"STRING"
],
[
445,
305,
0,
319,
1,
"STRING"
],
[
446,
320,
0,
319,
0,
"STRING"
],
[
447,
319,
0,
326,
1,
"STRING"
],
[
448,
325,
0,
326,
0,
"STRING"
],
[
449,
326,
0,
327,
0,
"STRING"
],
[
451,
305,
0,
328,
0,
"STRING"
],
[
452,
319,
0,
329,
0,
"STRING"
],
[
453,
326,
0,
330,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909097,
"offset": [
1217.8964059894877,
4740.859219258694
]
},
"groupNodes": {}
},
"version": 0.4
}