Skip to main content

Database Management

Database Configuration

PlantPulse AI uses six databases, each serving a different purpose.

DatabasePurposeData Type
PostgreSQLRelational metadataUser information, chat history, RAG metadata, feature store
CassandraTime series storageSensor data, copilot tasks, inference history
Neo4jGraph dataOntology (plant hierarchy, equipment relationships)
QdrantVector storageDocument embeddings, equipment feature vectors
Valkey (Redis)CacheSessions, temporary data, search cache
MinIOObject storageDocument files, images, reports

PostgreSQL

Database List

DatabaseUserService Using It
chchAI Chat Web (users, chat history, apps, settings)
lightragchLightRAG (document status doc_status)

Management

# PostgreSQL 접속
psql -h 127.0.0.1 -U ch -d ch

# 데이터베이스 목록 확인
psql -h 127.0.0.1 -U postgres -c '\l'

Cassandra

Keyspaces

KeyspacePurpose
piPlantPulse AI main (copilot tasks, inference history)

Management

# Cassandra CQL 접속
cqlsh 127.0.0.1 9042 -u cassandra -p cassandra

# 키스페이스 목록
DESCRIBE KEYSPACES;

# 테이블 목록
USE pi;
DESCRIBE TABLES;
info

The Cassandra keyspace is created automatically by the db/cassandra/support/keyspace-create.sh script on first startup.


Neo4j

Connection Information

ItemValue
Browser URLhttp://<Server IP>:7474
Bolt URIbolt://127.0.0.1:7687
Userneo4j
Passwordneo4j123

Management

Manage the graph with Cypher queries in Neo4j Browser (http://<Server IP>:7474):

// 노드 타입별 카운트
MATCH (n) RETURN labels(n), count(n) ORDER BY count(n) DESC;

// 관계 타입별 카운트
MATCH ()-[r]->() RETURN type(r), count(r) ORDER BY count(r) DESC;

Qdrant

Connection Information

ItemValue
REST APIhttp://127.0.0.1:6333
Dashboardhttp://127.0.0.1:6333/dashboard
API Keyqdrant-key-123

Collections

CollectionPurpose
(auto-created by LightRAG)RAG document vectors (managed by LightRAG)

MinIO

Connection Information

ItemValue
APIhttp://127.0.0.1:9000
Consolehttp://127.0.0.1:9001
Access Keyminio
Secret Keyminio123!

Buckets

BucketPurpose
documents-bucketStorage for original RAG documents

Data Storage Paths

PathContents
/data1/pp-data/Main data directory
/data1/pp-data/lightrag/LightRAG storage (index, uploads)
/data1/pp-temp/Temporary files

Backup Recommendations

TargetMethodFrequency
PostgreSQLpg_dumpOnce daily
Neo4jneo4j-admin dumpOnce daily
MinIOmc mirrorOnce daily
QdrantSnapshot APIOnce weekly
template/env.shFile copyOn change