Skip to content

Commit 6287bfe

Browse files
pavanjavapavanmantha
andauthored
dev kit with neo4j (#2)
Co-authored-by: pavanmantha <[email protected]>
1 parent 14ed14b commit 6287bfe

File tree

5 files changed

+30
-4
lines changed

5 files changed

+30
-4
lines changed

.env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ POSTGRES_PASSWORD=password
33
POSTGRES_DB=n8n
44

55
N8N_ENCRYPTION_KEY=s3cr3tk3y
6-
N8N_USER_MANAGEMENT_JWT_SECRET=jwts3cr3t
6+
N8N_USER_MANAGEMENT_JWT_SECRET=jwts3cr3t
7+
8+
NEO4J_PASSWORD=p@55w0rd

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@ This is a self hosting repository for creating AI Agents and AI Agent powered wo
55
![Arch](architecture.png)
66

77
### How to run
8-
- `git clone <repo>`
8+
- `git clone [email protected]:pavanjava/ai-agents-dev-kit.git`
99
- `cd <repo>`
1010
- `sh setup.sh`
1111

1212
### What all gets installed as part of devkit?
1313

1414
-&nbsp; n8n platform
1515
-&nbsp; Qdrant version 1.13 (latest)
16+
-&nbsp; Neo4j for knowledge graphs
1617
-&nbsp; Ollama with llama3.2: latest installed
1718
-&nbsp; Redis stack for fully function redis cache
1819
-&nbsp; PostgreSQL for maintaining n8n state, data and configuration
1920

2021
### What all you can use this platform for ?
2122
- 🌟&nbsp; Intelligent AI Agents
2223
- 🌟&nbsp; Intelligent Workflow management
24+
- 🌟&nbsp; Intelligent knowledge graph Agents
2325
- 🌟&nbsp; Intelligent RAG pipeline Agents
2426
- 🌟&nbsp; Intelligent social media Agents
2527
- 🌟&nbsp; much more

ai-agents-dev-kit.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ volumes:
44
agent_llm_data:
55
agent_vector_data:
66
agent_cache_data:
7+
agent_neo4j_data:
78

89
networks:
910
aiagent_net:
@@ -96,4 +97,25 @@ services:
9697
- "-c"
9798
- "sleep 3; OLLAMA_HOST=agent-llm:11434 ollama pull llama3.2"
9899
depends_on:
99-
- ollama
100+
- ollama
101+
102+
neo4j:
103+
image: neo4j:5.26-enterprise
104+
container_name: agent-graph-db
105+
networks: [ 'aiagent_net' ]
106+
restart: unless-stopped
107+
ports:
108+
- 7474:7474 # HTTP
109+
- 7687:7687 # Bolt
110+
environment:
111+
- NEO4J_AUTH=neo4j/${NEO4J_PASSWORD}
112+
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
113+
- NEO4J_server_memory_heap_initial__size=1G
114+
- NEO4J_server_memory_heap_max__size=2G
115+
volumes:
116+
- agent_neo4j_data:/data
117+
healthcheck:
118+
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7474" ]
119+
interval: 10s
120+
timeout: 5s
121+
retries: 5

architecture.png

4.08 KB
Loading

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ docker compose -f ai-agents-dev-kit.yml up -d --scale ollama-init=0
66

77
# Step 2: Run ollama-init as a one-off task and wait for completion
88
echo "Running ollama-init task..."
9-
docker compose run --rm ollama-init
9+
docker compose -f ai-agents-dev-kit.yml run --rm ollama-init
1010

1111
# Step 3: Log completion
1212
echo "ollama-init task completed and container removed."

0 commit comments

Comments
 (0)