Added Neo4j (Knowledge Graph Engine) to the Local AI Package

This commit is contained in:
Cole Medin
2025-05-26 13:04:41 -05:00
parent 1e0e2c775d
commit bfcb95af45
5 changed files with 48 additions and 2 deletions

View File

@@ -31,6 +31,15 @@ DASHBOARD_USERNAME=supabase
DASHBOARD_PASSWORD=this_password_is_insecure_and_should_be_updated
POOLER_TENANT_ID=your-tenant-id
############
# [required]
# Neo4j username and password
# Replace "neo4j" with your chosen username and "password" with your chosen password.
# Keep the "/" as a separator between the two.
############
NEO4J_AUTH=neo4j/password
############
# [required]
# Langfuse credentials
@@ -65,6 +74,7 @@ ENCRYPTION_KEY=generate-with-openssl # generate via `openssl rand -hex 32`
# LANGFUSE_HOSTNAME=langfuse.yourdomain.com
# OLLAMA_HOSTNAME=ollama.yourdomain.com
# SEARXNG_HOSTNAME=searxng.yourdomain.com
# NEO4J_HOSTNAME=neo4j.yourdomain.com
# LETSENCRYPT_EMAIL=internal
@@ -147,7 +157,7 @@ MAILER_URLPATHS_EMAIL_CHANGE="/auth/v1/verify"
## Email auth
ENABLE_EMAIL_SIGNUP=true
ENABLE_EMAIL_AUTOCONFIRM=false
ENABLE_EMAIL_AUTOCONFIRM=true
SMTP_ADMIN_EMAIL=admin@example.com
SMTP_HOST=supabase-mail
SMTP_PORT=2500

8
.gitignore vendored Normal file
View File

@@ -0,0 +1,8 @@
.env
volumes/
shared/
neo4j/
shared-backup/
.env.test
searxng/settings.yml
searxng/uwsgi*

View File

@@ -35,6 +35,11 @@
reverse_proxy localhost:8000
}
# Neo4j
{$NEO4J_HOSTNAME} {
reverse_proxy localhost:7474
}
# SearXNG
{$SEARXNG_HOSTNAME} {
encode zstd gzip

View File

@@ -4,7 +4,7 @@
quickly bootstraps a fully featured Local AI and Low Code development
environment including Ollama for your local LLMs, Open WebUI for an interface to chat with your N8N agents, and Supabase for your database, vector store, and authentication.
This is Cole's version with a couple of improvements and the addition of Supabase, Open WebUI, Flowise, Langfuse, SearXNG, and Caddy!
This is Cole's version with a couple of improvements and the addition of Supabase, Open WebUI, Flowise, Neo4j, Langfuse, SearXNG, and Caddy!
Also, the local RAG AI Agent workflows from the video will be automatically in your
n8n instance if you use this setup instead of the base one provided by n8n!
@@ -45,6 +45,8 @@ builder that pairs very well with n8n
store with an comprehensive API. Even though you can use Supabase for RAG, this was
kept unlike Postgres since it's faster than Supabase so sometimes is the better option.
✅ [**Neo4j**](https://neo4j.com/) - Knowledge graph engine that powers tools like GraphRAG, LightRAG, and Graphiti
✅ [**SearXNG**](https://searxng.org/) - Open source, free internet metasearch engine which aggregates
results from up to 229 search services. Users are neither tracked nor profiled, hence the fit with the local AI package.
@@ -90,6 +92,11 @@ Before running the services, you need to set up your environment variables for S
DASHBOARD_PASSWORD=
POOLER_TENANT_ID=
############
# Neo4j Secrets
############
NEO4J_AUTH=
############
# Langfuse credentials
############
@@ -116,6 +123,7 @@ Before running the services, you need to set up your environment variables for S
SUPABASE_HOSTNAME=:supabase.yourdomain.com
OLLAMA_HOSTNAME=:ollama.yourdomain.com
SEARXNG_HOSTNAME=searxng.yourdomain.com
NEO4J_HOSTNAME=neo4j.yourdomain.com
LETSENCRYPT_EMAIL=your-email-address
```

View File

@@ -115,6 +115,20 @@ services:
volumes:
- qdrant_storage:/qdrant/storage
neo4j:
image: neo4j:latest
volumes:
- ./neo4j/logs:/logs
- ./neo4j/config:/config
- ./neo4j/data:/data
- ./neo4j/plugins:/plugins
environment:
- NEO4J_AUTH=${NEO4J_AUTH:-"neo4j/your_password"}
ports:
- 7474:7474
- 7687:7687
restart: always
caddy:
container_name: caddy
image: docker.io/library/caddy:2-alpine
@@ -132,6 +146,7 @@ services:
- SUPABASE_HOSTNAME=${SUPABASE_HOSTNAME:-":8005"}
- SEARXNG_HOSTNAME=${SEARXNG_HOSTNAME:-":8006"}
- LANGFUSE_HOSTNAME=${LANGFUSE_HOSTNAME:-":8007"}
- NEO4J_HOSTNAME=${NEO4J_HOSTNAME:-":8008"}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-internal}
cap_drop:
- ALL