Skip to content

Commit 7e1e4fa

Browse files
author
Android-16
committed
feat: add Flowise extension for Wave 2 (Light-Heart-Labs#13) - visual LLM workflow builder
1 parent ce5907c commit 7e1e4fa

3 files changed

Lines changed: 183 additions & 0 deletions

File tree

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Flowise Extension
2+
3+
Visual LLM workflow builder for Dream Server.
4+
5+
## What It Is
6+
7+
Flowise is a drag-and-drop tool to build LLM workflows:
8+
- Visual node editor for AI pipelines
9+
- 100+ pre-built integrations
10+
- Build chatbots, agents, and automation
11+
- Export as API endpoints
12+
- No coding required
13+
14+
## Features
15+
16+
- **Visual builder**: Drag-and-drop node editor
17+
- **LLM support**: OpenAI, Anthropic, Azure, local models
18+
- **RAG workflows**: Document loaders, chunkers, vector DBs
19+
- **Agent building**: Tools, memory, decision-making
20+
- **Integrations**: Slack, Discord, databases, APIs
21+
- **API export**: Deploy flows as REST endpoints
22+
- **Chatflows**: Conversational AI builders
23+
24+
## Configuration
25+
26+
### Environment Variables
27+
28+
| Variable | Description | Default |
29+
|----------|-------------|---------|
30+
| `FLOWISE_PORT` | External port | `3002` |
31+
| `FLOWISE_USERNAME` | Admin username | (none) |
32+
| `FLOWISE_PASSWORD` | Admin password | (none) |
33+
| `FLOWISE_SECRETKEY_OVERWRITE` | Encryption key | (auto-generated) |
34+
| `FLOWISE_DISABLE_TELEMETRY` | Disable analytics | `true` |
35+
36+
### Authentication (Optional)
37+
38+
To require login:
39+
```bash
40+
# In your .env
41+
FLOWISE_USERNAME=admin
42+
FLOWISE_PASSWORD=your-secure-password
43+
```
44+
45+
## Usage
46+
47+
```bash
48+
# Enable the extension
49+
dream extensions enable flowise
50+
51+
# Start the service
52+
docker compose up -d flowise
53+
54+
# Access at http://localhost:3002
55+
```
56+
57+
## Quick Start
58+
59+
1. **Enable**: `dream extensions enable flowise`
60+
2. **Open**: Visit http://localhost:3002
61+
3. **Create Chatflow**: Click "Add New" → "Chatflow"
62+
4. **Add Nodes**: Drag LLM, memory, and tool nodes
63+
5. **Connect**: Wire nodes together
64+
6. **Test**: Click chat button to test
65+
7. **Deploy**: Export as API or embed
66+
67+
## Example Workflows
68+
69+
### Simple Chatbot
70+
```
71+
Chat Input → OpenAI LLM → Chat Output
72+
```
73+
74+
### RAG Document Chat
75+
```
76+
PDF Loader → Text Splitter → Vector Store → Retriever → OpenAI LLM → Output
77+
```
78+
79+
### AI Agent
80+
```
81+
Chat Input → Agent → [Web Search, Calculator, Code Exec] → LLM → Output
82+
```
83+
84+
## Data Persistence
85+
86+
All flows and data stored in:
87+
- `./data/flowise/` - Workflows, credentials, logs
88+
89+
## Integration with Dream Server
90+
91+
Connect to Dream Server's LLM:
92+
1. Add "ChatLocalAI" or "Ollama" node
93+
2. Set Base URL: `http://llama-server:8080/v1` or `http://ollama:11434`
94+
3. Use models you've downloaded
95+
96+
## Resources
97+
98+
- [Flowise Documentation](https://docs.flowiseai.com/)
99+
- [GitHub Repository](https://github.com/FlowiseAI/Flowise)
100+
- [YouTube Tutorials](https://www.youtube.com/@FlowiseAI)
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
services:
2+
flowise:
3+
image: flowiseai/flowise:2.2.7
4+
container_name: dream-flowise
5+
restart: unless-stopped
6+
security_opt:
7+
- no-new-privileges:true
8+
environment:
9+
- PORT=3000
10+
- DATABASE_PATH=/root/.flowise
11+
- APIKEY_PATH=/root/.flowise
12+
- SECRETKEY_PATH=/root/.flowise
13+
- LOG_PATH=/root/.flowise/logs
14+
- BLOB_STORAGE_PATH=/root/.flowise/storage
15+
- FLOWISE_USERNAME=${FLOWISE_USERNAME:-}
16+
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD:-}
17+
- FLOWISE_SECRETKEY_OVERWRITE=${FLOWISE_SECRETKEY_OVERWRITE:-}
18+
- IFRAME_ORIGINS=${FLOWISE_IFRAME_ORIGINS:-}
19+
- DISABLE_FLOWISE_TELEMETRY=${FLOWISE_DISABLE_TELEMETRY:-true}
20+
volumes:
21+
- ./data/flowise:/root/.flowise:rw
22+
ports:
23+
- "${FLOWISE_PORT:-3002}:3000"
24+
healthcheck:
25+
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/api/v1/health"]
26+
interval: 30s
27+
timeout: 10s
28+
retries: 3
29+
start_period: 60s
30+
networks:
31+
- dream-network
32+
deploy:
33+
resources:
34+
limits:
35+
cpus: '2.0'
36+
memory: 4G
37+
reservations:
38+
cpus: '0.5'
39+
memory: 1G
40+
41+
networks:
42+
dream-network:
43+
external: true
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
schema_version: dream.services.v1
2+
3+
service:
4+
id: flowise
5+
name: Flowise
6+
aliases: [flow, workflow]
7+
container_name: dream-flowise
8+
host_env: FLOWISE_HOST
9+
default_host: flowise
10+
port: 3000
11+
external_port_env: FLOWISE_PORT
12+
external_port_default: 3002
13+
health: /api/v1/health
14+
type: docker
15+
gpu_backends: []
16+
category: optional
17+
depends_on: []
18+
description: |
19+
Visual LLM workflow builder with drag-and-drop interface.
20+
Build AI agents, chatbots, and automation flows without code.
21+
Integrates with OpenAI, Anthropic, local models, and 100+ tools.
22+
23+
features:
24+
workflow:
25+
description: Visual drag-and-drop workflow builder
26+
vram_required_mb: 0
27+
agents:
28+
description: Build AI agents with tools and memory
29+
vram_required_mb: 0
30+
integration:
31+
description: 100+ integrations (databases, APIs, LLMs)
32+
vram_required_mb: 0
33+
34+
tags:
35+
- workflow
36+
- visual
37+
- nocode
38+
- agents
39+
- automation
40+
- lowcode

0 commit comments

Comments
 (0)