Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUva207caa4e21c
diff --git a/docs/ruvector-postgres/scripts/test-connection.sh b/docs/ruvector-postgres/scripts/test-connection.sh
new file mode 100644
index 0000000000..5d63de5dc8
--- /dev/null
+++ b/docs/ruvector-postgres/scripts/test-connection.sh
@@ -0,0 +1,91 @@
+#!/bin/bash
+# Test connection to RuVector PostgreSQL
+
+set -e
+
+HOST="${PGHOST:-localhost}"
+PORT="${PGPORT:-5432}"
+DATABASE="${PGDATABASE:-claude_flow}"
+USER="${PGUSER:-claude}"
+PASSWORD="${PGPASSWORD:-claude-flow-test}"
+
+echo "πŸ” Testing RuVector PostgreSQL Connection"
+echo "=========================================="
+echo ""
+
+# Test basic connection
+echo "1. Testing connection..."
+PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -c "SELECT 1;" > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+ echo " βœ… Connection successful"
+else
+ echo " ❌ Connection failed"
+ exit 1
+fi
+
+# Check PostgreSQL version
+echo ""
+echo "2. PostgreSQL version:"
+PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -t -c "SELECT version();" | head -1
+
+# Check pgvector extension
+echo ""
+echo "3. Checking pgvector extension..."
+RESULT=$(PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -t -c \
+ "SELECT extversion FROM pg_extension WHERE extname = 'vector';" 2>/dev/null | tr -d ' ')
+if [ -n "$RESULT" ]; then
+ echo " βœ… pgvector version: $RESULT"
+else
+ echo " ❌ pgvector extension not found"
+fi
+
+# Check schema
+echo ""
+echo "4. Checking claude_flow schema..."
+RESULT=$(PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -t -c \
+ "SELECT COUNT(*) FROM information_schema.schemata WHERE schema_name = 'claude_flow';" | tr -d ' ')
+if [ "$RESULT" = "1" ]; then
+ echo " βœ… Schema exists"
+else
+ echo " ❌ Schema not found"
+fi
+
+# Check tables
+echo ""
+echo "5. Checking tables..."
+TABLES=$(PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -t -c \
+ "SELECT table_name FROM information_schema.tables WHERE table_schema = 'claude_flow';" | tr -d ' ' | grep -v "^$")
+for table in $TABLES; do
+ echo " βœ… Table: $table"
+done
+
+# Check indices
+echo ""
+echo "6. Checking HNSW indices..."
+INDICES=$(PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -t -c \
+ "SELECT indexname FROM pg_indexes WHERE schemaname = 'claude_flow' AND indexdef LIKE '%hnsw%';" | tr -d ' ' | grep -v "^$")
+for idx in $INDICES; do
+ echo " βœ… Index: $idx"
+done
+
+# Count sample data
+echo ""
+echo "7. Sample data:"
+COUNT=$(PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -t -c \
+ "SELECT COUNT(*) FROM claude_flow.embeddings;" | tr -d ' ')
+echo " πŸ“Š Embeddings: $COUNT rows"
+
+COUNT=$(PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -t -c \
+ "SELECT COUNT(*) FROM claude_flow.patterns;" | tr -d ' ')
+echo " πŸ“Š Patterns: $COUNT rows"
+
+COUNT=$(PGPASSWORD=$PASSWORD psql -h $HOST -p $PORT -U $USER -d $DATABASE -t -c \
+ "SELECT COUNT(*) FROM claude_flow.agents;" | tr -d ' ')
+echo " πŸ“Š Agents: $COUNT rows"
+
+echo ""
+echo "=========================================="
+echo "βœ… All checks passed! RuVector is ready."
+echo ""
+echo "Connection string:"
+echo " postgresql://$USER:****@$HOST:$PORT/$DATABASE"