# Knowledge Graph MCP Service Environment Configuration
# Copy this file to .env and update the values as needed
# Storage Configuration
# Supported types: sqlite, postgresql
KNOWLEDGEGRAPH_STORAGE_TYPE=sqlite
# Database Connection String
# For SQLite: sqlite://./path/to/database.db or sqlite://:memory:
# For PostgreSQL: postgresql://username:password@host:port/database
# If not specified for SQLite, defaults to {home}/.knowledge-graph/knowledgegraph.db
# KNOWLEDGEGRAPH_CONNECTION_STRING=sqlite://./custom/path/database.db
# SQLite Database Path (optional)
# Override the default SQLite database location
# Default: {home directory}/.knowledge-graph/knowledgegraph.db
# KNOWLEDGEGRAPH_SQLITE_PATH=/custom/path/to/database.db
# Test Configuration
# Test database connection string (used by integration and performance tests)
# Should point to a separate test database to avoid conflicts with main data
KNOWLEDGEGRAPH_TEST_CONNECTION_STRING=sqlite://:memory:
# For PostgreSQL testing: postgresql://postgres:password@localhost:5432/knowledgegraph_test
# Project Configuration
KNOWLEDGEGRAPH_PROJECT=knowledgegraph_default_project
# Search Configuration
# Maximum number of results to return from database searches (1-1000)
KNOWLEDGEGRAPH_SEARCH_MAX_RESULTS=100
# Batch size for processing large query arrays (1-50)
KNOWLEDGEGRAPH_SEARCH_BATCH_SIZE=10
# Maximum number of entities to load for client-side search (100-100000)
# PERFORMANCE: Reduce for large datasets to prevent memory issues
KNOWLEDGEGRAPH_SEARCH_MAX_CLIENT_ENTITIES=10000
# Chunk size for processing large datasets in client-side search (100-10000)
# PERFORMANCE: Smaller chunks use less memory but may be slower
# Must be <= KNOWLEDGEGRAPH_SEARCH_MAX_CLIENT_ENTITIES
KNOWLEDGEGRAPH_SEARCH_CLIENT_CHUNK_SIZE=100
# Development Configuration
NODE_ENV=development