Nova Required Services Connection Guide
Service Matrix
| Service | Port | Purpose | Status |
|---|---|---|---|
| PostgreSQL | 5432 | Structured data | β Operational |
| MongoDB | 27017 | Document storage | β Operational |
| ChromaDB | 8000 | Semantic memory | β Operational |
| Redis (Default) | 6379 | Working memory | β Operational |
PostgreSQL Connection
# Connect to PostgreSQL
psql -h localhost -p 5432 -U postgres
# List databases
\l
# Basic SQL
SELECT version();
CREATE DATABASE nova_core;
Python Example:
import psycopg2
conn = psycopg2.connect(
host="localhost",
port=5432,
user="postgres",
database="nova_core"
)
cur = conn.cursor()
cur.execute("SELECT NOW();")
print(f"PostgreSQL time: {cur.fetchone()}")
MongoDB Connection
# Connect to MongoDB
mongosh --port 27017
# Show databases
show dbs
# Use nova database
use nova
# Basic operations
db.sessions.insertOne({session_id: "test", data: {}})
Python Example:
from pymongo import MongoClient
client = MongoClient("localhost", 27017)
db = client.nova
collection = db.sessions
# Insert document
result = collection.insert_one({
"session_id": "test_123",
"timestamp": "2025-08-24",
"data": {"status": "active"}
})
print(f"Inserted ID: {result.inserted_id}")
ChromaDB Connection
# Health check
curl http://localhost:8000/api/v1/heartbeat
# List collections
curl http://localhost:8000/api/v1/collections
Python Example:
import chromadb
client = chromadb.HttpClient(host="localhost", port=8000)
# Create collection
collection = client.create_collection("nova_memories")
# Add embeddings
collection.add(
documents=["Memory example 1", "Memory example 2"],
metadatas=[{"type": "fact"}, {"type": "experience"}],
ids=["id1", "id2"]
)
# Query similar memories
results = collection.query(
query_texts=["example memory"],
n_results=2
)
print(f"Similar memories: {results}")
Health Monitoring
# PostgreSQL
pg_isready -h localhost -p 5432
# MongoDB
mongosh --eval "db.adminCommand('ping')" --quiet
# ChromaDB
curl -s http://localhost:8000/api/v1/heartbeat | jq .
Security Notes
- β All services bound to localhost only
- β No authentication configured (development)
- β Regular backup procedures needed
- β Monitor disk usage on /data partition
- β Consider adding authentication for production
Last Updated: September 4, 2025